BradleyUffner

Untitled

May 11th, 2017
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. public class MvvmCommandBinding : DependencyObject
  2. {
  3. public static readonly DependencyProperty CommandProperty = DependencyProperty.Register("Command", typeof(ICommand), typeof(MvvmCommandBinding), new PropertyMetadata(default(ICommand)));
  4.  
  5. public ICommand Command
  6. {
  7. get { return (ICommand) GetValue(CommandProperty); }
  8. set { SetValue(CommandProperty, value); }
  9. }
  10.  
  11.  
  12. public static readonly DependencyProperty RoutedCommandProperty = DependencyProperty.Register("RoutedCommand", typeof(Type), typeof(MvvmCommandBinding), new PropertyMetadata(default(Type)));
  13.  
  14. public Type RoutedCommand
  15. {
  16. get { return (Type) GetValue(RoutedCommandProperty); }
  17. set { SetValue(RoutedCommandProperty, value); }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment