Assembly: Phoenix.BuilderUIClient.dll View model for
Phoenix.BuilderUIClient.ComponentInfoControl.
Inheritance
object ← ComponentInfoControlViewModelImplements
IComponentInfoControlViewModel, INotifyPropertyChangedInherited 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
_model The model holding the control’s data.Properties
Author The author of the component whose information is being displayed. BrowseIconCommand Command that handles opening a file dialog to select a new icon. CanEditBuilderUI Does the model support opening an edit UI? ComponentType The type of component whose information is being displayed (Legacy Pacz, Quadratic, etc.). Description The description of the component whose information is being displayed. EditBuilderUILabel Label to use to view/edit the component EditCommandAsync Command that handles opening the component’s edit UI. May be null if editing is not supported. ExportCommandAsync Command that handles exporting the component. ExternalMetadata Metadata about the Pacz from an external source. For example, the remote ID of the Pacz file for Paczs hosted on a remote server. Files The list of files in the component’s ExtractionFolder. HasChanged Have any fields been changed? HasComponent Is there a component loaded in the control? HelpAsyncDelegate Method for showing a help dialog. Should be set by the user after construction. HelpButtonEnabled Can the help button be used? HelpCommandAsync Command that handles showing the help dialog. HideExternalMetadata Whether to hide the external metadata portion of the UI. Icon The uri to the icon file of the component whose information is being displayed. IconImage The image of the icon for the component whose information is being displayed. InWriteMode Is the model in write mode (editing enabled)? IsReadOnly Is the model read-only? OnComponentSaved Event handler to fire when the user saves the component through the Edit Component UI. OpenFolderCommandAsync Command that handles opening the component’s ExtractionFolder. SaveButtonEnabled Can the save button be used? SaveCommandAsync Command that handles saving changes to the component. Source The source path of the component whose information is being displayed. Version The version of the component whose information is being displayed.Methods
ExpandFile(FileTreeItem) 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. OnFileCheckChanged() Handler for when a file inPhoenix.BuilderUIClient.ComponentInfoControlViewModel.Files’s check state is changed.
OnPropertyChanged(string)
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.
UnloadComponent()
Unloads the current component from the control.
_onBrowseIcon()
Opens a file dialog to select a new icon.
_onExport()
Exports the component.
_onHelp()
Shows the help dialog.
_onOpenFolder()
Opens the components ExtrationFolder.
_onSave()
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.
PropertyChanged
Occurs when a property value changes.
RequestSaveAsync
Async method for requesting a save to Phoenix.BuilderUIClient.LocalEditHolder.