Class CalendarEdit
Represents a control that enables the user to select a date using a visual calendar display that depends on the culture settings.
The control supports Windows themes ( Default, Silver, Metallic, Zune, Royale and Aero) and skins (Office2003, Office2007Blue, Office2007Black, Office2007Silver and Blend ). Also the user can define own skin by setting necessary properties of the class.
Inheritance
Implements
Namespace: Syncfusion.Windows.Shared
Assembly: Syncfusion.Shared.Wpf.dll
Syntax
[SkinType(SkinVisualStyle = Skin.Office2010Silver, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2010SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Black, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2007BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Silver, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2007SilverStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Blue, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2010BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2010Black, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2010BlackStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Default, Type = typeof(CalendarEdit), XamlResource = "/Syncfusion.Shared.Wpf;component/Controls/Calendar/Themes/Generic.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2003, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2003Style.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyBlue, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/ShinyBlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.ShinyRed, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/ShinyRedStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.SyncOrange, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/SyncOrangeStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Blend, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/BlendStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Transparent, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/TransparentStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Office2007Blue, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/Office2007BlueStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.Metro, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/MetroStyle.xaml")]
[SkinType(SkinVisualStyle = Skin.VS2010, Type = typeof(CalendarEdit), XamlResource = "pack://application:,,,/Syncfusion.Shared.Wpf.Classic;component/Controls/Calendar/Themes/VS2010Style.xaml")]
public class CalendarEdit : Control, IDisposable
Examples
The following example shows how to create a CalendarEdit control in XAML.
<Window x:Class="CalendarEditSample.Window1"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:Syncfusion.Windows.Shared;assembly=Syncfusion.Tools.WPF"
Title="Window1" Height="300" Width="300">
<Grid>
<local:CalendarEdit
Name="calendarEdit"
Date="11/07/1985"
IsMonthNameAbbreviated="True"
IsDayNamesAbbreviated="False"
SelectionRangeMode="WholeColumn"
HeaderBackground="YellowGreen"
TodayRowIsVisible="True"
ChangeModeTime="700"
FrameMovingTime="700"
CalendarStyle="Vista"/>
</Grid>
</Window>
The following example shows how to create a CalendarEdit control in C#.
using System.Windows;
using System.Windows.Controls;
using Syncfusion.Windows.Tools.Controls;
using Syncfusion.Windows.Tools;
namespace CalendarEditSample
{
public partial class Window1 : Window
{
public Window1()
{
InitializeComponent();
//Create a new instance of the CalendarEdit
CalendarEdit calendarEdit = new CalendarEdit();
// Add calendarEdit to grid
this.grid1.Children.Add( calendarEdit );
//Set the date of the calendar
calendarEdit.Date = new DateTime(1985, 7, 11);
//Month names will be displayed fully
calendarEdit.IsMonthNameAbbreviated = false;
//Day names will be displayed fully
calendarEdit.IsDayNamesAbbreviated = false;
//Ability to select the whole column with dates that does not belong to the current month
calendarEdit.SelectionRangeMode = SelectionRangeMode.WholeColumn;
//Calendar change mode animation time
calendarEdit.ChangeModeTime = 700;
//Month changing animation time
calendarEdit.FrameMovingTime = 700;
//Today bar will be displayed at the bottom of the calendar
calendarEdit.TodayRowIsVisible = true;
//Background for the header of the calendar
calendarEdit.HeaderBackground = new SolidColorBrush( Colors.YellowGreen );
//Vista style calendar
calendarEdit.CalendarStyle = CalendarStyle.Vista;
}
}
}
Constructors
CalendarEdit()
Initializes a new instance of the CalendarEdit class.
Declaration
public CalendarEdit()
Fields
AllowMultiplySelectionProperty
Identifies the AllowMultiplySelection dependency property.
Declaration
public static readonly DependencyProperty AllowMultiplySelectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AllowSelectionProperty
Identifies the AllowSelection dependency property.
Declaration
public static readonly DependencyProperty AllowSelectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AllowYearEditingProperty
Identifies the AllowYearEditing dependency property.
Declaration
public static readonly DependencyProperty AllowYearEditingProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackoutDatesBackgroundProperty
Declaration
public static readonly DependencyProperty BlackoutDatesBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackoutDatesBorderBrushProperty
Declaration
public static readonly DependencyProperty BlackoutDatesBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackoutDatesCrossBrushProperty
Declaration
public static readonly DependencyProperty BlackoutDatesCrossBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackoutDatesForegroundProperty
Identifies the SelectionForeground dependency property.
Declaration
public static readonly DependencyProperty BlackoutDatesForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
BlackoutDatesProperty
Declaration
public static readonly DependencyProperty BlackoutDatesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CalendarProperty
Identifies the Calendar dependency property.
Declaration
public static readonly DependencyProperty CalendarProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CalendarStyleProperty
Identifies the CalendarStyle dependency property.
Declaration
public static readonly DependencyProperty CalendarStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ChangeModeTimeProperty
Identifies the ChangeModeTime dependency property.
Declaration
public static readonly DependencyProperty ChangeModeTimeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
clickedweeknumber
Selected Week Number.
Declaration
public static string clickedweeknumber
Field Value
Type |
---|
System.String |
CultureProperty
Identifies the Culture dependency property.
Declaration
public static readonly DependencyProperty CultureProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentDayGridProperty
Identifies the CurrentDayGrid dependency property.
Declaration
protected static readonly DependencyProperty CurrentDayGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentMonthGridProperty
Identifies the CurrentMonthGrid dependency property.
Declaration
protected static readonly DependencyProperty CurrentMonthGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentWeekNumbersGridProperty
Identifies the CurrentWeekNumbersGrid dependency property.
Declaration
protected static readonly DependencyProperty CurrentWeekNumbersGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentYearGridProperty
Identifies the CurrentYearGrid dependency property.
Declaration
protected static readonly DependencyProperty CurrentYearGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentYearRangeGridProperty
Identifies the CurrentYearRangeGrid dependency property.
Declaration
protected static readonly DependencyProperty CurrentYearRangeGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DateDataTemplatesProperty
Identifies the DateDataTemplates dependency property.
Declaration
public static readonly DependencyProperty DateDataTemplatesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DateProperty
Identifies the Date dependency property.
Declaration
public static readonly DependencyProperty DateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DateStylesProperty
Identifies the DateStyles dependency property.
Declaration
public static readonly DependencyProperty DateStylesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayCellsDataTemplateProperty
Identifies the DayCellsDataTemplate dependency property.
Declaration
public static readonly DependencyProperty DayCellsDataTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayCellsDataTemplateSelectorProperty
Identifies the DayCellsDataTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty DayCellsDataTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayCellsStyleProperty
Identifies the DayCellsStyle dependency property.
Declaration
public static readonly DependencyProperty DayCellsStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayNameCellsDataTemplateProperty
Identifies the DayNameCellsDataTemplate dependency property.
Declaration
public static readonly DependencyProperty DayNameCellsDataTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayNameCellsDataTemplateSelectorProperty
Identifies the DayNameCellsDataTemplateSelector dependency property.
Declaration
public static readonly DependencyProperty DayNameCellsDataTemplateSelectorProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayNameCellsStyleProperty
Identifies the DayNameCellsStyle dependency property.
Declaration
public static readonly DependencyProperty DayNameCellsStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DayNamesGridProperty
Identifies the DayNamesGrid dependency property.
Declaration
protected static readonly DependencyProperty DayNamesGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DisableDateSelectionProperty
Identifies the DisableDateSelection dependency property.
Declaration
public static readonly DependencyProperty DisableDateSelectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
endYear
Ending year
Declaration
public static int endYear
Field Value
Type |
---|
System.Int32 |
FollowingDayGridProperty
Identifies the FollowingDayGrid dependency property.
Declaration
protected static readonly DependencyProperty FollowingDayGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FollowingMonthGridProperty
Identifies the FollowingMonthGrid dependency property.
Declaration
protected static readonly DependencyProperty FollowingMonthGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FollowingWeekNumbersGridProperty
Identifies the FollowingWeekNumbersGrid dependency property.
Declaration
protected static readonly DependencyProperty FollowingWeekNumbersGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FollowingYearGridProperty
Identifies the FollowingYearGrid dependency property.
Declaration
protected static readonly DependencyProperty FollowingYearGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FollowingYearRangeGridProperty
Identifies the FollowingYearRangeGrid dependency property.
Declaration
protected static readonly DependencyProperty FollowingYearRangeGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
FrameMovingTimeProperty
Identifies the FrameMovingTime dependency property.
Declaration
public static readonly DependencyProperty FrameMovingTimeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderBackgroundProperty
Identifies the HeaderBackground dependency property.
Declaration
public static readonly DependencyProperty HeaderBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
HeaderForegroundProperty
Identifies the HeaderForeground dependency property.
Declaration
public static readonly DependencyProperty HeaderForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Invalidateflag
Declaration
public bool Invalidateflag
Field Value
Type |
---|
System.Boolean |
InValidDateBackgroundProperty
Declaration
[Obsolete("InValidDateBackground property is deprecated, use BlackoutDatesBackground instead")]
public static readonly DependencyProperty InValidDateBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InValidDateBorderBrushProperty
Declaration
[Obsolete("InValidDateBorderBrush property is deprecated, use BlackoutDatesBorderBrush instead")]
public static readonly DependencyProperty InValidDateBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InValidDateCrossBackgroundProperty
Declaration
[Obsolete("InValidDateCrossBackground property is deprecated, use BlackoutDatesCrossBrush instead")]
public static readonly DependencyProperty InValidDateCrossBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
InValidDateForeGroundProperty
Identifies the SelectionForeground dependency property.
Declaration
[Obsolete("InValidDateForeGround property is deprecated, use BlackoutDatesForeground instead")]
public static readonly DependencyProperty InValidDateForeGroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsAllowYearSelectionProperty
Identifies the IsAllowYearSelection dependency property.
Declaration
[Obsolete("IsAllowYearSelection property is deprecated, use AllowYearEditing instead")]
public static readonly DependencyProperty IsAllowYearSelectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsDayNamesAbbreviatedProperty
Identifies the IsDayNamesAbbreviated dependency property.
Declaration
[Obsolete("IsDayNamesAbbreviated property is deprecated, use ShowAbbreviatedDayNames instead")]
public static readonly DependencyProperty IsDayNamesAbbreviatedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsMonthNameAbbreviatedProperty
Identifies the IsMonthNameAbbreviated dependency property.
Declaration
[Obsolete("IsMonthNameAbbreviated property is deprecated, use ShowAbbreviatedMonthNames instead")]
public static readonly DependencyProperty IsMonthNameAbbreviatedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsShowWeekNumbersGridProperty
Identifies the IsShowWeekNumbersGrid dependency property.
Declaration
[Obsolete("IsShowWeekNumbersGrid property is deprecated")]
public static readonly DependencyProperty IsShowWeekNumbersGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsShowWeekNumbersProperty
Identifies the IsShowWeekNumbers dependency property.
Declaration
[Obsolete("IsShowWeekNumbers property is deprecated, use ShowWeekNumbers instead")]
public static readonly DependencyProperty IsShowWeekNumbersProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
IsTodayButtonClickedProperty
Identifies the IsTodayButtonClicked dependency property.
Declaration
public static readonly DependencyProperty IsTodayButtonClickedProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MaxDateProperty
Identifies the MaxDate dependency property.
Declaration
public static readonly DependencyProperty MaxDateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MinDateProperty
Identifies the MinDate dependency property.
Declaration
public static readonly DependencyProperty MinDateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MinMaxHiddenProperty
Identifies the MinMaxHidden dependency property.
Declaration
public static readonly DependencyProperty MinMaxHiddenProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MonthChangeDirectionProperty
Identifies the MonthChangeDirection dependency property.
Declaration
public static readonly DependencyProperty MonthChangeDirectionProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MouseOverBackgroundProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty MouseOverBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MouseOverBorderBrushProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty MouseOverBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
MouseOverForegroundProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty MouseOverForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NextCommand
Command that is responsible for the next month switching.
Declaration
public static readonly RoutedUICommand NextCommand
Field Value
Type |
---|
System.Windows.Input.RoutedUICommand |
NextScrollButtonTemplateProperty
Identifies the NextScrollButtonTemplateProperty dependency property.
Declaration
public static readonly DependencyProperty NextScrollButtonTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
NotCurrentMonthForegroundProperty
Declaration
public static readonly DependencyProperty NotCurrentMonthForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
PrevCommand
Command that is responsible for the previous month switching.
Declaration
public static readonly RoutedUICommand PrevCommand
Field Value
Type |
---|
System.Windows.Input.RoutedUICommand |
PreviousScrollButtonTemplateProperty
Identifies the PreviousScrollButtonTemplateProperty dependency property.
Declaration
public static readonly DependencyProperty PreviousScrollButtonTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
primaryDate
Primary Date
Declaration
public static int primaryDate
Field Value
Type |
---|
System.Int32 |
ScrollToDateEnabledProperty
Identifies the ScrollToDateEnabled dependency property.
Declaration
public static readonly DependencyProperty ScrollToDateEnabledProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedDatesProperty
Identifies the SelectedDates dependency property.
Declaration
public static readonly DependencyProperty SelectedDatesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedDayCellBackgroundProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedDayCellBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedDayCellBorderBrushProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedDayCellBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedDayCellForegroundProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty SelectedDayCellForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectedDayCellHoverBackgroundProperty
Declaration
public static readonly DependencyProperty SelectedDayCellHoverBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectionBorderBrushProperty
Identifies the SelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty SelectionBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectionBorderCornerRadiusProperty
Identifies the SelectionBorderCornerRadius dependency property.
Declaration
public static readonly DependencyProperty SelectionBorderCornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectionForegroundProperty
Identifies the SelectionForeground dependency property.
Declaration
public static readonly DependencyProperty SelectionForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SelectionRangeModeProperty
Identifies the SelectionRangeMode dependency property.
Declaration
public static readonly DependencyProperty SelectionRangeModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowAbbreviatedDayNamesProperty
Identifies the ShowAbbreviatedDayNames dependency property.
Declaration
public static readonly DependencyProperty ShowAbbreviatedDayNamesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowAbbreviatedMonthNamesProperty
Identifies the ShowAbbreviatedMonthNames dependency property.
Declaration
public static readonly DependencyProperty ShowAbbreviatedMonthNamesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowNextMonthDaysProperty
Identifies the ShowNextMonthDays dependency property.
Declaration
public static readonly DependencyProperty ShowNextMonthDaysProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowPreviousMonthDaysProperty
Identifies the ShowPreviousMonthDays dependency property.
Declaration
public static readonly DependencyProperty ShowPreviousMonthDaysProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ShowWeekNumbersProperty
Identifies the ShowWeekNumbers dependency property.
Declaration
public static readonly DependencyProperty ShowWeekNumbersProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SpecialDatesProperty
Declaration
public static readonly DependencyProperty SpecialDatesProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
startYear
Starting year
Declaration
public static int startYear
Field Value
Type |
---|
System.Int32 |
TodayCellBackgroundProperty
Declaration
public static readonly DependencyProperty TodayCellBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayCellBorderBrushProperty
Declaration
public static readonly DependencyProperty TodayCellBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayCellForegroundProperty
Declaration
public static readonly DependencyProperty TodayCellForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayCellSelectedBackgroundProperty
Declaration
public static readonly DependencyProperty TodayCellSelectedBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayCellSelectedBorderBrushProperty
Declaration
public static readonly DependencyProperty TodayCellSelectedBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayDateProperty
Identifies the TodayDate dependency property.
Declaration
public static readonly DependencyProperty TodayDateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
TodayDatePropertyKey
Identifies the TodayDate dependency property key.
Declaration
protected static readonly DependencyPropertyKey TodayDatePropertyKey
Field Value
Type |
---|
System.Windows.DependencyPropertyKey |
TodayRowIsVisibleProperty
Identifies the TodayRowIsVisible dependency property.
Declaration
public static readonly DependencyProperty TodayRowIsVisibleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpCommand
Command that is responsible for the calendar visual mode changing.
Declaration
public static readonly RoutedUICommand UpCommand
Field Value
Type |
---|
System.Windows.Input.RoutedUICommand |
VisibleDataProperty
Identifies the VisibleData dependency property.
Declaration
protected static readonly DependencyProperty VisibleDataProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
VisualModeProperty
Declaration
protected static readonly DependencyProperty VisualModeProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberBackgroundProperty
Identifies the WeekNumberBackground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberBorderBrushProperty
Identifies the WeekNumberBorderBrush dependency property.
Declaration
public static readonly DependencyProperty WeekNumberBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberBorderThicknessProperty
Identifies the WeekNumberBorderThickness dependency property.
Declaration
public static readonly DependencyProperty WeekNumberBorderThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberCornerRadiusProperty
Identifies the WeekNumberCornerRadius dependency property.
Declaration
public static readonly DependencyProperty WeekNumberCornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberForegroundProperty
Identifies the WeekNumberForeground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberHoverBackgroundProperty
Identifies the WeekNumberHoverBackground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberHoverBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberHoverBorderBrushProperty
Identifies the WeekNumberHoverBorderBrush dependency property.
Declaration
public static readonly DependencyProperty WeekNumberHoverBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberHoverForegroundProperty
Identifies the WeekNumberHoverForeground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberHoverForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberSelectionBackgroundProperty
Identifies the WeekNumberSelectionBackground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberSelectionBackgroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberSelectionBorderBrushProperty
Identifies the WeekNumberSelectionBorderBrush dependency property.
Declaration
public static readonly DependencyProperty WeekNumberSelectionBorderBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberSelectionBorderCornerRadiusProperty
Identifies the WeekNumberSelectionBorderCornerRadius dependency property.
Declaration
public static readonly DependencyProperty WeekNumberSelectionBorderCornerRadiusProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberSelectionBorderThicknessProperty
Identifies the WeekNumberSelectionBorderThickness dependency property.
Declaration
public static readonly DependencyProperty WeekNumberSelectionBorderThicknessProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumberSelectionForegroundProperty
Identifies the WeekNumberSelectionForeground dependency property.
Declaration
public static readonly DependencyProperty WeekNumberSelectionForegroundProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
WeekNumbersGridProperty
Identifies the WeekNumbersGrid dependency property.
Declaration
protected static readonly DependencyProperty WeekNumbersGridProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AllowMultiplySelection
Gets or sets a value indicating whether multiply date selection is allowed. This is a dependency property.
Declaration
public bool AllowMultiplySelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
AllowSelection
Gets or sets a value indicating whether date selection is allowed. This is a dependency property.
Declaration
public bool AllowSelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
AllowYearEditing
Gets or sets a value indicating whether year editing should be enabled. This is a dependency property.
Declaration
[Obsolete("This property is deprecated, you can navigate to year view and choose required year")]
public bool AllowYearEditing { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
BlackoutDates
Declaration
public BlackDatesCollection BlackoutDates { get; set; }
Property Value
Type |
---|
BlackDatesCollection |
BlackoutDatesBackground
Gets or sets of BlackoutDatesCrossBrush
Declaration
public Brush BlackoutDatesBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
BlackoutDatesBorderBrush
Gets or sets of BlackoutDatesBorderBrush
Declaration
public Brush BlackoutDatesBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
BlackoutDatesCrossBrush
Gets or sets of BlackoutDatesCrossBrush
Declaration
public Brush BlackoutDatesCrossBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
BlackoutDatesForeground
Gets or sets of BlackoutDatesForeGround
Declaration
public Brush BlackoutDatesForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
Calendar
Gets or sets the calendar object. This is a dependency property.
Declaration
public Calendar Calendar { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.Calendar | Type: Calendar |
See Also
CalendarStyle
Gets or sets the calendar style. This is a dependency property.
Declaration
[Obsolete("This property is deprecated, the default CalendarStyle is changed to Vista style")]
public CalendarStyle CalendarStyle { get; set; }
Property Value
Type | Description |
---|---|
CalendarStyle | Type: CalendarStyle Default value is CalendarStyle.Standard. |
See Also
ChangeModeTime
Gets or sets a calendar mode changing animation time. This is a dependency property.
Declaration
public int ChangeModeTime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Type: System.Int32 Default value is 300. |
See Also
Culture
Gets or sets the culture of the control. This is a dependency property.
Declaration
public CultureInfo Culture { get; set; }
Property Value
Type | Description |
---|---|
System.Globalization.CultureInfo | Type: System.Globalization.CultureInfo |
Examples
//Create a new instance of the CalendarEdit
CalendarEdit calendarEdit = new CalendarEdit();
//Initialize the calendar in the German culture
calendarEdit.Culture = new System.Globalization.CultureInfo("de-DE");
Result:
Calendar will be displayed in the German culture.
See Also
CurrentDayGrid
Gets or sets a day grid for the current month. This is a dependency property.
Declaration
protected DayGrid CurrentDayGrid { get; set; }
Property Value
Type | Description |
---|---|
DayGrid | Type: DayGrid |
See Also
CurrentMonthGrid
Gets or sets the month grid. This is a dependency property.
Declaration
protected MonthGrid CurrentMonthGrid { get; set; }
Property Value
Type | Description |
---|---|
MonthGrid | Type: MonthGrid |
See Also
CurrentWeekNumbersGrid
Gets or sets current year week number grid. This is a dependency property.
Declaration
protected WeekNumberGridPanel CurrentWeekNumbersGrid { get; set; }
Property Value
Type | Description |
---|---|
WeekNumberGridPanel | Type: WeekNumberGridPanel |
See Also
CurrentYearGrid
Gets or sets the year grid. This is a dependency property.
Declaration
protected YearGrid CurrentYearGrid { get; set; }
Property Value
Type | Description |
---|---|
YearGrid | Type: YearGrid |
See Also
CurrentYearRangeGrid
Gets or sets the year range grid. This is a dependency property.
Declaration
protected YearRangeGrid CurrentYearRangeGrid { get; set; }
Property Value
Type | Description |
---|---|
YearRangeGrid | Type: YearRangeGrid |
See Also
Date
Gets or sets the date. This is a dependency property.
Declaration
public DateTime Date { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | Type: System.DateTime Default value is DateTime.Now.Date. |
See Also
DateDataTemplates
Gets or sets the day cells content template according to its date. This is a dependency property.
Declaration
public DataTemplatesDictionary DateDataTemplates { get; set; }
Property Value
Type | Description |
---|---|
DataTemplatesDictionary | Type: DataTemplatesDictionary |
See Also
DateStyles
Gets or sets the day cells style according to its date. This is a dependency property.
Declaration
public StylesDictionary DateStyles { get; set; }
Property Value
Type | Description |
---|---|
StylesDictionary | Type: StylesDictionary |
See Also
DayCellsDataTemplate
Gets or sets the day cells content template. This is a dependency property.
Declaration
public DataTemplate DayCellsDataTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | Type: System.Windows.DataTemplate Default value is null. |
See Also
DayCellsDataTemplateSelector
Gets or sets the day cells data template selector. This is a dependency property.
Declaration
public DataTemplateSelector DayCellsDataTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataTemplateSelector | Type: System.Windows.Controls.DataTemplateSelector Default value is null. |
See Also
DayCellsStyle
Gets or sets the day cells style. This is a dependency property.
Declaration
public Style DayCellsStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | Type: System.Windows.Style Default value is null. |
See Also
DayNameCellsDataTemplate
Gets or sets the day name cells content template. This is a dependency property.
Declaration
public DataTemplate DayNameCellsDataTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.DataTemplate | Type: System.Windows.DataTemplate Default value is null. |
See Also
DayNameCellsDataTemplateSelector
Gets or sets the day name cells data template selector. This is a dependency property.
Declaration
public DataTemplateSelector DayNameCellsDataTemplateSelector { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.DataTemplateSelector | Type: System.Windows.Controls.DataTemplateSelector Default value is null. |
See Also
DayNameCellsStyle
Gets or sets the day name cells style. This is a dependency property.
Declaration
public Style DayNameCellsStyle { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Style | Type: System.Windows.Style Default value is null. |
See Also
DayNamesGrid
Gets or sets the day names grid. This is a dependency property.
Declaration
protected DayNamesGrid DayNamesGrid { get; set; }
Property Value
Type | Description |
---|---|
DayNamesGrid | Type: DayNamesGrid |
See Also
DisableDateSelection
Gets or sets the value of DisableDateSelection property. This is a dependency property.
Declaration
public bool DisableDateSelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: DisableDateSelection Default value of DisableDateSelection is false. |
See Also
FollowingDayGrid
Gets or sets a day grid for the next changed month. This is a dependency property.
Declaration
protected DayGrid FollowingDayGrid { get; set; }
Property Value
Type | Description |
---|---|
DayGrid | Type: DayGrid |
See Also
FollowingMonthGrid
Gets or sets the following month grid. This is a dependency property.
Declaration
protected MonthGrid FollowingMonthGrid { get; set; }
Property Value
Type | Description |
---|---|
MonthGrid | Type: MonthGrid |
See Also
FollowingWeekNumbersGrid
Gets or sets following year week number grid. This is a dependency property.
Declaration
protected WeekNumberGridPanel FollowingWeekNumbersGrid { get; set; }
Property Value
Type | Description |
---|---|
WeekNumberGridPanel | Type: WeekNumberGridPanel |
See Also
FollowingYearGrid
Gets or sets the following year grid. This is a dependency property.
Declaration
protected YearGrid FollowingYearGrid { get; set; }
Property Value
Type | Description |
---|---|
YearGrid | Type: YearGrid |
See Also
FollowingYearRangeGrid
Gets or sets the following year range grid. This is a dependency property.
Declaration
protected YearRangeGrid FollowingYearRangeGrid { get; set; }
Property Value
Type | Description |
---|---|
YearRangeGrid | Type: YearRangeGrid |
See Also
FrameMovingTime
Gets or sets a month changing animation time. This is a dependency property.
Declaration
public int FrameMovingTime { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | Type: System.Int32 Default value is 300. |
See Also
HeaderBackground
Gets or sets the header background of the calendar. This is a dependency property.
Declaration
public Brush HeaderBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush Default value is Brushes.Transparent. |
See Also
HeaderForeground
Gets or sets the header foreground of the calendar. This is a dependency property.
Declaration
public Brush HeaderForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush Default value is Brushes.Transparent. |
See Also
InValidDateBackground
Declaration
[Obsolete("InValidDateBackground is deprecated, use BlackoutDatesBackground instead")]
public Brush InValidDateBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
InValidDateBorderBrush
Declaration
[Obsolete("InValidDateBorderBrush is deprecated, use BlackoutDatesBorderBrush instead")]
public Brush InValidDateBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
InValidDateCrossBackground
Declaration
[Obsolete("InValidDateCrossBackground is deprecated, use BlackoutDatesCrossBrush instead")]
public Brush InValidDateCrossBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
InValidDateForeGround
Declaration
[Obsolete("InValidDateForeGround is deprecated, use BlackoutDatesForeground instead")]
public Brush InValidDateForeGround { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
InvalidDates
Declaration
public List<Date> InvalidDates { get; set; }
Property Value
Type |
---|
System.Collections.Generic.List<Date> |
IsAllowYearSelection
Gets or sets a value indicating whether year editing should be enabled. This is a dependency property.
Declaration
[Obsolete("IsAllowYearSelection is deprecated, use IsAllowYearSelection instead")]
public bool IsAllowYearSelection { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsDayNamesAbbreviated
Gets or sets a value indicating whether day names should be abbreviated. This is a dependency property.
Declaration
[Obsolete("IsDayNamesAbbreviated is deprecated, use ShowAbbreviatedDayNames instead")]
public bool IsDayNamesAbbreviated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
IsInitializeComplete
Gets a value indicating whether control is initialized.
Declaration
public bool IsInitializeComplete { get; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean |
See Also
IsMonthNameAbbreviated
Gets or sets a value indicating whether month names should be abbreviated. This is a dependency property.
Declaration
[Obsolete("IsMonthNameAbbreviated is deprecated, use ShowAbbreviatedMonthNames instead")]
public bool IsMonthNameAbbreviated { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsShowWeekNumbers
Gets or sets a value indicating whether week numbers should be shown. This is a dependency property.
Declaration
[Obsolete("IsShowWeekNumbers is deprecated, use ShowWeekNumbers instead")]
public bool IsShowWeekNumbers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsShowWeekNumbersGrid
Gets or sets a value indicating whether week numbers Grid should be shown. This is a dependency property.
Declaration
[Obsolete(" IsShowWeekNumbersGrid is deprecated")]
public bool IsShowWeekNumbersGrid { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
IsTodayButtonClicked
Gets or sets a value indicating whether this instance is today button clicked.
Declaration
public bool IsTodayButtonClicked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
MaxDate
Gets or sets the MaxDate. This is a dependency property.
Declaration
public DateTime MaxDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | Type: MaxDate |
See Also
MinDate
Gets or sets the MinDate. This is a dependency property.
Declaration
public DateTime MinDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime | Type: MinDate |
See Also
MinMaxHidden
Gets or sets a value indicating whether [min max hidden].
Declaration
public bool MinMaxHidden { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
MonthChangeDirection
Declaration
public AnimationDirection MonthChangeDirection { get; set; }
Property Value
Type |
---|
AnimationDirection |
MouseOverBackground
Declaration
public Brush MouseOverBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
MouseOverBorderBrush
Declaration
public Brush MouseOverBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
MouseOverForeground
Declaration
public Brush MouseOverForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
NextScrollButtonTemplate
Gets or sets the next scroll button content template. This is a dependency property.
Declaration
public ControlTemplate NextScrollButtonTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ControlTemplate | Type: System.Windows.DataTemplate Default value is null. |
See Also
NotCurrentMonthForeground
Declaration
public Brush NotCurrentMonthForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
PreviousScrollButtonTemplate
Gets or sets the previous scroll button content template. This is a dependency property.
Declaration
public ControlTemplate PreviousScrollButtonTemplate { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Controls.ControlTemplate | Type: System.Windows.DataTemplate Default value is null. |
See Also
ScrollToDateEnabled
Gets or sets a value indicating whether to scroll to the selected date. This is a dependency property.
Declaration
public bool ScrollToDateEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
SelectedDates
Gets or sets the collection of selected dates. This is a dependency property.
Declaration
public DatesCollection SelectedDates { get; set; }
Property Value
Type | Description |
---|---|
DatesCollection | Type: DatesCollection |
See Also
SelectedDatesList
Gets or sets the selected dates list.
Declaration
public List<Date> SelectedDatesList { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.List<Date> | Type: System.Windows.Documents.List |
See Also
SelectedDayCellBackground
Declaration
public Brush SelectedDayCellBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedDayCellBorderBrush
Declaration
public Brush SelectedDayCellBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedDayCellForeground
Declaration
public Brush SelectedDayCellForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectedDayCellHoverBackground
Declaration
public Brush SelectedDayCellHoverBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
SelectionBorderBrush
Gets or sets selection border brush of the day grid. This is a dependency property.
Declaration
public Brush SelectionBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | Type: System.Windows.Media.Brush |
See Also
SelectionBorderCornerRadius
Gets or sets selection border corner radius of the day grid. This is a dependency property.
Declaration
public CornerRadius SelectionBorderCornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.CornerRadius | Type: System.Windows.CornerRadius Default radius is 5. |
See Also
SelectionForeground
Gets or sets the selection foreground of the day grid. This is a dependency property.
Declaration
public Brush SelectionForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The selection foreground. |
SelectionRangeMode
Gets or sets a selection range mode. This is a dependency property.
Declaration
public SelectionRangeMode SelectionRangeMode { get; set; }
Property Value
Type | Description |
---|---|
SelectionRangeMode | Type: SelectionRangeMode Default value is SelectionRangeMode.CurrentMonth. |
See Also
ShowAbbreviatedDayNames
Gets or sets a value indicating whether day names should be abbreviated. This is a dependency property.
Declaration
public bool ShowAbbreviatedDayNames { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is true. |
See Also
ShowAbbreviatedMonthNames
Declaration
public bool ShowAbbreviatedMonthNames { get; set; }
Property Value
Type |
---|
System.Boolean |
ShowNextMonthDays
Gets or sets a value indicating whether next month days are visible. This is a dependency property.
Declaration
public bool ShowNextMonthDays { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
ShowPreviousMonthDays
Gets or sets a value indicating whether previous month days are visible. This is a dependency property.
Declaration
public bool ShowPreviousMonthDays { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
ShowWeekNumbers
Gets or sets a value indicating whether week numbers should be shown. This is a dependency property.
Declaration
public bool ShowWeekNumbers { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
SpecialDates
Gets or sets Special Dates collection
Declaration
public SpecialDatesCollection SpecialDates { get; set; }
Property Value
Type |
---|
SpecialDatesCollection |
TodayCellBackground
Declaration
public Brush TodayCellBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
TodayCellBorderBrush
Declaration
public Brush TodayCellBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
TodayCellForeground
Declaration
public Brush TodayCellForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
TodayCellSelectedBackground
Declaration
public Brush TodayCellSelectedBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
TodayCellSelectedBorderBrush
Declaration
public Brush TodayCellSelectedBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
TodayDate
Gets the today date. This is a dependency property.
Declaration
public string TodayDate { get; }
Property Value
Type | Description |
---|---|
System.String | Type: System.String Default value is string.Empty. |
See Also
TodayRowIsVisible
Gets or sets a value indicating whether today bar is visible. This is a dependency property.
Declaration
public bool TodayRowIsVisible { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | Type: System.Boolean Default value is false. |
See Also
ViewMode
Gets or sets the view mode of CalendarEdit control.
Declaration
public CalendarVisualMode ViewMode { get; set; }
Property Value
Type |
---|
CalendarVisualMode |
VisibleData
Gets or sets the date visible settings. This is a dependency property.
Declaration
protected VisibleDate VisibleData { get; set; }
Property Value
Type | Description |
---|---|
VisibleDate | Type: VisibleDate |
See Also
VisualMode
Gets or sets the calendar visual mode.
Declaration
public CalendarVisualMode VisualMode { get; set; }
Property Value
Type |
---|
CalendarVisualMode |
VisualModeInfo
Gets or sets current and previous visual mode.
Declaration
protected CalendarEdit.VisualModeHistory VisualModeInfo { get; set; }
Property Value
Type |
---|
CalendarEdit.VisualModeHistory |
WeekNumberBackground
Gets or sets the background for the WeekNumbers
Declaration
public Brush WeekNumberBackground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
WeekNumberBorderBrush
Gets or sets the week number border brush.
Declaration
public Brush WeekNumberBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number border brush. |
WeekNumberBorderThickness
Gets or sets the week number border thickness.
Declaration
public Thickness WeekNumberBorderThickness { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Thickness | The week number border thickness. |
WeekNumberCornerRadius
Gets or sets the week number corner radius.
Declaration
public CornerRadius WeekNumberCornerRadius { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.CornerRadius | The week number corner radius. |
WeekNumberForeground
Gets or sets the foreground for the WeekNumbers
Declaration
public Brush WeekNumberForeground { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
WeekNumberHoverBackground
Gets or sets the week number hover background.
Declaration
public Brush WeekNumberHoverBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number hover background. |
WeekNumberHoverBorderBrush
Gets or sets the week number hover border brush.
Declaration
public Brush WeekNumberHoverBorderBrush { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number hover border brush. |
WeekNumberHoverForeground
Gets or sets the week number hover foreground.
Declaration
public Brush WeekNumberHoverForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number hover foreground. |
WeekNumberSelectionBackground
Gets or sets the week number selection background.
Declaration
public Brush WeekNumberSelectionBackground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number selection background. |
WeekNumberSelectionBorderBrush
Gets or sets the selection BorderBrush for the WeekNumbers
Declaration
public Brush WeekNumberSelectionBorderBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
WeekNumberSelectionBorderCornerRadius
Gets or sets the selection Border CornerRadius for the WeekNumbers
Declaration
public CornerRadius WeekNumberSelectionBorderCornerRadius { get; set; }
Property Value
Type |
---|
System.Windows.CornerRadius |
WeekNumberSelectionBorderThickness
Gets or sets the selection Border Thickness for the WeekNumbers
Declaration
public Thickness WeekNumberSelectionBorderThickness { get; set; }
Property Value
Type |
---|
System.Windows.Thickness |
WeekNumberSelectionForeground
Gets or sets the week number selection foreground.
Declaration
public Brush WeekNumberSelectionForeground { get; set; }
Property Value
Type | Description |
---|---|
System.Windows.Media.Brush | The week number selection foreground. |
WeekNumbersGrid
Gets or sets the week numbers grid.
Declaration
protected WeekNumbersGrid WeekNumbersGrid { get; set; }
Property Value
Type | Description |
---|---|
WeekNumbersGrid | The week numbers grid. |
Methods
BeginMoving(CalendarEdit.MoveDirection, Int32)
Starts animation on the month changing.
Declaration
protected virtual void BeginMoving(CalendarEdit.MoveDirection direction, int month)
Parameters
Type | Name | Description |
---|---|---|
CalendarEdit.MoveDirection | direction | Changing direction. |
System.Int32 | month | Number of months that will be added to the current month. |
CalculateLayOnValue(DayGrid)
Calculates the layOn ratio for the horizontal animation.
Declaration
protected virtual double CalculateLayOnValue(DayGrid current)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | current | The DayGrid for which the value should be calculated. |
Returns
Type | Description |
---|---|
System.Double | The layOn ratio. |
ChangeMode(CalendarEdit.ChangeVisualModeDirection)
Changes the visual mode based on the direection.
Declaration
protected virtual void ChangeMode(CalendarEdit.ChangeVisualModeDirection direction)
Parameters
Type | Name | Description |
---|---|---|
CalendarEdit.ChangeVisualModeDirection | direction | Direction mode |
ChangeVisualMode(CalendarEdit.ChangeVisualModeDirection)
Changes the visual mode in up direction.
Declaration
protected virtual void ChangeVisualMode(CalendarEdit.ChangeVisualModeDirection direction)
Parameters
Type | Name | Description |
---|---|---|
CalendarEdit.ChangeVisualModeDirection | direction | The direction mode. |
ChangeVisualModeIndeed()
Changes the visual mode depending on the VisualModeInfo property.
Declaration
protected virtual void ChangeVisualModeIndeed()
ChangeVisualModePreview(VisibleDate)
Previews settings before setting the visual mode.
Declaration
protected virtual void ChangeVisualModePreview(VisibleDate date)
Parameters
Type | Name | Description |
---|---|---|
VisibleDate | date | Date that should be set. |
ClearSelectedCell()
Clears the selected day cells.
Declaration
protected void ClearSelectedCell()
Dispose()
Declaration
public void Dispose()
FireDayCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the DayCellMouseLeftButtonDown event.
Declaration
protected virtual void FireDayCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireDayCellMouseLeftButtonUp(MouseButtonEventArgs)
Raises the DayCellMouseLeftButtonUp event.
Declaration
protected virtual void FireDayCellMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireDayNameCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the DayNameCellMouseLeftButtonDown event.
Declaration
protected virtual void FireDayNameCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireMonthCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the MonthCellMouseLeftButtonDown event.
Declaration
protected virtual void FireMonthCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireMonthCellMouseLeftButtonUp(MouseButtonEventArgs)
Raises the MonthCellMouseLeftButtonUp event.
Declaration
protected virtual void FireMonthCellMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireWeekNumberCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the WeekNumberCellMouseLeftButtonDown event.
Declaration
protected virtual void FireWeekNumberCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireWeekNumberCellPanelMouseLeftButtonDown(MouseButtonEventArgs)
Raises the WeekNumberCellPanelMouseLeftButtonDown event.
Declaration
protected virtual void FireWeekNumberCellPanelMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireYearCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the YearCellMouseLeftButtonDown event.
Declaration
protected virtual void FireYearCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireYearCellMouseLeftButtonUp(MouseButtonEventArgs)
Raises the YearCellMouseLeftButtonUp event.
Declaration
protected virtual void FireYearCellMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireYearRangeCellMouseLeftButtonDown(MouseButtonEventArgs)
Raises the YearCellMouseLeftButtonDown event.
Declaration
protected virtual void FireYearRangeCellMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
FireYearRangeCellMouseLeftButtonUp(MouseButtonEventArgs)
Raises the YearRangeCellMouseLeftButtonUp event.
Declaration
protected virtual void FireYearRangeCellMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs containing the event data. |
Highlight(Border, CalendarEdit.HighlightSate)
Shows or hides the selection border when mouse enters or leaves the DayNameCell.
Declaration
protected virtual void Highlight(Border border, CalendarEdit.HighlightSate state)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Controls.Border | border | The System.Windows.Controls.Border object that will be highlighted. |
CalendarEdit.HighlightSate | state | The state of the highlight animation. |
InitilizeDayCellStyles(DayGrid)
Initializes the DayCell styles.
Declaration
protected virtual void InitilizeDayCellStyles(DayGrid current)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | current | The DayGrid that is visible in the current moment. |
InitilizeDayCellTemplates(DayGrid)
Initializes the DayCell templates.
Declaration
protected virtual void InitilizeDayCellTemplates(DayGrid current)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | current | The DayGrid that is visible in the current moment. |
LockSelectedDatesUpdate()
Locks visual update of the selecting dates.
Declaration
public void LockSelectedDatesUpdate()
Move(CalendarEdit.MoveDirection)
Starts animation on year and years range changing.
Declaration
protected virtual void Move(CalendarEdit.MoveDirection direction)
Parameters
Type | Name | Description |
---|---|---|
CalendarEdit.MoveDirection | direction | Changing direction. |
NavigateButtonVerify()
Verifies whether navigate buttons are enabled.
Declaration
protected virtual void NavigateButtonVerify()
NextCommandCanExecute(Object, CanExecuteRoutedEventArgs)
Determines whether next command can be executed in its current state.
Declaration
public void NextCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.CanExecuteRoutedEventArgs | e | The System.Windows.Input.CanExecuteRoutedEventArgs containing the event data. |
NextCommandExecute(Object, ExecutedRoutedEventArgs)
Next command handler.
Declaration
public void NextCommandExecute(object sender, ExecutedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.ExecutedRoutedEventArgs | e | The System.Windows.Input.ExecutedRoutedEventArgs containing the event data. |
OnAllowMultiplySelectionChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the AllowMultiplySelection property is changed.
Declaration
protected virtual void OnAllowMultiplySelectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnAllowSelectionChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the AllowSelection property is changed.
Declaration
protected virtual void OnAllowSelectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnAllowYearSelectionChanged(DependencyPropertyChangedEventArgs)
Raises the
Declaration
protected virtual void OnAllowYearSelectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnApplyTemplate()
Invoked whenever application code or internal processes call System.Windows.FrameworkElement.ApplyTemplate method.
Declaration
public override void OnApplyTemplate()
OnCalendarChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the Calendar property is changed.
Declaration
protected virtual void OnCalendarChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnCalendarStyleChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the CalendarStyle property is changed.
Declaration
protected virtual void OnCalendarStyleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnChangeModeTimeChanged(DependencyPropertyChangedEventArgs)
Updates property value cache and raises the ChangeModeTimeChanged event.
Declaration
protected virtual void OnChangeModeTimeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnCoerceDate(DateTime)
Coerces the Date property.
Declaration
protected virtual DateTime OnCoerceDate(DateTime date)
Parameters
Type | Name | Description |
---|---|---|
System.DateTime | date | Value that should be checked. |
Returns
Type | Description |
---|---|
System.DateTime | Checked value. |
OnCoerceVisibleData(Object)
Called when [coerce visible data].
Declaration
protected virtual VisibleDate OnCoerceVisibleData(object obj)
Parameters
Type | Name | Description |
---|---|---|
System.Object | obj | The object. |
Returns
Type | Description |
---|---|
VisibleDate | Visible Date. |
OnCreateAutomationPeer()
Creates an appropriate AutomationPeer for CalendarEdit
Declaration
protected override AutomationPeer OnCreateAutomationPeer()
Returns
Type | Description |
---|---|
System.Windows.Automation.Peers.AutomationPeer | Automation peer of CalendarEdit |
OnCultureChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the Culture property is changed.
Declaration
protected virtual void OnCultureChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDateChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the Date property is changed.
Declaration
protected virtual void OnDateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDateDataTemplatesChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DateDataTemplates property is changed.
Declaration
protected virtual void OnDateDataTemplatesChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDatesCollectionChanged(DependencyPropertyChangedEventArgs)
Declaration
public virtual void OnDatesCollectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnDateStylesChanged(DependencyPropertyChangedEventArgs)
Raises the DateStylesChanged event.
Declaration
protected virtual void OnDateStylesChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnDayCellsDataTemplateChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayCellsDataTemplate property is changed.
Declaration
protected virtual void OnDayCellsDataTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayCellsDataTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayCellsDataTemplateSelector property is changed.
Declaration
protected virtual void OnDayCellsDataTemplateSelectorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayCellsStyleChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayCellsStyle property is changed.
Declaration
protected virtual void OnDayCellsStyleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayNameCellsDataTemplateChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayNameCellsDataTemplate property is changed.
Declaration
protected virtual void OnDayNameCellsDataTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayNameCellsDataTemplateSelectorChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayNameCellsDataTemplateSelector property is changed.
Declaration
protected virtual void OnDayNameCellsDataTemplateSelectorChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayNameCellsStyleChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DayNameCellsStyle property is changed.
Declaration
protected virtual void OnDayNameCellsStyleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDayNamesAbbreviatedChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the ShowAbbreviatedDayNames property is changed.
Declaration
protected virtual void OnDayNamesAbbreviatedChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnDisableDateSelectionChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the DisableDateSelection property is changed.
Declaration
protected virtual void OnDisableDateSelectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnFrameMovingTimeChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the FrameMovingTime property is changed.
Declaration
protected virtual void OnFrameMovingTimeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnIsTodayButtonClickedChanged(DependencyPropertyChangedEventArgs)
Raises the IsTodayButtonClickedChanged event.
Declaration
protected virtual void OnIsTodayButtonClickedChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnManipulationDelta(ManipulationDeltaEventArgs)
Occurs when the input device changes position during a manipulation.
Declaration
protected override void OnManipulationDelta(ManipulationDeltaEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.ManipulationDeltaEventArgs | e |
OnMinMaxHiddenChanged(DependencyPropertyChangedEventArgs)
Raises the MinMaxHiddenChanged event.
Declaration
protected virtual void OnMinMaxHiddenChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnMonthChangeDirectionChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the MonthChangeDirection property is changed.
Declaration
protected virtual void OnMonthChangeDirectionChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnMonthNameAbbreviatedChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the IsMonthNameAbbreviated property is changed.
Declaration
protected virtual void OnMonthNameAbbreviatedChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Invoked when an unhandled OnMouseLeftButtonDown(MouseButtonEventArgs) routed event is raised on this element. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was pressed. |
Remarks
The MouseLeftButtonDown event appears to travel a bubbling route but actually travels in an indirect way. Mouse.MouseDown is the underlying event that is bubble routed, and each ContentElement along the event route uses identical handling to raise the direct routed event MouseLeftButtonDown. Although you can mark the MouseLeftButtonDown event as handled for purposes of this element, the handled state does not perpetuate to other elements along the event route. However, you might want to mark the event as handled in order to prevent general instance handlers (those that did not specify handledEventsToo) from being invoked. The default implementation for general mouse event handling in ContentElement listens for Mouse.MouseDown and converts it to an appropriate local event. If you want to override this logic, you must create a derived class. In the static constructor of your derived class, register an alternative class handler for Mouse.MouseDown. You cannot change the mouse handling behavior of ContentElement by overriding OnMouseLeftButtonDown. Alternatively, you can override this method in order to change event handling for a specific mouse state. Whether you choose to call the base implementation depends on your scenario. Failing to call base disables default input handling for that mouse event on ancestor classes that also expect to invoke OnMouseLeftButtonDown. For example, you can derive from Button and override OnMouseLeftButtonDown in your derived class without calling the base implementation; however, this override disables the Click event.
OnMouseLeftButtonUp(MouseButtonEventArgs)
Invoked when an unhandled System.Windows.UIElement.MouseLeftButtonUp routed event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseLeftButtonUp(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e | The System.Windows.Input.MouseButtonEventArgs that contains the event data. The event data reports that the left mouse button was released. |
OnMouseOverBackgroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnMouseOverBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnMouseOverBorderBrushChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnMouseOverBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnMouseOverForegroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnMouseOverForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnMouseWheel(MouseWheelEventArgs)
Invoked when an unhandled System.Windows.Input.Mouse.MouseWheel attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseWheelEventArgs | e | The System.Windows.Input.MouseWheelEventArgs that contains the event data. |
OnNextScrollButtonTemplateChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the NextScrollButtonTemplate property is changed.
Declaration
protected virtual void OnNextScrollButtonTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnNotCurrentMonthForegroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnNotCurrentMonthForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnPreviousScrollButtonTemplateChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the PreviousScrollButtonTemplate property is changed.
Declaration
protected virtual void OnPreviousScrollButtonTemplateChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnScrollToDateEnabledChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the ScrollToDateEnabled property is changed.
Declaration
protected virtual void OnScrollToDateEnabledChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnSelectedDayCellBackgroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnSelectedDayCellBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnSelectedDayCellBorderBrushChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnSelectedDayCellBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnSelectedDayCellForegroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnSelectedDayCellForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnSelectedDayCellHoverBackgroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnSelectedDayCellHoverBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnSelectionBorderBrushChanged(DependencyPropertyChangedEventArgs)
Invoked whenever SelectionBorderBrush property is changed.
Declaration
protected virtual void OnSelectionBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a Brush or a Brush inherited type. |
OnSelectionBorderCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the SelectionBorderCornerRadius property is changed.
Declaration
protected virtual void OnSelectionBorderCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnSelectionForegroundChanged(DependencyPropertyChangedEventArgs)
Raises the SelectionForegroundChanged event.
Declaration
protected virtual void OnSelectionForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnSelectionRangeModeChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the SelectionRangeMode property is changed.
Declaration
protected virtual void OnSelectionRangeModeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnShowNextMonthDaysChanged(DependencyPropertyChangedEventArgs)
Raises the ShowNextMonthDaysChanged event.
Declaration
protected virtual void OnShowNextMonthDaysChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnShowPreviousMonthDaysChanged(DependencyPropertyChangedEventArgs)
Raises the ShowPreviousMonthDaysChanged event.
Declaration
protected virtual void OnShowPreviousMonthDaysChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnShowWeekNumbersChanged(DependencyPropertyChangedEventArgs)
Raises the
Declaration
protected virtual void OnShowWeekNumbersChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnShowWeekNumbersGridChanged(DependencyPropertyChangedEventArgs)
Raises the
Declaration
protected virtual void OnShowWeekNumbersGridChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnStylusButtonUp(StylusButtonEventArgs)
Invoked when an unhandled StylusUp attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnStylusButtonUp(StylusButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.StylusButtonEventArgs | e |
OnStylusDown(StylusDownEventArgs)
Invoked when an unhandled StylusDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
Declaration
protected override void OnStylusDown(StylusDownEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.StylusDownEventArgs | e |
OnTodayCellBackgroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnTodayCellBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnTodayCellBorderBrushChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnTodayCellBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnTodayCellForegroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnTodayCellForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnTodayCellSelectedBackgroundChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnTodayCellSelectedBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnTodayCellSelectedBorderBrushChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnTodayCellSelectedBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnTodayRowIsVisibleChanged(DependencyPropertyChangedEventArgs)
Raises the TodayRowIsVisibleChanged event.
Declaration
protected virtual void OnTodayRowIsVisibleChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | Property change details, such as old value and new value. |
OnVisibleDataChanged(DependencyPropertyChangedEventArgs)
Invoked whenever the VisibleData property is changed.
Declaration
protected virtual void OnVisibleDataChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
OnVisualModeChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnVisualModeChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnWeekNumberBackgroundChanged(DependencyPropertyChangedEventArgs)
Invoked whenever WeekNumberBackground is changed.
Declaration
protected virtual void OnWeekNumberBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a Brush type. |
OnWeekNumberBorderBrushChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberBorderBrushChanged event.
Declaration
protected virtual void OnWeekNumberBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberBorderThicknessChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberBorderThicknessChanged event.
Declaration
protected virtual void OnWeekNumberBorderThicknessChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Declaration
protected virtual void OnWeekNumberCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e |
OnWeekNumberForegroundChanged(DependencyPropertyChangedEventArgs)
Invoked whenever WeekNumberForeground is changed.
Declaration
protected virtual void OnWeekNumberForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a Brush type. |
OnWeekNumberHoverBackgroundChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberHoverBackgroundChanged event.
Declaration
protected virtual void OnWeekNumberHoverBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberHoverBorderBrushChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberHoverBorderBrushChanged event.
Declaration
protected virtual void OnWeekNumberHoverBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberHoverForegroundChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberHoverForegroundChanged event.
Declaration
protected virtual void OnWeekNumberHoverForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberSelectionBackgroundChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberSelectionBackgroundChanged event.
Declaration
protected virtual void OnWeekNumberSelectionBackgroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
OnWeekNumberSelectionBorderBrushChanged(DependencyPropertyChangedEventArgs)
Invoked whenever WeekNumberSelectionBorderBrush is changed.
Declaration
protected virtual void OnWeekNumberSelectionBorderBrushChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a Brush or a Brush inherited type. |
OnWeekNumberSelectionBorderCornerRadiusChanged(DependencyPropertyChangedEventArgs)
Invoked whenever WeekNumberSelectionBorderCornerRadius is changed.
Declaration
protected virtual void OnWeekNumberSelectionBorderCornerRadiusChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a CornerRadius type. |
OnWeekNumberSelectionBorderThicknessChanged(DependencyPropertyChangedEventArgs)
Invoked whenever WeekNumberSelectionBorderThickness is changed.
Declaration
protected virtual void OnWeekNumberSelectionBorderThicknessChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs containing the event data. |
Exceptions
Type | Condition |
---|---|
System.ArgumentException | New value must be of a Thickness type. |
OnWeekNumberSelectionForegroundChanged(DependencyPropertyChangedEventArgs)
Raises the WeekNumberSelectionForegroundChanged event.
Declaration
protected virtual void OnWeekNumberSelectionForegroundChanged(DependencyPropertyChangedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | e | The System.Windows.DependencyPropertyChangedEventArgs instance containing the event data. |
PrevCommandCanExecute(Object, CanExecuteRoutedEventArgs)
Determines whether previous command can be executed in its current state.
Declaration
public void PrevCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.CanExecuteRoutedEventArgs | e | The System.Windows.Input.CanExecuteRoutedEventArgs containing the event data. |
PrevCommandExecute(Object, ExecutedRoutedEventArgs)
Previous command handler.
Declaration
public void PrevCommandExecute(object sender, ExecutedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.ExecutedRoutedEventArgs | e | The System.Windows.Input.ExecutedRoutedEventArgs containing the event data. |
ScrollToDate()
Scrolls the calendar to the new date.
Declaration
protected virtual void ScrollToDate()
SetBackground(DayGrid, SolidColorBrush, SolidColorBrush, Boolean)
Sets the background for each day cell during vertical animation.
Declaration
protected void SetBackground(DayGrid dayGrid, SolidColorBrush currentBrush, SolidColorBrush followingBrush, bool isCurrent)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | dayGrid | The DayGrid that contains day cells. |
System.Windows.Media.SolidColorBrush | currentBrush | The brush for the background of current month cells. |
System.Windows.Media.SolidColorBrush | followingBrush | The brush for the background of following month cells. |
System.Boolean | isCurrent | Indicates whether day grid is current. |
SetDateDataTemplates(DayGrid, CalendarEdit.CollectionChangedAction, DataTemplateItem)
Applies the changes in the DataTemplatesDictionary.
Declaration
protected virtual void SetDateDataTemplates(DayGrid current, CalendarEdit.CollectionChangedAction action, DataTemplateItem item)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | current | DayGrid that is visible in the current moment. |
CalendarEdit.CollectionChangedAction | action | The action of DayGrid. |
DataTemplateItem | item | The DataTemplateItem changes were occurred on. |
SetDateStyles(DayGrid, CalendarEdit.CollectionChangedAction, StyleItem)
Applies the changes in the StylesDictionary.
Declaration
protected virtual void SetDateStyles(DayGrid current, CalendarEdit.CollectionChangedAction action, StyleItem item)
Parameters
Type | Name | Description |
---|---|---|
DayGrid | current | DayGrid that is visible in the current moment. |
CalendarEdit.CollectionChangedAction | action | The current action. |
StyleItem | item | The StyleItem changes were occurred on. |
SetToolTip(Date, ToolTip)
Sets tooltip to the day cell.
Declaration
public void SetToolTip(Date date, ToolTip tooltip)
Parameters
Type | Name | Description |
---|---|---|
Date | date | Date of the cell to set tooltip. |
System.Windows.Controls.ToolTip | tooltip | Tooltip that should be set. |
SetToolTip(Int32, Int32, ToolTip)
Sets tooltip to the day cell.
Declaration
public void SetToolTip(int rowIndex, int colIndex, ToolTip tooltip)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | rowIndex | Row number of the cell (starts from 0) |
System.Int32 | colIndex | Column number of the cell (starts from 0) |
System.Windows.Controls.ToolTip | tooltip | The tooltip. |
SetVisibleMonth(Int32)
Sets the month for displaying in the calendar.
Declaration
public void SetVisibleMonth(int month)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | month | The month to be set. |
SetVisibleYear(Int32)
Sets the year for displaying in the calendar.
Declaration
public void SetVisibleYear(int year)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | year | The year to be set. |
UnLockSelectedDatesUpdate()
Unlocks visual update of the selecting dates.
Declaration
public void UnLockSelectedDatesUpdate()
UpCommandCanExecute(Object, CanExecuteRoutedEventArgs)
Determines whether up command can be executed in its current state.
Declaration
public void UpCommandCanExecute(object sender, CanExecuteRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.CanExecuteRoutedEventArgs | e | The System.Windows.Input.CanExecuteRoutedEventArgs containing the event data. |
UpCommandExecute(Object, ExecutedRoutedEventArgs)
Up command handler.
Declaration
public void UpCommandExecute(object sender, ExecutedRoutedEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Object | sender | The source of the event. |
System.Windows.Input.ExecutedRoutedEventArgs | e | The System.Windows.Input.ExecutedRoutedEventArgs containing the event data. |
Events
AllowMultiplySelectionChanged
Event that is raised when AllowMultiplySelection property is changed.
Declaration
public event PropertyChangedCallback AllowMultiplySelectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
AllowSelectionChanged
Event that is raised when AllowSelection property is changed.
Declaration
public event PropertyChangedCallback AllowSelectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CalendarChanged
Event that is raised when Calendar property is changed.
Declaration
public event PropertyChangedCallback CalendarChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CalendarStyleChanged
Event that is raised when CalendarStyle property is changed.
Declaration
public event PropertyChangedCallback CalendarStyleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ChangeModeTimeChanged
Event that is raised when ChangeModeTime property is changed.
Declaration
public event PropertyChangedCallback ChangeModeTimeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
CultureChanged
Event that is raised when System.Globalization.CultureInfo property is changed.
Declaration
public event PropertyChangedCallback CultureChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DateChanged
Event that is raised when Date property is changed.
Declaration
public event PropertyChangedCallback DateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DateDataTemplatesChanged
Event that is raised when DateDataTemplates property is changed.
Declaration
public event PropertyChangedCallback DateDataTemplatesChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DateStylesChanged
Event that is raised when DateStyles property is changed.
Declaration
public event PropertyChangedCallback DateStylesChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayCellMouseLeftButtonDown
Invoked whenever an unhandled DayCellMouseLeftButtonDown event is raised on the DayCell element.
Declaration
protected event MouseButtonEventHandler DayCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
DayCellMouseLeftButtonUp
Invoked whenever an unhandled DayCellMouseLeftButtonUp event is raised on the DayCell element.
Declaration
protected event MouseButtonEventHandler DayCellMouseLeftButtonUp
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
DayCellsDataTemplateChanged
Event that is raised when DayCellsDataTemplate property is changed.
Declaration
public event PropertyChangedCallback DayCellsDataTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayCellsDataTemplateSelectorChanged
Event that is raised when DayCellsDataTemplateSelector property is changed.
Declaration
public event PropertyChangedCallback DayCellsDataTemplateSelectorChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayCellsStyleChanged
Event that is raised when DayCellsStyle property is changed.
Declaration
public event PropertyChangedCallback DayCellsStyleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayNameCellMouseLeftButtonDown
Invoked whenever an unhandled DayNameCellMouseLeftButtonDown event is raised on the DayNameCell element.
Declaration
protected event MouseButtonEventHandler DayNameCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
DayNameCellsDataTemplateChanged
Event that is raised when DayNameCellsDataTemplate property is changed.
Declaration
public event PropertyChangedCallback DayNameCellsDataTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayNameCellsDataTemplateSelectorChanged
Event that is raised when DayNameCellsDataTemplateSelector property is changed.
Declaration
public event PropertyChangedCallback DayNameCellsDataTemplateSelectorChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DayNameCellsStyleChanged
Event that is raised when DayNameCellsStyle property is changed.
Declaration
public event PropertyChangedCallback DayNameCellsStyleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
DisableDateSelectionChanged
Event that is raised when DisableDateSelection property is changed.
Declaration
public event PropertyChangedCallback DisableDateSelectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
FrameMovingTimeChanged
Event that is raised when FrameMovingTime property is changed.
Declaration
public event PropertyChangedCallback FrameMovingTimeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsAllowYearSelectionChanged
Event that is raised when IsAllowYearSelection property is changed.
Declaration
[Obsolete("IsAllowYearSelectionChanged event is deprecated")]
public event PropertyChangedCallback IsAllowYearSelectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsDayNamesAbbreviatedChanged
Event that is raised when IsDayNamesAbbreviated property is changed.
Declaration
[Obsolete("IsDayNamesAbbreviatedChanged event is deprecated")]
public event PropertyChangedCallback IsDayNamesAbbreviatedChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsMonthNameAbbreviatedChanged
Event that is raised when IsMonthNameAbbreviated property is changed.
Declaration
[Obsolete("IsMonthNameAbbreviatedChanged event is deprecated")]
public event PropertyChangedCallback IsMonthNameAbbreviatedChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsShowWeekNumbersChanged
Event that is raised when IsShowWeekNumbers property is changed.
Declaration
[Obsolete("IsShowWeekNumbersChanged event is deprecated")]
public event PropertyChangedCallback IsShowWeekNumbersChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
IsShowWeekNumbersGridChanged
Event that is raised when IsShowWeekNumbersGrid property is changed.
Declaration
[Obsolete("IsShowWeekNumbersGridChanged event is deprecated")]
public event PropertyChangedCallback IsShowWeekNumbersGridChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
MinMaxHiddenChanged
Event that is raised when MinMaxHiddenChanged property is changed.
Declaration
public event PropertyChangedCallback MinMaxHiddenChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
MonthCellMouseLeftButtonDown
Invoked whenever an unhandled MonthCellMouseLeftButtonDown event is raised on the MonthCell element.
Declaration
protected event MouseButtonEventHandler MonthCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
MonthCellMouseLeftButtonUp
Invoked whenever an unhandled MonthCellMouseLeftButtonUp event is raised on the MonthCell element.
Declaration
protected event MouseButtonEventHandler MonthCellMouseLeftButtonUp
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
MonthChanged
Event that is raised when Month property is changed.
Declaration
public event CalendarEdit.MonthChangedEventHandler MonthChanged
Event Type
Type |
---|
CalendarEdit.MonthChangedEventHandler |
MonthChangeDirectionChanged
Event that is raised when MonthChangeDirection property is changed.
Declaration
public event PropertyChangedCallback MonthChangeDirectionChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
MouseOverBackgroundChanged
Declaration
public event PropertyChangedCallback MouseOverBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
MouseOverBorderBrushChanged
Declaration
public event PropertyChangedCallback MouseOverBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
MouseOverForegroundChanged
Declaration
public event PropertyChangedCallback MouseOverForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
NextScrollButtonTemplateChanged
Event that is raised when NextScrollButtonTemplate property is changed.
Declaration
public event PropertyChangedCallback NextScrollButtonTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
NotCurrentMonthForegroundChanged
Declaration
public event PropertyChangedCallback NotCurrentMonthForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
PreviousScrollButtonTemplateChanged
Event that is raised when PreviousScrollButtonTemplate property is changed.
Declaration
public event PropertyChangedCallback PreviousScrollButtonTemplateChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ScrollToDateEnabledChanged
Event that is raised when ScrollToDateEnabled property is changed.
Declaration
public event PropertyChangedCallback ScrollToDateEnabledChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedDayCellBackgroundChanged
Declaration
public event PropertyChangedCallback SelectedDayCellBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedDayCellBorderBrushChanged
Declaration
public event PropertyChangedCallback SelectedDayCellBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedDayCellForegroundChanged
Declaration
public event PropertyChangedCallback SelectedDayCellForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectedDayCellHoverBackgroundChanged
Declaration
public event PropertyChangedCallback SelectedDayCellHoverBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectionBorderBrushChanged
Event that is raised when SelectionBorderBrush property is changed.
Declaration
public event PropertyChangedCallback SelectionBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectionBorderCornerRadiusChanged
Event that is raised when SelectionBorderCornerRadius property is changed.
Declaration
public event PropertyChangedCallback SelectionBorderCornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectionForegroundChanged
Occurs when [selection foreground changed].
Declaration
public event PropertyChangedCallback SelectionForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
SelectionRangeModeChanged
Event that is raised when SelectionRangeMode property is changed.
Declaration
public event PropertyChangedCallback SelectionRangeModeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ShowNextMonthDaysChanged
Event that is raised when ShowNextMonthDays property is changed.
Declaration
public event PropertyChangedCallback ShowNextMonthDaysChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
ShowPreviousMonthDaysChanged
Event that is raised when ShowPreviousMonthDays property is changed.
Declaration
public event PropertyChangedCallback ShowPreviousMonthDaysChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayCellBackgroundChanged
Declaration
public event PropertyChangedCallback TodayCellBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayCellBorderBrushChanged
Declaration
public event PropertyChangedCallback TodayCellBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayCellForegroundChanged
Declaration
public event PropertyChangedCallback TodayCellForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayCellSelectedBackgroundChanged
Declaration
public event PropertyChangedCallback TodayCellSelectedBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayCellSelectedBorderBrushChanged
Declaration
public event PropertyChangedCallback TodayCellSelectedBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
TodayRowIsVisibleChanged
Event that is raised when TodayRowIsVisible property is changed.
Declaration
public event PropertyChangedCallback TodayRowIsVisibleChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
VisibleDataChanged
Event that is raised when VisibleData property is changed.
Declaration
protected event PropertyChangedCallback VisibleDataChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
VisualModeChanged
Declaration
public event PropertyChangedCallback VisualModeChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberBackgroundChanged
Event that is raised when WeekNumberBackground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberBorderBrushChanged
Occurs when WeekNumberBorderBrush [week number border brush changed].
Declaration
public event PropertyChangedCallback WeekNumberBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberBorderThicknessChanged
Occurs when WeekNumberBorderThickness [week number border thickness changed].
Declaration
public event PropertyChangedCallback WeekNumberBorderThicknessChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberCellMouseLeftButtonDown
Invoked whenever an unhandled WeekNumberCellMouseLeftButtonDown event is raised on the WeekNumberCell element.
Declaration
protected event MouseButtonEventHandler WeekNumberCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
WeekNumberCellPanelMouseLeftButtonDown
Invoked whenever an unhandled WeekNumberCellPanelMouseLeftButtonDown event is raised on the WeekNumberCellPanel element.
Declaration
protected event MouseButtonEventHandler WeekNumberCellPanelMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
WeekNumberCornerRadiusChanged
Occurs when WeekNumberCornerRadius [week number corner radius changed].
Declaration
public event PropertyChangedCallback WeekNumberCornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberForegroundChanged
Event that is raised when WeekNumberForeground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberHoverBackgroundChanged
Event that is raised when WeekNumberHoverBackground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberHoverBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberHoverBorderBrushChanged
Event that is raised when WeekNumberHoverBorderBrush property is changed.
Declaration
public event PropertyChangedCallback WeekNumberHoverBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberHoverForegroundChanged
Event that is raised when WeekNumberHoverForeground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberHoverForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberSelectionBackgroundChanged
Event that is raised when WeekNumberSelectionBackground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberSelectionBackgroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberSelectionBorderBrushChanged
Event that is raised when WeekNumberSelectionBorderBrush property is changed.
Declaration
public event PropertyChangedCallback WeekNumberSelectionBorderBrushChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberSelectionBorderCornerRadiusChanged
Event that is raised when WeekNumberSelectionBorderCornerRadius property is changed.
Declaration
public event PropertyChangedCallback WeekNumberSelectionBorderCornerRadiusChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberSelectionBorderThicknessChanged
Event that is raised when WeekNumberSelectionBorderThickness property is changed.
Declaration
public event PropertyChangedCallback WeekNumberSelectionBorderThicknessChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
WeekNumberSelectionForegroundChanged
Event that is raised when WeekNumberSelectionForeground property is changed.
Declaration
public event PropertyChangedCallback WeekNumberSelectionForegroundChanged
Event Type
Type |
---|
System.Windows.PropertyChangedCallback |
YearCellMouseLeftButtonDown
Invoked whenever an unhandled YearCellMouseLeftButtonDown event is raised on the YearCell element.
Declaration
protected event MouseButtonEventHandler YearCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
YearCellMouseLeftButtonUp
Invoked whenever an unhandled YearCellMouseLeftButtonUp event is raised on the YearCell element.
Declaration
protected event MouseButtonEventHandler YearCellMouseLeftButtonUp
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
YearRangeCellMouseLeftButtonDown
Invoked whenever an unhandled YearRangeCellMouseLeftButtonDown event is raised on the YearRangeCell element.
Declaration
protected event MouseButtonEventHandler YearRangeCellMouseLeftButtonDown
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |
YearRangeCellMouseLeftButtonUp
Invoked whenever an unhandled YearRangeCellMouseLeftButtonUp event is raised on the YearRangeCell element.
Declaration
protected event MouseButtonEventHandler YearRangeCellMouseLeftButtonUp
Event Type
Type |
---|
System.Windows.Input.MouseButtonEventHandler |