Coordinates the calendar header buttons and the fast-navigation popup.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.UI.dll
Syntax:
public class CalendarNavigationElement : CalendarVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IBindableComponent, IComponent, IDisposable, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IDrawFillElement, IImageElement, ITextPrimitive, ITextProvider
Inheritance: objectDisposableObjectRadObjectRadElementVisualElementRadComponentElementRadItemUIItemBaseLightVisualElementCalendarVisualElementCalendarNavigationElement...
Implements:
Inherited Members
Fields
Identifies the FastLeftButtonImage property assigned to the fast-backward button element.
public static RadProperty FastLeftButtonImageProperty
Identifies the FastRightButtonImage property assigned to the fast-forward button element.
public static RadProperty FastRightButtonImageProperty
Identifies the LeftButtonImage property assigned to the previous-button element.
public static RadProperty LeftButtonImageProperty
Identifies the RightButtonImage property assigned to the next-button element.
public static RadProperty RightButtonImageProperty
Properties
Gets -1 when the associated calendar's RightToLeft property is RightToLeft.Yes, and 1 otherwise.
[Browsable(false)]
public int Direction { get; }
first button
public RadButtonElement FastBackwardButton { get; }
Last button
public RadButtonElement FastForwardButton { get; }
Gets or sets the image assigned to the fast-navigation button at the left end of the navigation layout.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image FastLeftButtonImage { get; set; }
Gets or sets the count of the items in the fast navigation drop down. Note that only 3, 7, 11 and 13 values can be accepted.
public int FastNavigationItemsCount { get; set; }
Gets or sets the image assigned to the fast-navigation button at the right end of the navigation layout.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image FastRightButtonImage { get; set; }
Gets or sets the image assigned to the regular button at the left end of the navigation layout.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image LeftButtonImage { get; set; }
Gets or sets the multiplier applied to view-step offsets when the fast-navigation entries are generated.
public int MonthStep { get; set; }
Gets or sets the action performed when the calendar header is clicked.
public HeaderNavigationMode NavigationMode { get; set; }
A HeaderNavigationMode value that disables popup and zoom actions, opens the fast-navigation popup, or advances to a broader zoom level.
next button
public RadButtonElement NextButton { get; }
previuos button
public RadButtonElement PreviousButton { get; }
Gets or sets the image assigned to the regular button at the right end of the navigation layout.
[TypeConverter(typeof(ImageTypeConverter))]
public virtual Image RightButtonImage { get; set; }
Gets or sets whether layout can expand the element to use available vertical space.
public override bool StretchVertically { get; set; }
Overrides:
Methods
Creates the horizontal layout and the regular and fast-navigation buttons.
protected override void CreateChildElements()
Overrides:
Detaches event handlers and disposes the navigation buttons, popup, hosted control, and timer.
protected override void DisposeManagedResources()
Overrides:
Initializes the timer and popup controls used by the calendar navigation element.
protected override void InitializeFields()
Overrides:
Opens the fast-navigation popup when popup navigation is enabled and the calendar allows fast navigation.
protected override void OnMouseDown(MouseEventArgs e)
Mouse data associated with the header press.
Overrides:
Updates the selected popup entry under the pointer and tracks pointer-driven scrolling while the element has capture.
protected override void OnMouseMove(MouseEventArgs e)
Mouse coordinates used to identify the hovered popup entry.
Overrides:
Completes header interaction by navigating to a popup entry or advancing the calendar's zoom level.
protected override void OnMouseUp(MouseEventArgs e)
Mouse data for the release that completes the interaction.
Overrides:
Refreshes the base visuals and reapplies the current view through UpdateView(CalendarView).
public override void RefreshVisuals()
Overrides:
Reapplying a view that differs from the calendar's default raises view-changing and view-changed notifications; cancellation of the former prevents the update.
Refreshes the base visuals and reapplies the current view through UpdateView(CalendarView).
public override void RefreshVisuals(bool unconditional)
Whether to force the base visual refresh.
Overrides:
Reapplying a view that differs from the calendar's default raises view-changing and view-changed notifications; cancellation of the former prevents the update.
Applies a view to the calendar unless a view-changing handler cancels it, then updates the header title and visuals.
protected virtual void UpdateView(CalendarView view)
The calendar view to display.
Invalidates this element so its current title and navigation-button state are redrawn.
protected virtual void UpdateVisuals()