New to Telerik UI for WPFStart a free 30-day trial

Provides a way to choose a style for the SpecialSlot based on the data object and the data-bound element.

Definition

Namespace:Telerik.Windows.Controls

Assembly:Telerik.Windows.Controls.ScheduleView.dll

Syntax:

C#
public class SpecialSlotStyleSelector : ScheduleViewStyleSelector

Inheritance: objectScheduleViewStyleSelectorSpecialSlotStyleSelector

Constructors

C#
public SpecialSlotStyleSelector()

Properties

Gets or sets the default style of the SpecialSlot.

C#
public Style DefaultStyle { get; set; }

Gets or sets the read-only style of the SpecialSlot.

C#
public Style ReadOnlyStyle { get; set; }

Methods

When overridden in a derived class, returns a System.Windows.Style based on custom logic.

C#
public override Style SelectStyle(object item, DependencyObject container, ViewDefinitionBase activeViewDefinition)
Parameters:itemobject

The content.

containerDependencyObject

The element to which the style will be applied.

activeViewDefinitionViewDefinitionBase

The active view definition of ScheduleView.

Returns:

Style

Returns an application-specific style to apply; otherwise, null.

Overrides: ScheduleViewStyleSelector.SelectStyle(object, DependencyObject, ViewDefinitionBase)