static myElement() { //<SnippetUIElementShortOverride> FocusableProperty.OverrideMetadata(typeof(myElement), new UIPropertyMetadata(true)); //</SnippetUIElementShortOverride> }
/// <summary> /// Initializes static members of the <see cref="TreeViewItem"/> class. /// </summary> static TreeViewItem() { SelectableMixin.Attach <TreeViewItem>(IsSelectedProperty); FocusableProperty.OverrideDefaultValue <TreeViewItem>(true); ItemsPanelProperty.OverrideDefaultValue <TreeViewItem>(DefaultPanel); }
static MetroThumbContentControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(MetroThumbContentControl), new FrameworkPropertyMetadata(typeof(MetroThumbContentControl))); FocusableProperty.OverrideMetadata(typeof(MetroThumbContentControl), new FrameworkPropertyMetadata(default(bool))); EventManager.RegisterClassHandler(typeof(MetroThumbContentControl), Mouse.LostMouseCaptureEvent, new MouseEventHandler(OnLostMouseCapture)); }
static SelectableTextBlock() { FocusableProperty.OverrideMetadata(typeof(SelectableTextBlock), new FrameworkPropertyMetadata(true)); TextEditorWrapper.RegisterCommandHandlers(typeof(SelectableTextBlock), true, true, true); }
/// <summary> /// Initializes static members of the <see cref="ListBoxItem"/> class. /// </summary> static ListBoxItem() { SelectableMixin.Attach <ListBoxItem>(IsSelectedProperty); PressedMixin.Attach <ListBoxItem>(); FocusableProperty.OverrideDefaultValue <ListBoxItem>(true); }
/// <summary> /// Initializes the <see cref="TriangleColorSelector"/> type. /// </summary> static TriangleColorSelector() { FocusableProperty.OverrideMetadata(typeof(TriangleColorSelector), new PropertyMetadata <Boolean>(false)); }
static NavigationView() { SelectionModeProperty.OverrideDefaultValue <NavigationView>(SelectionMode.Single); SelectedItemProperty.Changed.AddClassHandler <NavigationView>((x, e) => x.OnSelectedItemChanged(x, e)); FocusableProperty.OverrideDefaultValue <NavigationView>(true); }
/// <summary> /// Static constructor /// </summary> static DatePicker() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(typeof(DatePicker))); FocusableProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(false)); KeyboardNavigation.TabNavigationProperty.OverrideMetadata(typeof(DatePicker), new FrameworkPropertyMetadata(KeyboardNavigationMode.Once)); }
static LayoutDocumentPaneControl() { FocusableProperty.OverrideMetadata(typeof(LayoutDocumentPaneControl), new FrameworkPropertyMetadata(false)); }
static TextBox() { FocusableProperty.OverrideDefaultValue(typeof(TextBox), true); }
static AnchorablePaneTitle() { IsHitTestVisibleProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(true)); FocusableProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(false)); DefaultStyleKeyProperty.OverrideMetadata(typeof(AnchorablePaneTitle), new FrameworkPropertyMetadata(typeof(AnchorablePaneTitle))); }
/// <summary> /// Static constructor. /// </summary> static ContentControl3D() { FocusableProperty.OverrideMetadata( typeof(ContentControl3D), new UIPropertyMetadata(true)); }
/// <summary> /// Initializes the <see cref="ProgressBar"/> type. /// </summary> static ProgressBar() { FocusableProperty.OverrideMetadata(typeof(ProgressBar), new PropertyMetadata <Boolean>(CommonBoxedValues.Boolean.False)); MaximumProperty.OverrideMetadata(typeof(ProgressBar), new PropertyMetadata <Double>(100.0)); }
static HtmlControl() { FocusableProperty.OverrideDefaultValue(typeof(HtmlControl), true); }
/// <summary> /// Initializes static members of the <see cref="DropDown"/> class. /// </summary> static DropDown() { FocusableProperty.OverrideDefaultValue <DropDown>(true); SelectedItemProperty.Changed.AddClassHandler <DropDown>(x => x.SelectedItemChanged); }
// Notes: // - This is a Scintilla-inspired pure WPF text editor control // - Architecturally, it modelled on AvalonEdit. // 'TextEditorControl' is basically a container. // 'TextDocument' contains all line/text management (think fancy string builder) // 'TextArea' handles user input and caret. // 'TextView' handles all rendering. static TextEditorControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(TextEditorControl), new FrameworkPropertyMetadata(typeof(TextEditorControl))); FocusableProperty.OverrideMetadata(typeof(TextEditorControl), new FrameworkPropertyMetadata(Boxed.True)); }
static LayoutAnchorableControl() { DefaultStyleKeyProperty.OverrideMetadata(typeof(LayoutAnchorableControl), new FrameworkPropertyMetadata(typeof(LayoutAnchorableControl))); FocusableProperty.OverrideMetadata(typeof(LayoutAnchorableControl), new FrameworkPropertyMetadata(false)); }
static GameEngineHost() { FocusableProperty.OverrideMetadata(typeof(GameEngineHost), new FrameworkPropertyMetadata(BooleanBoxes.TrueBox)); }