[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekNumber

WeekNumber Class

Represents a WeekNumber control for GrapeCity.Windows.InputMan.Primitives.WeekNumberInfo presentation. It represents the number of the week index of the year.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[TemplatePart(Name = "PART_Content", Type = typeof(FrameworkElement))]
public sealed class WeekNumber : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
<TemplatePart(Name:="PART_Content", Type:=GetType(FrameworkElement))>
Public NotInheritable Class WeekNumber
    Inherits Button
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Remarks
  The <xref href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekNumber" data-throw-if-not-resolved="false"></xref> offered a <xref href="GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekNumber.WeekNumberInfo" data-throw-if-not-resolved="false"></xref> property to deliver more information about the week index which it represents. It is set to the <xref href="System.Windows.Controls.ContentControl.Content" data-throw-if-not-resolved="false"></xref> property, and you could also customizing the data presentation via <xref href="System.Windows.Controls.ContentControl.ContentTemplate" data-throw-if-not-resolved="false"></xref>.

Supported VisualState list:

VisualStateGroup Name

VisualState Name

Description

CommonStates

Normal

Represents the visual appearance when control is in normal state.

CommonStates

Disabled

Represents the visual appearance when IsEnabled is false.

CommonStates

Pressed

Represents the visual appearance when IsPressed is true.

CommonStates

MouseOver

Represents the visual appearance when IsMouseOver is true.

FocusStates

Focused

Represents the visual appearance when IsKeyboardFocused is true.

FocusStates

Unfocused

Represents the visual appearance when IsKeyboardFocused is false.

ValidationStates

Valid

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns false.

ValidationStates

InvalidFocused

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is true.

ValidationStates

InvalidUnfocused

Represents the visual appearance when System.Windows.Controls.Validation.GetHasError(System.Windows.DependencyObject) returns true and IsKeyboardFocused is false.

Constructors

Name Description
WeekNumber()

Initializes a new instance of the WeekNumber class.

Fields

Name Description
WeekNumberInfoProperty

Identifies the WeekNumberInfo dependency property.

Properties

Name Description
WeekNumberInfo

Gets the GrapeCity.Windows.InputMan.Primitives.WeekNumberInfo which contains the advanced information of the WeekNumber represents. This is a dependency property.

Methods

Name Description
OnApplyTemplate()

When overridden in a derived class, is invoked whenever application code or internal processes call ApplyTemplate().