public static void AddIsPixelGridEnabledChangedHandler(CanvasView canvasView, ValueChangedEventHandler <bool> handler) { ValueChangedEventHandler <bool> a = (ValueChangedEventHandler <bool>)canvasView.GetValue(IsPixelGridEnabledChangedEvent); ValueChangedEventHandler <bool> handler3 = (ValueChangedEventHandler <bool>)Delegate.Combine(a, handler); canvasView.SetValue(IsPixelGridEnabledChangedEvent, handler3); }
public static void RemoveIsPixelGridEnabledChangedHandler(CanvasView canvasView, ValueChangedEventHandler <bool> handler) { ValueChangedEventHandler <bool> source = (ValueChangedEventHandler <bool>)canvasView.GetValue(IsPixelGridEnabledChangedEvent); ValueChangedEventHandler <bool> handler3 = (ValueChangedEventHandler <bool>)Delegate.Remove(source, handler); canvasView.SetValue(IsPixelGridEnabledChangedEvent, handler3); }
public static void SetIsHighQualityScalingEnabled(CanvasView canvasView, bool value) { canvasView.SetValue(IsHighQualityScalingEnabledProperty, BooleanUtil.GetBoxed(value)); }
public static void SetIsPixelGridEnabled(CanvasView canvasView, bool value) { canvasView.SetValue(IsPixelGridEnabledProperty, BooleanUtil.GetBoxed(value)); }