프로퍼티 | 타입 | 설명 | |
---|---|---|---|
HandleDefaultButton | void | ||
OnButtonReceivedFocus | void | ||
OnDataWindowClosing | void | ||
OnViewModelPropertyChanged | void | ||
RaiseViewModelChanged | void | ||
SetDialogResultAndMakeSureWindowGetsClosed | bool |
메소드 | 설명 | |
---|---|---|
MetroDataWindow ( ) : System |
Initializes a new instance of the T:System.Windows.FrameworkElement class. This method is required for design time support. |
|
MetroDataWindow ( DataWindowMode mode, IEnumerable |
Initializes a new instance of this class with custom commands.
|
|
MetroDataWindow ( IViewModel viewModel ) : System |
Initializes a new instance of the DataWindow class. Explicit constructor with view model injection, required for Activator.CreateInstance(System.Type) which does not seem to support default parameter values. |
|
MetroDataWindow ( IViewModel viewModel, DataWindowMode mode, IEnumerable |
Initializes a new instance of the DataWindow class.
|
메소드 | 설명 | |
---|---|---|
AddCustomButton ( |
Adds a custom button to the list of buttons.
|
|
ApplyChangesAsync ( ) : Task |
Applies all changes made by this window.
|
|
DiscardChangesAsync ( ) : Task |
Discards all changes made by this window.
|
|
ExecuteApplyAsync ( ) : System.Threading.Tasks.Task |
Executes the Apply command.
|
|
ExecuteCancelAsync ( ) : System.Threading.Tasks.Task |
Executes the Cancel command.
|
|
ExecuteClose ( ) : void |
Executes the Close command.
|
|
ExecuteOkAsync ( ) : System.Threading.Tasks.Task |
Executes the OK command.
|
|
Initialize ( ) : void |
Initializes the window.
|
|
OnApplyCanExecute ( ) : bool |
Determines whether the user can execute the Apply command.
|
|
OnApplyExcuteAsync ( ) : System.Threading.Tasks.Task |
Handled when the user invokes the Apply command.
|
|
OnCancelCanExecute ( ) : bool |
Determines whether the user can execute the Cancel command.
|
|
OnCancelExecuteAsync ( ) : System.Threading.Tasks.Task |
Handled when the user invokes the Cancel command.
|
|
OnCloseCanExecute ( ) : bool |
Determines whether the user can execute the Close command.
|
|
OnCloseExecute ( ) : void |
Handled when the user invokes the Close command.
|
|
OnContentChanged ( object oldContent, object newContent ) : void |
Invoked when the content of this control has been changed. This method will add the dynamic controls automatically.
|
|
OnInternalGridChanged ( ) : void |
Called when the internal grid has changed. This method is only invoked when the grid is set, not when the grid is cleared (which is something that should never happen). |
|
OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void |
Invoked when an unhandled Keyboard.KeyDownEvent attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
|
|
OnLoaded ( |
Called when the DataWindow is loaded.
|
|
OnOkCanExecute ( ) : bool |
Determines whether the user can execute the OK command.
|
|
OnOkExecuteAsync ( ) : System.Threading.Tasks.Task |
Handled when the user invokes the OK command.
|
|
OnPropertyChanged ( |
Called when a dependency property on this control has changed.
|
|
OnUnloaded ( |
Called when the DataWindow is unloaded.
|
|
OnViewModelChanged ( ) : void |
Called when the ViewModel has changed. This method does not implement any logic and saves a developer from subscribing/unsubscribing to the ViewModelChanged event inside the same user control. |
|
OnViewModelClosedAsync ( object sender, Catel.MVVM.ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task |
Called when the ViewModel has been closed.
|
|
OnViewModelPropertyChanged ( |
Called when a property on the current ViewModel has changed.
|
|
RaiseCanExecuteChangedForAllCommands ( ) : void |
Raises the can ICommand.CanExecuteChanged for all commands.
|
|
ValidateData ( ) : bool |
Validates the data.
|
메소드 | 설명 | |
---|---|---|
HandleDefaultButton ( ) : void |
Handles the default button, which can be done via a key event (enter).
|
|
OnButtonReceivedFocus ( object sender, |
Called when a button has received the focus.
|
|
OnDataWindowClosing ( object sender, CancelEventArgs args ) : void |
Handles the Closing event of the DataWindow control.
|
|
OnViewModelPropertyChanged ( object sender, |
Called when a property on the current view model has changed.
|
|
RaiseViewModelChanged ( ) : void | ||
SetDialogResultAndMakeSureWindowGetsClosed ( bool result ) : bool |
Sets the DialogResult, but keeps track of whether the DialogResult can actually be set. For example, dialogs which are not called with
|
protected AddCustomButton ( |
||
dataWindowButton | The data window button. | |
리턴 | void |
protected ExecuteApplyAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
protected ExecuteCancelAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
protected ExecuteOkAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
public MetroDataWindow ( DataWindowMode mode, IEnumerable |
||
mode | DataWindowMode | |
additionalButtons | IEnumerable |
The additional buttons. |
defaultButton | DataWindowDefaultButton | The default button. |
setOwnerAndFocus | bool | if set to |
infoBarMessageControlGenerationMode | InfoBarMessageControlGenerationMode | The info bar message control generation mode. |
리턴 | System |
public MetroDataWindow ( IViewModel viewModel ) : System | ||
viewModel | IViewModel | The view model. |
리턴 | System |
public MetroDataWindow ( IViewModel viewModel, DataWindowMode mode, IEnumerable |
||
viewModel | IViewModel | The view model. |
mode | DataWindowMode | |
additionalButtons | IEnumerable |
The additional buttons. |
defaultButton | DataWindowDefaultButton | The default button. |
setOwnerAndFocus | bool | if set to |
infoBarMessageControlGenerationMode | InfoBarMessageControlGenerationMode | The info bar message control generation mode. |
리턴 | System |
protected OnApplyExcuteAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
protected OnCancelExecuteAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
protected OnContentChanged ( object oldContent, object newContent ) : void | ||
oldContent | object | Old content. |
newContent | object | New content. |
리턴 | void |
protected OnKeyDown ( System.Windows.Input.KeyEventArgs e ) : void | ||
e | System.Windows.Input.KeyEventArgs | The |
리턴 | void |
protected OnLoaded ( |
||
e | The |
|
리턴 | void |
protected OnOkExecuteAsync ( ) : System.Threading.Tasks.Task | ||
리턴 | System.Threading.Tasks.Task |
protected OnPropertyChanged ( |
||
e | The |
|
리턴 | void |
protected OnUnloaded ( |
||
e | The |
|
리턴 | void |
protected OnViewModelClosedAsync ( object sender, Catel.MVVM.ViewModelClosedEventArgs e ) : System.Threading.Tasks.Task | ||
sender | object | The sender. |
e | Catel.MVVM.ViewModelClosedEventArgs | The |
리턴 | System.Threading.Tasks.Task |
protected OnViewModelPropertyChanged ( |
||
e | The |
|
리턴 | void |
protected RaiseCanExecuteChangedForAllCommands ( ) : void | ||
리턴 | void |