private static void BusyChangedCallback(DependencyObject obj, DependencyPropertyChangedEventArgs args) { OsirisButton ctl = (OsirisButton)obj; bool newValue = (bool)args.NewValue; // Call UpdateStates because the Value might have caused the // control to change ValueStates. ctl.UpdateStates(true); // Call OnValueChanged to raise the ValueChanged event. ctl.OnBusyChanged( new IsBusyChangedEventArgs(OsirisButton.IsBusyChangedEvent, newValue)); }
private static void OnTransformDirty(DependencyObject d, DependencyPropertyChangedEventArgs e) { // Callback for MinWidth, MaxWidth, Width, MinHeight, MaxHeight, Height, and RenderTransformOffset //fe.AreTransformsClean = false; OsirisButton m = (OsirisButton)d; }