-
Notifications
You must be signed in to change notification settings - Fork 13
markdoccore IDialogViewModel
Denis Akopyan edited this page Mar 6, 2022
·
1 revision
Interface for dialog view models
flowchart LR
classDef interfaceStyle stroke-dasharray: 5 5;
classDef abstractStyle stroke-width:4px
subgraph MarkDoc.Core
MarkDoc.Core.IDialogViewModel[[IDialogViewModel]]
class MarkDoc.Core.IDialogViewModel interfaceStyle;
MarkDoc.Core.IViewModel[[IViewModel]]
class MarkDoc.Core.IViewModel interfaceStyle;
end
subgraph System
System.IDisposable[[IDisposable]]
end
MarkDoc.Core.IViewModel --> MarkDoc.Core.IDialogViewModel
System.IDisposable --> MarkDoc.Core.IDialogViewModel
| Type | Name | Methods |
|---|---|---|
bool |
CanClickCancelDetermines whether the cancel button can be clicked |
get |
bool |
CanClickNegativeDetermines whether the negative button can be clicked |
get |
bool |
CanClickPositiveDetermines whether the positive button can be clicked |
get |
string |
TitleDialog title |
get |
| Returns | Name |
|---|---|
void |
OnCancelButtonClicked()Invoked when the parent dialog window cancel button is pressed |
void |
OnNegativeButtonClicked()Invoked when the parent dialog window negative button is pressed |
void |
OnPositiveButtonClicked()Invoked when the parent dialog window positive button is pressed |
Interface for dialog view models
-
IViewModel IDisposable
public abstract void OnPositiveButtonClicked()Invoked when the parent dialog window positive button is pressed
public abstract void OnNegativeButtonClicked()Invoked when the parent dialog window negative button is pressed
public abstract void OnCancelButtonClicked()Invoked when the parent dialog window cancel button is pressed
public abstract string Title { get }Dialog title
public abstract bool CanClickPositive { get }Determines whether the positive button can be clicked
public abstract bool CanClickNegative { get }Determines whether the negative button can be clicked
public abstract bool CanClickCancel { get }Determines whether the cancel button can be clicked
public event EventHandler CloseRequestedInvoked when the dialog is to be closed
Generated with MarkDoc