コード例 #1
0
 static AppBarWindow()
 {
     ShowInTaskbarProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false));
     MinHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MinWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MaxHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     MaxWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
 }
コード例 #2
0
ファイル: AppBarWindow.cs プロジェクト: startnine/start9-ui
 static AppBarWindow()
 {
     ShowInTaskbarProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false));
     MinHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MinWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(20d, MinMaxHeightWidth_Changed));
     MaxHeightProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     MaxWidthProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(MinMaxHeightWidth_Changed));
     IgnorePeekProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(true, OnIgnorePeekChangedCallback));
     ShowInAltTabProperty.OverrideMetadata(typeof(AppBarWindow), new FrameworkPropertyMetadata(false, OnShowInAltTabPropertyChangedCallback));
 }
コード例 #3
0
ファイル: MenuItemImage.cs プロジェクト: liorm/PowerTools
        static MenuItemImage()
        {
            DefaultStyleKeyProperty.OverrideMetadata(
                typeof(MenuItemImage),
                new FrameworkPropertyMetadata(typeof(MenuItemImage)));

            StretchProperty.OverrideMetadata(typeof(MenuItemImage),
                                             new FrameworkPropertyMetadata(System.Windows.Media.Stretch.Uniform));

            MaxWidthProperty.OverrideMetadata(typeof(MenuItemImage), new FrameworkPropertyMetadata(16d));
            MaxHeightProperty.OverrideMetadata(typeof(MenuItemImage), new FrameworkPropertyMetadata(16d));
        }