Пример #1
0
 /// <summary>
 /// Initializes static members of the <see cref="Popup"/> class.
 /// </summary>
 static Popup()
 {
     IsHitTestVisibleProperty.OverrideDefaultValue <Popup>(false);
     ChildProperty.Changed.AddClassHandler <Popup>(x => x.ChildChanged);
     IsOpenProperty.Changed.AddClassHandler <Popup>(x => x.IsOpenChanged);
     TopmostProperty.Changed.AddClassHandler <Popup>((p, e) => p.PopupRoot.Topmost = (bool)e.NewValue);
 }
Пример #2
0
 /// <summary>
 /// Initializes static members of the <see cref="Popup"/> class.
 /// </summary>
 static Popup()
 {
     IsHitTestVisibleProperty.OverrideDefaultValue <Popup>(false);
     ChildProperty.Changed.AddClassHandler <Popup>((x, e) => x.ChildChanged(e));
     IsOpenProperty.Changed.AddClassHandler <Popup>((x, e) => x.IsOpenChanged((AvaloniaPropertyChangedEventArgs <bool>)e));
     VerticalOffsetProperty.Changed.AddClassHandler <Popup>((x, _) => x.HandlePositionChange());
     HorizontalOffsetProperty.Changed.AddClassHandler <Popup>((x, _) => x.HandlePositionChange());
 }
Пример #3
0
 static DockTarget()
 {
     IsHitTestVisibleProperty.OverrideDefaultValue(typeof(DockTarget), false);
 }
Пример #4
0
 /// <summary>
 /// Initializes static members of the <see cref="Popup"/> class.
 /// </summary>
 static Popup()
 {
     IsHitTestVisibleProperty.OverrideDefaultValue <Popup>(false);
     ChildProperty.Changed.AddClassHandler <Popup>(x => x.ChildChanged);
     IsOpenProperty.Changed.AddClassHandler <Popup>(x => x.IsOpenChanged);
 }
Пример #5
0
 static AdornerLayer()
 {
     AdornedElementProperty.Changed.Subscribe(AdornedElementChanged);
     IsHitTestVisibleProperty.OverrideDefaultValue(typeof(AdornerLayer), false);
 }