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); }
public static ICommand GetCommand(Slider slider) { return (ICommand)slider.GetValue(CommandProperty); }