Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MvvmCommandBinding : DependencyObject
- {
- public static readonly DependencyProperty CommandProperty = DependencyProperty.Register("Command", typeof(ICommand), typeof(MvvmCommandBinding), new PropertyMetadata(default(ICommand)));
- public ICommand Command
- {
- get { return (ICommand) GetValue(CommandProperty); }
- set { SetValue(CommandProperty, value); }
- }
- public static readonly DependencyProperty RoutedCommandProperty = DependencyProperty.Register("RoutedCommand", typeof(Type), typeof(MvvmCommandBinding), new PropertyMetadata(default(Type)));
- public Type RoutedCommand
- {
- get { return (Type) GetValue(RoutedCommandProperty); }
- set { SetValue(RoutedCommandProperty, value); }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment