Ejemplo n.º 1
0
        static WindowNotificationManager()
        {
            PseudoClass <WindowNotificationManager, NotificationPosition>(PositionProperty, x => x == NotificationPosition.TopLeft, ":topleft");
            PseudoClass <WindowNotificationManager, NotificationPosition>(PositionProperty, x => x == NotificationPosition.TopRight, ":topright");
            PseudoClass <WindowNotificationManager, NotificationPosition>(PositionProperty, x => x == NotificationPosition.BottomLeft, ":bottomleft");
            PseudoClass <WindowNotificationManager, NotificationPosition>(PositionProperty, x => x == NotificationPosition.BottomRight, ":bottomright");

            HorizontalAlignmentProperty.OverrideDefaultValue <WindowNotificationManager>(Layout.HorizontalAlignment.Stretch);
            VerticalAlignmentProperty.OverrideDefaultValue <WindowNotificationManager>(Layout.VerticalAlignment.Stretch);
        }
Ejemplo n.º 2
0
        static ProgressBar()
        {
            ValueProperty.Changed.AddClassHandler <ProgressBar>(x => x.ValueChanged);

            HorizontalAlignmentProperty.OverrideDefaultValue <ProgressBar>(HorizontalAlignment.Left);
            VerticalAlignmentProperty.OverrideDefaultValue <ProgressBar>(VerticalAlignment.Top);

            IsIndeterminateProperty.Changed.AddClassHandler <ProgressBar>(
                (p, e) => { if (p._indicator != null)
                            {
                                p.UpdateIsIndeterminate((bool)e.NewValue);
                            }
                });
            OrientationProperty.Changed.AddClassHandler <ProgressBar>(
                (p, e) => { if (p._indicator != null)
                            {
                                p.UpdateOrientation((Orientation)e.NewValue);
                            }
                });
        }
Ejemplo n.º 3
0
 static WindowNotificationManager()
 {
     HorizontalAlignmentProperty.OverrideDefaultValue <WindowNotificationManager>(Layout.HorizontalAlignment.Stretch);
     VerticalAlignmentProperty.OverrideDefaultValue <WindowNotificationManager>(Layout.VerticalAlignment.Stretch);
 }