Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }
Ejemplo n.º 3
0
 public static void SetIsHighQualityScalingEnabled(CanvasView canvasView, bool value)
 {
     canvasView.SetValue(IsHighQualityScalingEnabledProperty, BooleanUtil.GetBoxed(value));
 }
Ejemplo n.º 4
0
 public static void SetIsPixelGridEnabled(CanvasView canvasView, bool value)
 {
     canvasView.SetValue(IsPixelGridEnabledProperty, BooleanUtil.GetBoxed(value));
 }