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)); }
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))); }
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); }
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)); }
static AnchorablePaneTitle() { IsHitTestVisibleProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(true)); FocusableProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(false)); DefaultStyleKeyProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(typeof(AnchorablePaneTitle))); }
static TileLayer() { IsHitTestVisibleProperty.OverrideMetadata( typeof(TileLayer), new FrameworkPropertyMetadata(false)); }
/// <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)); }
static DrawingIcon() { IsHitTestVisibleProperty.OverrideMetadata(typeof(DrawingIcon), new FrameworkPropertyMetadata(false)); }
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)); }
static WorldOfGooCursor() { IsHitTestVisibleProperty.OverrideMetadata(typeof(WorldOfGooCursor), new FrameworkPropertyMetadata(false)); }
static SeparatorX() { IsHitTestVisibleProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false)); FocusableProperty.OverrideMetadata(typeof(SeparatorX), new FrameworkPropertyMetadata(false)); }
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)); }
static MapOverlay() { IsHitTestVisibleProperty.OverrideMetadata(typeof(MapOverlay), new FrameworkPropertyMetadata(false)); }
static AdornerContainer() { IsHitTestVisibleProperty.OverrideMetadata(typeof(AdornerContainer), new UIPropertyMetadata(false)); }
static BlockGridLayerBase() { IsHitTestVisibleProperty.OverrideMetadata(typeof(BlockGridLayerBase), new FrameworkPropertyMetadata(false)); }