menu

WPF

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download
Class DayNamesGrid - WPF API Reference | Syncfusion

    Show / Hide Table of Contents

    Class DayNamesGrid

    Represents a grid that consists of columns that contain day name cell elements.

    Inheritance
    System.Object
    DayNamesGrid
    Implements
    System.IDisposable
    Namespace: Syncfusion.Windows.Shared
    Assembly: Syncfusion.Shared.Wpf.dll
    Syntax
    public class DayNamesGrid : FrameworkElement, IDisposable

    Constructors

    DayNamesGrid()

    Initializes a new instance of the DayNamesGrid class.

    Declaration
    public DayNamesGrid()

    Properties

    DayNameCells

    Gets or sets the collection of cells.

    Declaration
    public ArrayList DayNameCells { get; set; }
    Property Value
    Type Description
    System.Collections.ArrayList

    Type: System.Collections.ArrayList

    See Also
    System.Collections.ArrayList

    ParentCalendar

    Gets or sets the parent.

    Declaration
    public CalendarEdit ParentCalendar { get; set; }
    Property Value
    Type Description
    CalendarEdit

    Type: CalendarEdit

    See Also
    CalendarEdit

    VisualChildrenCount

    Gets the number of visual child elements within this element.

    Declaration
    protected override int VisualChildrenCount { get; }
    Property Value
    Type
    System.Int32

    Methods

    ArrangeOverride(Size)

    Positions child elements and determines a size for the control.

    Declaration
    protected override Size ArrangeOverride(Size finalSize)
    Parameters
    Type Name Description
    System.Windows.Size finalSize

    The final area within the parent that this element should use to arrange itself and its children.

    Returns
    Type Description
    System.Windows.Size

    The actual size used.

    Dispose()

    Declaration
    public void Dispose()

    FillGrid()

    Adds day and day name cells to the grid.

    Declaration
    protected void FillGrid()

    GenerateGrid()

    Fills the grid with column definitions and row definitions.

    Declaration
    protected void GenerateGrid()

    GetVisualChild(Int32)

    Returns a child at the specified index from a collection of child elements.

    Declaration
    protected override Visual GetVisualChild(int index)
    Parameters
    Type Name Description
    System.Int32 index

    The index of the visual object in the VisualCollection.

    Returns
    Type Description
    System.Windows.Media.Visual

    The child in the VisualCollection at the specified index value.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    Index must be 0 because only one child element is present.

    MeasureOverride(Size)

    Measures the size in layout required for child elements and determines a size for the control.

    Declaration
    protected override Size MeasureOverride(Size availableSize)
    Parameters
    Type Name Description
    System.Windows.Size availableSize

    The available size that this element can give to the child. Infinity can be specified as a value to indicate that the element will size to whatever content is available.

    Returns
    Type Description
    System.Windows.Size

    The size that this element determines it needs during layout, based on its calculations of children's sizes.

    OnVisualParentChanged(DependencyObject)

    Invoked when the parent is changed.

    Declaration
    protected override void OnVisualParentChanged(DependencyObject oldParent)
    Parameters
    Type Name Description
    System.Windows.DependencyObject oldParent

    The previous parent. Set to a null reference (Nothing in Visual Basic) if the DependencyObject did not have a previous parent.

    SetDayNames(DateTimeFormatInfo)

    Sets the cell's content.

    Declaration
    protected void SetDayNames(DateTimeFormatInfo format)
    Parameters
    Type Name Description
    System.Globalization.DateTimeFormatInfo format

    The format.

    UpdateParent()

    Updates the parent.

    Declaration
    protected void UpdateParent()

    UpdateStyles(Style)

    Updates styles on all cells.

    Declaration
    protected void UpdateStyles(Style style)
    Parameters
    Type Name Description
    System.Windows.Style style

    Style to be set.

    UpdateTemplateAndSelector(DataTemplate, DataTemplateSelector)

    Updates data template and data template selector on all cells.

    Declaration
    protected void UpdateTemplateAndSelector(DataTemplate template, DataTemplateSelector selector)
    Parameters
    Type Name Description
    System.Windows.DataTemplate template

    Data template to be set to the cell. If it is null the local value of data template would be cleared.

    System.Windows.Controls.DataTemplateSelector selector

    Data template selector to be set to the cell. If it is null the local value would be cleared.

    Implements

    System.IDisposable
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved