Spread WPF 18
GrapeCity.Wpf.SpreadSheet.CellType.Editors Namespace / WeekNumber Class
Members


In This Topic
    WeekNumber Class
    In This Topic
    Represents a WeekNumber control for GrapeCity.Windows.InputMan.Primitives.WeekNumberInfo presentation. It represents the number of the week index of the year.
    Object Model
    WeekNumber Class
    Syntax
    'Declaration
     
    <DesignTimeVisibleAttribute(False)>
    <TemplatePartAttribute(Name="PART_Content", Type=System.Windows.FrameworkElement)>
    <DefaultEventAttribute("Click")>
    <LocalizabilityAttribute(LocalizationCategory.Button)>
    <DefaultPropertyAttribute("Content")>
    <ContentPropertyAttribute("Content")>
    <StyleTypedPropertyAttribute(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)>
    <XmlLangPropertyAttribute("Language")>
    <UsableDuringInitializationAttribute(True)>
    <RuntimeNamePropertyAttribute("Name")>
    <UidPropertyAttribute("Uid")>
    <TypeDescriptionProviderAttribute(MS.Internal.ComponentModel.DependencyObjectProvider)>
    <NameScopePropertyAttribute("NameScope", System.Windows.NameScope)>
    Public NotInheritable Class WeekNumber 
       Inherits System.Windows.Controls.Button
    'Usage
     
    Dim instance As WeekNumber
    [DesignTimeVisible(false)]
    [TemplatePart(Name="PART_Content", Type=System.Windows.FrameworkElement)]
    [DefaultEvent("Click")]
    [Localizability(LocalizationCategory.Button)]
    [DefaultProperty("Content")]
    [ContentProperty("Content")]
    [StyleTypedProperty(Property="FocusVisualStyle", StyleTargetType=System.Windows.Controls.Control)]
    [XmlLangProperty("Language")]
    [UsableDuringInitialization(true)]
    [RuntimeNameProperty("Name")]
    [UidProperty("Uid")]
    [TypeDescriptionProvider(MS.Internal.ComponentModel.DependencyObjectProvider)]
    [NameScopeProperty("NameScope", System.Windows.NameScope)]
    public sealed class WeekNumber : System.Windows.Controls.Button 
    Remarks
    The WeekNumber offered a WeekNumberInfo property to deliver more information about the week index which it represents. It is set to the System.Windows.Controls.ContentControl.Content property, and you could also customizing the data presentation via System.Windows.Controls.ContentControl.ContentTemplate.

    Supported System.Windows.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 System.Windows.UIElement.IsEnabled is false.

    CommonStates

    Pressed

    Represents the visual appearance when System.Windows.Controls.Primitives.ButtonBase.IsPressed is true.

    CommonStates

    MouseOver

    Represents the visual appearance when System.Windows.UIElement.IsMouseOver is true.

    FocusStates

    Focused

    Represents the visual appearance when System.Windows.UIElement.IsKeyboardFocused is true.

    FocusStates

    Unfocused

    Represents the visual appearance when System.Windows.UIElement.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 System.Windows.UIElement.IsKeyboardFocused is true.

    ValidationStates

    InvalidUnfocused

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

    Inheritance Hierarchy

    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.Wpf.SpreadSheet.CellType.Editors.WeekNumber

    See Also