示例#1
0
        static RepeatButton()
        {
            DefaultStyleKeyHelper.OverrideStyleKey <RepeatButton>();

#if !SILVERLIGHT
            ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadataXm(ClickMode.Press));
#endif
        }
示例#2
0
 static RepeatButton()
 {
     //DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton)));
     ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadata(ClickMode.Press)
     {
         CallPropertyChangedWhenLoadedIntoVisualTree = WhenToCallPropertyChangedEnum.IfPropertyIsSet
     });
 }
示例#3
0
        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
        }
示例#5
0
        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));
        }
示例#6
0
 static RepeatButton()
 {
     DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton)));
     _dType = DependencyObjectType.FromSystemTypeInternal(typeof(RepeatButton));
     ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(ClickMode.Press));
 }
示例#7
0
 static RepeatButton()
 {
     //DefaultStyleKeyProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(typeof(RepeatButton)));
     ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new PropertyMetadata(ClickMode.Press));
 }
示例#8
0
 static RepeatButton()
 {
     ClickModeProperty.OverrideMetadata(typeof(RepeatButton), new FrameworkPropertyMetadata(ClickMode.Press));
 }
示例#9
0
 static FIconRepeatButton()
 {
     //  DefaultStyleKeyProperty.OverrideMetadata(typeof(FIconRepeatButton), new FrameworkPropertyMetadata(typeof(FIconRepeatButton)));
     ClickModeProperty.OverrideMetadata(typeof(FIconRepeatButton), new FrameworkPropertyMetadata(System.Windows.Controls.ClickMode.Press));
 }
示例#10
0
 static DropDownButton()
 {
     ClickModeProperty.OverrideMetadata(typeof(DropDownButton), new FrameworkPropertyMetadata(ClickMode.Release));
 }
示例#11
0
 static DropDownMenuButton()
 {
     ClickModeProperty.OverrideMetadata(typeof(DropDownMenuButton), new FrameworkPropertyMetadata(ClickMode.Press));
 }
示例#12
0
 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)));
 }
示例#13
0
 /// <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));
 }