Table of Contents

Class EditorExtensions

Namespace
Ecng.Xaml
Assembly
StockSharp.Xaml.dll
public static class EditorExtensions
Inheritance
EditorExtensions
Inherited Members

Methods

AddClearButton(ButtonEdit, object)

public static void AddClearButton(this ButtonEdit edit, object emptyValue = null)

Parameters

edit ButtonEdit
emptyValue object

AddClearButton(ComboBoxEditSettings, object)

public static void AddClearButton(this ComboBoxEditSettings editSettings, object emptyValue = null)

Parameters

editSettings ComboBoxEditSettings
emptyValue object

GetSelected<T>(ComboBoxEditEx)

public static T GetSelected<T>(this ComboBoxEditEx cb)

Parameters

cb ComboBoxEditEx

Returns

T

Type Parameters

T

GetSelecteds<T>(ComboBoxEditEx)

public static IEnumerable<T> GetSelecteds<T>(this ComboBoxEditEx cb)

Parameters

cb ComboBoxEditEx

Returns

IEnumerable<T>

Type Parameters

T

RemoveClearButton(ButtonEdit)

public static void RemoveClearButton(this ButtonEdit edit)

Parameters

edit ButtonEdit

SetItemsSource(ComboBoxEditEx, IItemsSource)

public static void SetItemsSource(this ComboBoxEditEx cb, IItemsSource source)

Parameters

cb ComboBoxEditEx
source IItemsSource

SetItemsSource(ComboBoxEditEx, Type)

public static void SetItemsSource(this ComboBoxEditEx cb, Type enumType)

Parameters

cb ComboBoxEditEx
enumType Type

SetItemsSource<T>(ComboBoxEditEx)

public static void SetItemsSource<T>(this ComboBoxEditEx cb) where T : Enum

Parameters

cb ComboBoxEditEx

Type Parameters

T

SetItemsSource<T>(ComboBoxEditEx, IEnumerable<T>, Func<T, string>, Func<T, string>)

public static void SetItemsSource<T>(this ComboBoxEditEx cb, IEnumerable<T> values, Func<T, string> getName = null, Func<T, string> getDescription = null)

Parameters

cb ComboBoxEditEx
values IEnumerable<T>
getName Func<T, string>
getDescription Func<T, string>

Type Parameters

T

SetSelected<T>(ComboBoxEditEx, T)

public static void SetSelected<T>(this ComboBoxEditEx cb, T value)

Parameters

cb ComboBoxEditEx
value T

Type Parameters

T

ToItemsSource(object, Type, bool?, ListSortDirection?, Func<IItemsSourceItem, bool>, Func<object, string>, Func<object, string>)

public static IItemsSource ToItemsSource(this object val, Type itemValueType, bool? excludeObsolete = null, ListSortDirection? sortOrder = null, Func<IItemsSourceItem, bool> filter = null, Func<object, string> getName = null, Func<object, string> getDescription = null)

Parameters

val object
itemValueType Type
excludeObsolete bool?
sortOrder ListSortDirection?
filter Func<IItemsSourceItem, bool>
getName Func<object, string>
getDescription Func<object, string>

Returns

IItemsSource

ToItemsSource<T>(IEnumerable<T>, bool, ListSortDirection?, Func<IItemsSourceItem, bool>, Func<T, string>, Func<T, string>)

public static IItemsSource ToItemsSource<T>(this IEnumerable<T> val, bool excludeObsolete = true, ListSortDirection? sortOrder = null, Func<IItemsSourceItem, bool> filter = null, Func<T, string> getName = null, Func<T, string> getDescription = null)

Parameters

val IEnumerable<T>
excludeObsolete bool
sortOrder ListSortDirection?
filter Func<IItemsSourceItem, bool>
getName Func<T, string>
getDescription Func<T, string>

Returns

IItemsSource

Type Parameters

T