static RepeatButton() { DefaultStyleKeyHelper.OverrideStyleKey <RepeatButton>(); #if !SILVERLIGHT ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadataXm(ClickMode.Press)); #endif }
static RepeatButton() { //DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton))); ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadata(ClickMode.Press) { CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet }); }
static RotatingButton() { DefaultStyleKeyProperty.OverrideMetadata(typeof(RotatingButton), new FrameworkPropertyMetadata(typeof(RotatingButton))); //FocusableProperty.OverrideMetadata(typeof(RotatingButton), new UIPropertyMetadata(true)); //_dType = DependencyObjectType.FromSystemTypeInternal(typeof(RepeatButton)); ClickModeProperty.OverrideMetadata(typeof(RotatingButton), new FrameworkPropertyMetadata(ClickMode.Press)); IsEnabledProperty.OverrideMetadata(typeof(RotatingButton), new FrameworkPropertyMetadata(true)); }
/// <summary> /// <see cref="LongPressButton"/> クラスの静的な初期化をします。 /// </summary> static LongPressButton() { // 時間がたったらその時点でクリックとするため、規定の ClickMode を変更する。 ClickModeProperty.OverrideMetadata(typeof(LongPressButton), new FrameworkPropertyMetadata(ClickMode.Press)); // .NET Core 3.1 待ち。(AssemblyInfo.cs が自動生成になった影響で、反映されない。) // https://github.com/dotnet/wpf/issues/1699 #if false // 規定のスタイルを設定する。 DefaultStyleKeyProperty.OverrideMetadata(typeof(LongPressButton), new FrameworkPropertyMetadata(typeof(LongPressButton))); #endif }
static DataGridRowHeader() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(typeof(DataGridRowHeader))); ContentProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContent)); ContentTemplateProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContentTemplate)); ContentTemplateSelectorProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceContentTemplateSelector)); StyleProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceStyle)); WidthProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(OnNotifyPropertyChanged, OnCoerceWidth)); ClickModeProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(ClickMode.Press)); FocusableProperty.OverrideMetadata(typeof(DataGridRowHeader), new FrameworkPropertyMetadata(false)); }
static RepeatButton() { DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton))); _dType = DependencyObjectType.FromSystemTypeInternal(typeof(RepeatButton)); ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(ClickMode.Press)); }
static RepeatButton() { //DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton))); ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadata(ClickMode.Press)); }
static RepeatButton() { ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(ClickMode.Press)); }
static FIconRepeatButton() { // DefaultStyleKeyProperty.OverrideMetadata(typeof(FIconRepeatButton), new FrameworkPropertyMetadata(typeof(FIconRepeatButton))); ClickModeProperty.OverrideMetadata(typeof(FIconRepeatButton), new FrameworkPropertyMetadata(System.Windows.Controls.ClickMode.Press)); }
static DropDownButton() { ClickModeProperty.OverrideMetadata(typeof(DropDownButton), new FrameworkPropertyMetadata(ClickMode.Release)); }
static DropDownMenuButton() { ClickModeProperty.OverrideMetadata(typeof(DropDownMenuButton), new FrameworkPropertyMetadata(ClickMode.Press)); }
static GamePopupButton() { ClickModeProperty.OverrideMetadata(typeof(GamePopupButton), new FrameworkPropertyMetadata(ClickMode.Press)); StaysOpenOnClickProperty.OverrideMetadata(typeof(GamePopupButton), new FrameworkPropertyMetadata(false, null, CoerceStaysOpenOnClickPropertyValue)); DefaultStyleKeyProperty.OverrideMetadata(typeof(GamePopupButton), new FrameworkPropertyMetadata(typeof(GamePopupButton))); }
/// <summary> /// Initializes static members of the <see cref="DropDownMenu"/> class. /// </summary> static DropDownMenu() { DefaultStyleKeyProperty.OverrideMetadata(typeof(DropDownMenu), new FrameworkPropertyMetadata(typeof(DropDownMenu))); ClickModeProperty.OverrideMetadata(typeof(DropDownMenu), new FrameworkPropertyMetadata(ClickMode.Release)); }