SPREAD for WPF 4.0J - GcSpreadGrid
CalendarButton クラス
メンバ 

GrapeCity.Windows.SpreadGrid.Editors 名前空間 : CalendarButton クラス
CalendarInfo を表現するための CalendarButton コントロールを表します。これは、GcDropDownCalendar.DisplayMode プロパティが CalendarMode.Year の場合は月を表し、GcDropDownCalendar.DisplayMode プロパティが CalendarMode.Decade の場合は年を表します。
オブジェクト モデル
CalendarButton クラスCalendarInfo クラス
シンタックス
'宣言
 
Public NotInheritable Class CalendarButton 
   Inherits System.Windows.Controls.Button
public sealed class CalendarButton : System.Windows.Controls.Button 
解説
CalendarButton には、スタイルによって視覚的表現をカスタマイズするためのプロパティが用意されています。

IsInactive は、CalendarButton が隣接ステータスにあるかどうかを示します。HasSelectedDays は、CalendarButton が表す日付に選択されている日が含まれているかどうかを示します。

CalendarButton には、自身が表す日付に関するさらに詳細な情報を提供するために、CalendarInfo プロパティも用意されています。これは System.Windows.Controls.ContentControl.Content プロパティに設定されるので、System.Windows.Controls.ContentControl.ContentTemplate によってデータ表現をカスタマイズすることもできます。

サポートされている System.Windows.VisualState の一覧:

VisualStateGroup 名

VisualState 名

説明

CommonStates

Normal

コントロールが通常状態のときの外観を表します。

CommonStates

Disabled

System.Windows.UIElement.IsEnabled が false のときの外観を表します。

CommonStates

Pressed

System.Windows.Controls.Primitives.ButtonBase.IsPressed が true のときの外観を表します。

CommonStates

MouseOver

System.Windows.UIElement.IsMouseOver が true のときの外観を表します。

SelectionStates

Selected

IsHighlighted または HasSelectedDays が true のときの外観を表します。
Selected 状態が System.Windows.Controls.ControlTemplate で定義されていない場合は、Unselected 状態が使用されます。

SelectionStates

Unselected

IsHighlighted と HasSelectedDays が両方とも false のときの外観を表します。

ActiveStates

Active

IsInactive が false のときの外観を表します。
Active 状態が System.Windows.Controls.ControlTemplate で定義されていない場合は、Inactive 状態が使用されます。

ActiveStates

Inactive

IsInactive が true のときの外観を表します。

CalendarButtonFocusStates

CalendarButtonFocused

System.Windows.UIElement.IsKeyboardFocused が true のときの外観を表します。
CalendarButtonFocused 状態が System.Windows.Controls.ControlTemplate で定義されていない場合は、CalendarButtonUnfocused 状態が使用されます。

CalendarButtonFocusStates

CalendarButtonUnfocused

System.Windows.UIElement.IsKeyboardFocused が false のときの外観を表します。

FocusStates

Focused

System.Windows.UIElement.IsKeyboardFocused が true のときの外観を表します。

FocusStates

Unfocused

System.Windows.UIElement.IsKeyboardFocused が false のときの外観を表します。

ValidationStates

Valid

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) が false を返すときの外観を表します。

ValidationStates

InvalidFocused

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) が true を返し、なおかつ System.Windows.UIElement.IsKeyboardFocused が true のときの外観を表します。

ValidationStates

InvalidUnfocused

System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) が true を返し、なおかつ System.Windows.UIElement.IsKeyboardFocused が false のときの外観を表します。

継承階層

System.Object
   System.Windows.Threading.DispatcherObject
      System.Windows.DependencyObject
         System.Windows.Media.Visual
            System.Windows.UIElement
               System.Windows.FrameworkElement
                  System.Windows.Controls.Control
                     System.Windows.Controls.ContentControl
                        System.Windows.Controls.Primitives.ButtonBase
                           System.Windows.Controls.Button
                              GrapeCity.Windows.SpreadGrid.Editors.CalendarButton

参照

参照

CalendarButton メンバ
GrapeCity.Windows.SpreadGrid.Editors 名前空間