CachedEnumItemsSource
StockSharp.Xaml
Cacheable enumeration items source.
Inherits: MarkupExtension
Implements: IEnumerable, IEnumerable<EnumMemberInfo>
Constructors
CachedEnumItemsSource
public CachedEnumItemsSource()
cachedEnumItemsSource = CachedEnumItemsSource()
Initializes a new instance of the CachedEnumItemsSource.
Properties
AllowImages
public bool AllowImages { get; set; }
value = cachedEnumItemsSource.AllowImages
cachedEnumItemsSource.AllowImages = value
Allow images.
EnumType
public Type EnumType { get; set; }
value = cachedEnumItemsSource.EnumType
cachedEnumItemsSource.EnumType = value
Enumeration type.
ImageSize
public Size? ImageSize { get; set; }
value = cachedEnumItemsSource.ImageSize
cachedEnumItemsSource.ImageSize = value
Image size.
NameConverter
public IValueConverter NameConverter { get; set; }
value = cachedEnumItemsSource.NameConverter
cachedEnumItemsSource.NameConverter = value
Name converter.
SortMode
public EnumMembersSortMode SortMode { get; set; }
value = cachedEnumItemsSource.SortMode
cachedEnumItemsSource.SortMode = value
Sort mode.
SplitNames
public bool SplitNames { get; set; }
value = cachedEnumItemsSource.SplitNames
cachedEnumItemsSource.SplitNames = value
Split names.
UseNumericEnumValue
public bool UseNumericEnumValue { get; set; }
value = cachedEnumItemsSource.UseNumericEnumValue
cachedEnumItemsSource.UseNumericEnumValue = value
Use numeric enum value.
Methods
ProvideValue
public override object ProvideValue(IServiceProvider serviceProvider)
result = cachedEnumItemsSource.ProvideValue(serviceProvider)
When implemented in a derived class, returns an object that is provided as the value of the target property for this markup extension.
- serviceProvider
- A service provider helper that can provide services for the markup extension.
Returns: The object value to set on the property where the extension is applied.