Class ComponentInfoControlViewModel
Last update: 19.06.2026Namespace: Phoenix.BuilderUIClient
Assembly: Phoenix.BuilderUIClient.dll
View model for Phoenix.BuilderUIClient.ComponentInfoControl.
public class ComponentInfoControlViewModel : IComponentInfoControlViewModel, INotifyPropertyChanged
Inheritance
object ← ComponentInfoControlViewModel
Implements
IComponentInfoControlViewModel, INotifyPropertyChanged
Inherited Members
object.ToString(), object.Equals(object), object.Equals(object, object), object.ReferenceEquals(object, object), object.GetHashCode(), object.GetType(), object.MemberwiseClone()
Constructors
ComponentInfoControlViewModel(ISaveFileDialog, IFile, IDirectory, IProcess)
Constructor.
Fields
The model holding the control's data.
Properties
The author of the component whose information is being displayed.
Command that handles opening a file dialog to select a new icon.
Does the model support opening an edit UI?
The type of component whose information is being displayed (Legacy Pacz, Quadratic, etc.).
The description of the component whose information is being displayed.
Label to use to view/edit the component
Command that handles opening the component's edit UI. May be null if editing is not supported.
Command that handles exporting the component.
Metadata about the Pacz from an external source. For example, the remote ID of the Pacz file for Paczs hosted on a remote server.
The list of files in the component's ExtractionFolder.
Have any fields been changed?
Is there a component loaded in the control?
Method for showing a help dialog. Should be set by the user after construction.
Can the help button be used?
Command that handles showing the help dialog.
Whether to hide the external metadata portion of the UI.
The uri to the icon file of the component whose information is being displayed.
The image of the icon for the component whose information is being displayed.
Is the model in write mode (editing enabled)?
Is the model read-only?
Event handler to fire when the user saves the component through the Edit Component UI.
Command that handles opening the component's ExtractionFolder.
Can the save button be used?
Command that handles saving changes to the component.
The source path of the component whose information is being displayed.
The version of the component whose information is being displayed.
Methods
Fetch the directory contents of the given FileTreeItem and populate them into the view.
LoadComponentAsync(IReadOnlyExtractedPacz, string, string)
Load a new component into the control.
Handler for when a file in Phoenix.BuilderUIClient.ComponentInfoControlViewModel.Files's check state is changed.
Raises the PropertyChanged Event for the calling member.
StartWriteMode(IExtractedPacz)
Set the control to be writable temporarily. Sets writable mode immediately, and unsets it when the returned
System.IDisposable is disposed.
Unloads the current component from the control.
Opens a file dialog to select a new icon.
Exports the component.
Shows the help dialog.
Opens the components ExtrationFolder.
Saves changes to the component.
_showMessageBox(string, string, MessageBoxButton, MessageBoxImage)
Shows a System.Windows.MessageBox to the user. Broken out to allow overriding for testing.
Occurs when a property value changes.
Async method for requesting a save to Phoenix.BuilderUIClient.LocalEditHolder.