C# Класс PocketCampus.IsAcademia.Controls.DayDisplay

Displays one or multiple days.
Наследование: System.Windows.Controls.Panel
Показать файл Открыть проект

Открытые свойства

Свойство Тип Описание
ContainerStyleProperty System.Windows.DependencyProperty
DayProperty System.Windows.DependencyProperty
DaysProperty System.Windows.DependencyProperty
EmptyContainerStyleProperty System.Windows.DependencyProperty
HourIncrementProperty System.Windows.DependencyProperty
PeriodTemplateProperty System.Windows.DependencyProperty

Открытые методы

Метод Описание
DayDisplay ( ) : System

Creates a new DayDisplay.

Защищенные методы

Метод Описание
ArrangeOverride ( Size finalSize ) : Size

Arranges the elements inside the control.

MeasureOverride ( Size availableSize ) : Size

Creates all required elements and measures them.

Приватные методы

Метод Описание
AddPeriodsToCanvas ( System.Windows.Controls.Canvas canvas, Size size, StudyDay day ) : void

Adds the periods of the specified day to the specified canvas with the specified size.

AddPlaceholdersToCanvas ( System.Windows.Controls.Canvas canvas, Size size ) : void

Adds placeholders to the specified canvas with the specified size.

CreateHoursGrid ( ) : Grid

Creates a vertical grid with hours.

GetHourBoundaries ( StudyDay days ) : int>.Tuple

Gets the hour boundaries for the specified days' periods.

HourCeiling ( System.TimeSpan time ) : int

Gets the hour ceiling for the specified time. The result is between 0 and 24 inclusive, and the method assumes the date is not 0:00.

Описание методов

ArrangeOverride() защищенный Метод

Arranges the elements inside the control.
protected ArrangeOverride ( Size finalSize ) : Size
finalSize System.Windows.Size
Результат System.Windows.Size

DayDisplay() публичный Метод

Creates a new DayDisplay.
public DayDisplay ( ) : System
Результат System

MeasureOverride() защищенный Метод

Creates all required elements and measures them.
protected MeasureOverride ( Size availableSize ) : Size
availableSize System.Windows.Size
Результат System.Windows.Size

Описание свойств

ContainerStyleProperty публичное статическое свойство

public static DependencyProperty,System.Windows ContainerStyleProperty
Результат System.Windows.DependencyProperty

DayProperty публичное статическое свойство

public static DependencyProperty,System.Windows DayProperty
Результат System.Windows.DependencyProperty

DaysProperty публичное статическое свойство

public static DependencyProperty,System.Windows DaysProperty
Результат System.Windows.DependencyProperty

EmptyContainerStyleProperty публичное статическое свойство

public static DependencyProperty,System.Windows EmptyContainerStyleProperty
Результат System.Windows.DependencyProperty

HourIncrementProperty публичное статическое свойство

public static DependencyProperty,System.Windows HourIncrementProperty
Результат System.Windows.DependencyProperty

PeriodTemplateProperty публичное статическое свойство

public static DependencyProperty,System.Windows PeriodTemplateProperty
Результат System.Windows.DependencyProperty