Esempio n. 1
0
        /// <summary>
        ///   Initializes static members of the RibbonToolTip class.  This overrides
        ///   the default style.
        /// </summary>
        static RibbonToolTip()
        {
            Type ownerType = typeof(RibbonToolTip);

            DefaultStyleKeyProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(ownerType));
            IsOpenProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(new PropertyChangedCallback(OnIsOpenChanged), new CoerceValueCallback(CoerceIsOpen)));
            PlacementTargetProperty.OverrideMetadata(ownerType, new FrameworkPropertyMetadata(OnPlacementTargetPropertyChanged));
        }
Esempio n. 2
0
 static AyInputPopup()
 {
     PlacementTargetProperty.OverrideMetadata(
         typeof(AyInputPopup),
         new FrameworkPropertyMetadata(new PropertyChangedCallback(OnPlacementTargetChanged)));
 }