Beispiel #1
0
 static Flyout()
 {
     StaysOpenProperty.OverrideMetadata(typeof(Flyout), new FrameworkPropertyMetadata(false));
     AllowsTransparencyProperty.OverrideMetadata(typeof(Flyout), new FrameworkPropertyMetadata(true));
     PopupAnimationProperty.OverrideMetadata(typeof(Flyout), new FrameworkPropertyMetadata(PopupAnimation.Slide));
     IsOpenProperty.OverrideMetadata(typeof(Flyout), new FrameworkPropertyMetadata(IsOpenPropertyChangedCallback, IsOpenCoerceValueCallback));
 }
 static StaysOpenContextMenu()
 {
     IsOpenProperty.OverrideMetadata(
         typeof(StaysOpenContextMenu),
         new FrameworkPropertyMetadata(false, null, CoerceIsOpen));
     StaysOpenProperty.OverrideMetadata(
         typeof(StaysOpenContextMenu),
         new FrameworkPropertyMetadata(false, PropertyChanged, CoerceStaysOpen));
 }