[]
        
(Showing Draft Content)

GrapeCity.Wpf.SpreadSheet.CellType.Editors.WeekTitle

WeekTitle Class

Represents a WeekTitle control for GrapeCity.Windows.InputMan.Primitives.WeekTitleInfo presentation. It represents the day of week.

Namespace: GrapeCity.Wpf.SpreadSheet.CellType.Editors
Assembly: GrapeCity.Wpf.SpreadSheet.CellType.dll
Syntax
[TemplatePart(Name = "PART_Content", Type = typeof(FrameworkElement))]
public sealed class WeekTitle : Button, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
<TemplatePart(Name:="PART_Content", Type:=GetType(FrameworkElement))>
Public NotInheritable Class WeekTitle
    Inherits Button
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild, ICommandSource
Remarks

The WeekTitle offered a WeekTitleInfo property to deliver more information about the day of week which it represents. It is set to the Content property, and you could also customizing the data presentation via ContentTemplate.

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
WeekTitle()

Initializes a new instance of the WeekTitle class.

Fields

Name Description
WeekTitleInfoProperty

Identifies the WeekTitleInfo dependency property.

Properties

Name Description
WeekTitleInfo

Gets the GrapeCity.Windows.InputMan.Primitives.WeekTitleInfo which contains the advanced information of the WeekTitle 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().