Example #1
0
 private static void OnMinimizeActionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     InjectedViewActionHandler <Window, object> .Inject(MinimizeActionProperty, d, e, (obj, param) =>
     {
         obj.WindowState = WindowState.Minimized;
     });
 }
Example #2
0
 private static void OnFocusActionChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
 {
     InjectedViewActionHandler <TextBox, object> .Inject(FocusActionProperty, d, e, (control, param) =>
     {
         // ViewModel側からInvokeされた時に実行したい処理をここに書く
         control.Focus();
     });
 }