Class ThemeTestingViewModel
View model for theme testing.
Inheritance
Inherited Members
Namespace: Phoenix.ThemeTesting
Assembly: Phoenix.Plugin.ThemeTesting.dll
Syntax
public class ThemeTestingViewModel : TabItemViewModel<ThemeTestingView>, IViewInitialize, IThemeViewProvider, IViewProvider, IClosingNotification
Constructors
View SourceThemeTestingViewModel(ThemeTestingView, IWindowingControl, IEventAggregator, IPhoenixLogger)
Initializes a new instance of the ThemeTestingViewModel class.
Declaration
public ThemeTestingViewModel(ThemeTestingView view, IWindowingControl windowing, IEventAggregator eventAggregator, IPhoenixLogger logger)
Parameters
Type | Name | Description |
---|---|---|
ThemeTestingView | view | The view this view model is driving. |
IWindowingControl | windowing | The windowing control. |
IEventAggregator | eventAggregator | The event aggregator for the application. |
IPhoenixLogger | logger | The logger for the application. |
Fields
View SourceName
The tab header name.
Declaration
public const string Name = "Theme Testing"
Field Value
Type | Description |
---|---|
System.String |
Properties
View SourceApplyCommand
Gets the command for applying autocomplete entry.
Declaration
public DelegateCommand ApplyCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
AutoCompleteOptions
Gets a collection of autocomplete choices.
Declaration
public ObservableCollection<Tuple<string, string>> AutoCompleteOptions { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Tuple<System.String, System.String>> |
ConfirmationDialogCallbackAndCancelButtonParamCommand
Gets the command for showing a simple confirmation dialog by consuming DialogManager api with passed in callback and allowCancelButton optional parameters to do something with result.
Declaration
public DelegateCommand ConfirmationDialogCallbackAndCancelButtonParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ConfirmationDialogCallbackCancelButtonAndCustomLabelsParamCommand
Gets the command for showing a simple confirmation dialog by consuming DialogManager api with passed in callback, allowCancelButton and buttonLabelOverrides optional parameters to do something with result. This will show how to customize the labels of the buttons to include cancel button if enabled.
Declaration
public DelegateCommand ConfirmationDialogCallbackCancelButtonAndCustomLabelsParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ConnectCallback
Gets the function that is called when connect is clicked.
Declaration
public GameConnectionWidget.GameConnectionAction ConnectCallback { get; }
Property Value
Type | Description |
---|---|
GameConnectionWidget.GameConnectionAction |
ConnectionStatus
Gets or sets the connection status.
Declaration
public GameConnectionStatus ConnectionStatus { get; set; }
Property Value
Type | Description |
---|---|
GameConnectionStatus |
CurrentText
Gets or sets the current text for the autocomplete.
Declaration
public string CurrentText { get; set; }
Property Value
Type | Description |
---|---|
System.String |
CustomConfirmationDialogCommand
Gets the command for showing a custom confirmation dialog by consuming DialogManager api with passed in both the customDialogContentType and customDialogContentViewModelType parameters. This will allow for the displaying of own custom content that can also return custom results back to the caller by using a custom confirmation message that can handle the returned data payload.
Declaration
public DelegateCommand CustomConfirmationDialogCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
DisconnectCallback
Gets the function that is called when disconnect is clicked.
Declaration
public GameConnectionWidget.GameConnectionAction DisconnectCallback { get; }
Property Value
Type | Description |
---|---|
GameConnectionWidget.GameConnectionAction |
DismissAllOpenInteractionsCommand
Gets the command for programmatically dismissing all open interactions by consuming DialogManager api. This will force all currently opened interactions to close at once.
Declaration
public DelegateCommand DismissAllOpenInteractionsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Items
Gets a string of items
Declaration
public ObservableCollection<string> Items { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.String> |
ModalConfirmationDialogNoParamsCommand
Gets the command for showing a simple modal confirmation dialog by consuming DialogManager api with no passed in optional parameters.
Declaration
public DelegateCommand ModalConfirmationDialogNoParamsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ModalNotificationDialogIsSystemModalParamCommand
Gets the command for showing a simple system modal notification dialog by consuming DialogManager api with passed in isSystemModal optional parameter. System modal will block interaction application wide until user finishes interaction with the dialog.
Declaration
public DelegateCommand ModalNotificationDialogIsSystemModalParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ModalNotificationDialogNoParamsCommand
Gets the command for showing a simple modal notification dialog by consuming DialogManager api with no passed in optional parameters.
Declaration
public DelegateCommand ModalNotificationDialogNoParamsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
NotificationDialogCallbackAndCancelButtonParamCommand
Gets the command for showing a simple notification dialog by consuming DialogManager api with passed in callback and allowCancelButton optional parameters to do something with result.
Declaration
public DelegateCommand NotificationDialogCallbackAndCancelButtonParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
NotificationDialogNoButtonsParamCommand
Gets the command for showing a simple notification dialog by consuming DialogManager api with passed in shouldAllowButtonControls optional parameter. This will not show any of the default dialog buttons and it would be up to the consumer to provide this same functionality in their custom dialog view.
Declaration
public DelegateCommand NotificationDialogNoButtonsParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
NotificationDialogUseCustomDialogStylesParamCommand
Gets the command for showing a simple notification dialog by consuming DialogManager api with passed in dialogStyle optional parameter. This will apply styles to the dialog window that will override any default styles currently applied.
Declaration
public DelegateCommand NotificationDialogUseCustomDialogStylesParamCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Rectangles
Gets a collection of Rectangles
Declaration
public ObservableCollection<Rectangle> Rectangles { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<System.Windows.Shapes.Rectangle> |
Settings
Gets the debug settings for use with testing new setting looks
Declaration
public DebugSettings Settings { get; }
Property Value
Type | Description |
---|---|
DebugSettings |
SimpleConfirmationDialogNoParamsCommand
Gets the command for showing a simple confirmation dialog by consuming DialogManager api with no passed in optional parameters.
Declaration
public DelegateCommand SimpleConfirmationDialogNoParamsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
SimpleNotificationDialogNoParamsCommand
Gets the command for showing a simple notification dialog by consuming DialogManager api with no passed in optional parameters.
Declaration
public DelegateCommand SimpleNotificationDialogNoParamsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
ThemeTestingObjects
Gets a collection of ThemeTestingObjects
Declaration
public ObservableCollection<ThemeTestingTreeviewObject> ThemeTestingObjects { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ObservableCollection<ThemeTestingTreeviewObject> |
ToggleVisibilityOnAllOpenInteractionsCommand
Gets the command to programmatically toggle the visibility of all open interactions by consuming DialogManager api. This will force all currently opened interactions to either show or hide respectively.
Declaration
public DelegateCommand ToggleVisibilityOnAllOpenInteractionsCommand { get; }
Property Value
Type | Description |
---|---|
DelegateCommand |
Methods
View SourceInitialize()
Initializes phoenix managed resources when all modules are loaded.
Declaration
protected override void Initialize()
Overrides
Uninitialize()
Uninitializes phoenix managed resources when closed.
Declaration
protected override void Uninitialize()