Class SingleTemplateSelector
Represents the DataTemplate of a single item.
Inheritance
Namespace: Telerik.WinForms.Controls.Spreadsheet.Utilities
Assembly: Telerik.WinControls.RadSpreadsheet.dll
Syntax
public class SingleTemplateSelector : DataTemplateSelector
Constructors
SingleTemplateSelector()
Declaration
public SingleTemplateSelector()
Properties
MenuItemTemplate
Gets or sets the menu item template.
Declaration
public DataTemplate MenuItemTemplate { get; set; }
Property Value
System.Windows.DataTemplate
The menu item template. |
Methods
SelectTemplate(Object, DependencyObject)
When overridden in a derived class, returns a System.Windows.DataTemplate based on custom logic.
Declaration
public override DataTemplate SelectTemplate(object item, DependencyObject container)
Parameters
System.Object
item
The data object for which to select the template. |
System.Windows.DependencyObject
container
The data-bound object. |
Returns
System.Windows.DataTemplate
Returns a System.Windows.DataTemplate or null. The default value is null. |