Class
ObjectSelector<T>

Defines a type that may be used to conditionally select a T instance.

Definition

Namespace:Telerik.UI.Xaml.Controls.Primitives

Assembly:Telerik.WinUI.Controls.dll

Type Parameters:

T

The type of the object which is to be selected.

Syntax:

cs-api-definition
public class ObjectSelector<T> where T : class

Inheritance: objectObjectSelector<T>

Constructors

ObjectSelector()

Declaration

cs-api-definition
public ObjectSelector()

Methods

SelectObject(object, DependencyObject)

Selects a T instance depending on the provided item and container.

Declaration

cs-api-definition
public T SelectObject(object item, DependencyObject container)

Parameters

item

object

The object instance for which a brush is to be selected.

container

DependencyObject

The container where the object instance resides.

Returns

T

SelectObjectCore(object, DependencyObject)

Allows inheritors to provide custom implementation of the method.

Declaration

cs-api-definition
protected virtual T SelectObjectCore(object item, DependencyObject container)

Parameters

item

object

The object instance for which a brush is to be selected.

container

DependencyObject

The container where the object instance resides.

Returns

T