コード例 #1
0
 public static string GetTag(CommandDecorator source)
 {
     return((string)source.GetValue(TagProperty));
 }
コード例 #2
0
 public static void SetTag(CommandDecorator source, string value)
 {
     source.SetValue(TagProperty, value);
 }
コード例 #3
0
 public static CommandPhase GetPhase(CommandDecorator source)
 {
     return((CommandPhase)source.GetValue(PhaseProperty));
 }
コード例 #4
0
 public static void SetPhase(CommandDecorator source, CommandPhase value)
 {
     source.SetValue(PhaseProperty, value);
 }
コード例 #5
0
 public static void SetCommand(CommandDecorator source, ICommand value)
 {
     source.SetValue(CommandProperty, value);
 }
コード例 #6
0
 public static ICommand GetCommand(CommandDecorator source)
 {
     return((ICommand)source.GetValue(CommandProperty));
 }
コード例 #7
0
 private static void RemoveDecorator(CommandDecorator commandDecorator)
 {
     commandDecorator.Detach();
 }
コード例 #8
0
 private static void AddDecorator(CommandDecorator commandDecorator)
 {
     commandDecorator.Attach();
 }
コード例 #9
0
 public static void SetDecorator(DependencyObject source, CommandDecorator value)
 {
     source.SetValue(DecoratorProperty, value);
 }