Exemplo n.º 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));
 }
Exemplo n.º 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)));
        }
Exemplo n.º 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);
        }
Exemplo n.º 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));
        }
Exemplo n.º 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)));
 }
Exemplo n.º 6
0
 static TileLayer()
 {
     IsHitTestVisibleProperty.OverrideMetadata(
         typeof(TileLayer), new FrameworkPropertyMetadata(false));
 }
Exemplo n.º 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));
 }
Exemplo n.º 8
0
 static DrawingIcon()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(DrawingIcon), new FrameworkPropertyMetadata(false));
 }
Exemplo n.º 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));
 }
Exemplo n.º 11
0
 static WorldOfGooCursor()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(WorldOfGooCursor), new FrameworkPropertyMetadata(false));
 }
Exemplo n.º 12
0
 static SeparatorX()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false));
     FocusableProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false));
 }
Exemplo n.º 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));
 }
Exemplo n.º 14
0
 static MapOverlay()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(MapOverlay), new FrameworkPropertyMetadata(false));
 }
Exemplo n.º 15
0
 static AdornerContainer()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(AdornerContainer), new UIPropertyMetadata(false));
 }
Exemplo n.º 16
0
 static BlockGridLayerBase()
 {
     IsHitTestVisibleProperty.OverrideMetadata(typeof(BlockGridLayerBase), new FrameworkPropertyMetadata(false));
 }