Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MvvmCommandBindings : DependencyObject
- {
- public static readonly DependencyProperty CommandsProperty =
- DependencyProperty.RegisterAttached("Commands",
- typeof(List<MvvmCommandBinding>),
- typeof(MvvmCommandBindings),
- new FrameworkPropertyMetadata(new List<MvvmCommandBinding>()));
- public static void SetCommands(UIElement element, List<MvvmCommandBinding> value)
- {
- element.SetValue(CommandsProperty,value);
- }
- public static List<MvvmCommandBinding> GetCommands(UIElement element)
- {
- return (List<MvvmCommandBinding>) element.GetValue(CommandsProperty);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement