Пример #1
0
 static LayoutGridResizerControl()
 {
     //This OverrideMetadata call tells the system that this element wants to provide a style that is different than its base class.
     //This style is defined in themes\generic.xaml
     DefaultStyleKeyProperty.OverrideMetadata(typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(typeof(LayoutGridResizerControl)));
     HorizontalAlignmentProperty.OverrideMetadata(typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(HorizontalAlignment.Stretch, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
     VerticalAlignmentProperty.OverrideMetadata(typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(VerticalAlignment.Stretch, FrameworkPropertyMetadataOptions.AffectsParentMeasure));
     BackgroundProperty.OverrideMetadata(typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(Brushes.Transparent));
     IsHitTestVisibleProperty.OverrideMetadata(typeof(LayoutGridResizerControl), new FrameworkPropertyMetadata(true, null));
 }
Пример #2
0
        static LiveToolTip()
        {
            var thisType = typeof(LiveToolTip);

            DefaultStyleKeyProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(thisType));
            FocusableProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(false));
            IsHitTestVisibleProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(false));
            BackgroundProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(Brushes.White));
            OpacityProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(1.0));
            BorderBrushProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(Brushes.DarkGray));
            BorderThicknessProperty.OverrideMetadata(thisType, new FrameworkPropertyMetadata(new Thickness(1.0)));
        }
Пример #3
0
        static DockWindow()
        {
            IsHitTestVisibleProperty.OverrideMetadata(typeof(DockWindow), new FrameworkPropertyMetadata(true));
            KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DockWindow), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
            KeyboardNavigation.DirectionalNavigationProperty.OverrideMetadata(typeof(DockWindow), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
            KeyboardNavigation.ControlTabNavigationProperty.OverrideMetadata(typeof(DockWindow), new FrameworkPropertyMetadata(KeyboardNavigationMode.None));
            FocusableProperty.OverrideMetadata(typeof(DockWindow), new FrameworkPropertyMetadata(BooleanBoxes.False));
            IsTabProperty = DependencyProperty.RegisterAttached("IsTab", typeof(bool), typeof(DockWindow),
                                                                new FrameworkPropertyMetadata(BooleanBoxes.False));

            CommandBinding performCloseCommandBinding   = new CommandBinding(DockCommands.PerformClose, new ExecutedRoutedEventHandler(OnPerformCloseExecuted));
            CommandBinding toggleFloatingCommandBinding = new CommandBinding(DockCommands.ToggleFloating,
                                                                             new ExecutedRoutedEventHandler(OnToggleFloatingExecuted), new CanExecuteRoutedEventHandler(CanExecuteToggleFloating));

            CommandManager.RegisterClassCommandBinding(typeof(DockWindow), performCloseCommandBinding);
            CommandManager.RegisterClassCommandBinding(typeof(DockWindow), toggleFloatingCommandBinding);
        }
Пример #4
0
        static MapScale()
        {
            IsHitTestVisibleProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(false));

            MinWidthProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(100d));

            HorizontalAlignmentProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(HorizontalAlignment.Right));

            VerticalAlignmentProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(VerticalAlignment.Bottom));

            StrokeStartLineCapProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(PenLineCap.Round));

            StrokeEndLineCapProperty.OverrideMetadata(
                typeof(MapScale), new FrameworkPropertyMetadata(PenLineCap.Round));
        }
Пример #5
0
 static AnchorablePaneTitle()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(true));
     FocusableProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(false));
     DefaultStyleKeyProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(typeof(AnchorablePaneTitle)));
 }
Пример #6
0
 static TileLayer()
 {
     IsHitTestVisibleProperty.OverrideMetadata(
         typeof(TileLayer), new FrameworkPropertyMetadata(false));
 }
Пример #7
0
 /// <summary>
 ///   Initializes static members of the <see cref="T:T:ReactNative.Views.TextInput.PlaceholderAdorner"/> class.
 /// </summary>
 static PlaceholderAdorner()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(PlaceholderAdorner), new FrameworkPropertyMetadata(false));
     ClipToBoundsProperty.OverrideMetadata(typeof(PlaceholderAdorner), new FrameworkPropertyMetadata(true));
 }
Пример #8
0
 static DrawingIcon()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(DrawingIcon), new FrameworkPropertyMetadata(false));
 }
Пример #9
0
 static MapGraticule()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(MapGraticule), new FrameworkPropertyMetadata(false));
     StrokeThicknessProperty.OverrideMetadata(typeof(MapGraticule), new FrameworkPropertyMetadata(0.5));
 }
 static StockTicker()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(StockTicker),
                                              new FrameworkPropertyMetadata(typeof(StockTicker)));
     IsHitTestVisibleProperty.OverrideMetadata(typeof(StockTicker), new FrameworkPropertyMetadata(false));
 }
Пример #11
0
 static WorldOfGooCursor()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(WorldOfGooCursor), new FrameworkPropertyMetadata(false));
 }
Пример #12
0
 static SeparatorX()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false));
     FocusableProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false));
 }
Пример #13
0
 static LayoutDragSplitter()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(LayoutDragSplitter), new FrameworkPropertyMetadata(typeof(LayoutDragSplitter)));
     BackgroundProperty.OverrideMetadata(typeof(LayoutDragSplitter), new FrameworkPropertyMetadata(Brushes.Transparent));
     IsHitTestVisibleProperty.OverrideMetadata(typeof(LayoutDragSplitter), new FrameworkPropertyMetadata(true, null));
 }
Пример #14
0
 static MapOverlay()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(MapOverlay), new FrameworkPropertyMetadata(false));
 }
Пример #15
0
 static AdornerContainer()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(AdornerContainer), new UIPropertyMetadata(false));
 }
Пример #16
0
 static BlockGridLayerBase()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(BlockGridLayerBase), new FrameworkPropertyMetadata(false));
 }