예제 #1
0
 private static SliderCommandBehavior GetOrCreateBehavior(Slider slider)
 {
     var behavior = slider.GetValue(SliderCommandBehaviorProperty) as SliderCommandBehavior;
     if (behavior == null)
     {
         behavior = new SliderCommandBehavior(slider);
         slider.SetValue(SliderCommandBehaviorProperty, behavior);
     }
     return behavior;
 }
 public static MouseWheelState GetEnableMouseWheel(Slider element)
 {
     return (MouseWheelState)element.GetValue(EnableMouseWheelProperty);
 }
 public static MouseWheelChange GetChangeValueBy(Slider element)
 {
     return (MouseWheelChange)element.GetValue(ChangeValueByProperty);
 }
예제 #4
0
 public static ICommand GetCommand(Slider slider)
 {
     return (ICommand)slider.GetValue(CommandProperty);
 }