UnitEditor
StockSharp.Xaml
类对象单位编辑的控制.
继承自: BaseEdit
构造函数
属性
DefaultSupportLegacyTypes
public static bool DefaultSupportLegacyTypes { get; set; }
value = UnitEditor.DefaultSupportLegacyTypes
UnitEditor.DefaultSupportLegacyTypes = value
SupportStepType, SupportLimitType, SupportPointType 的默认值 。
MaxValue
public decimal? MaxValue { get; set; }
value = unitEditor.MaxValue
unitEditor.MaxValue = value
最大值 。
MinValue
public decimal? MinValue { get; set; }
value = unitEditor.MinValue
unitEditor.MinValue = value
最小值。 。
ShowTypeSelector
public bool ShowTypeSelector { get; private set; }
value = unitEditor.ShowTypeSelector
unitEditor.ShowTypeSelector = value
显示类型选择器 。
SupportAbsolute
public bool SupportAbsolute { get; set; }
value = unitEditor.SupportAbsolute
unitEditor.SupportAbsolute = value
绝对支持。
SupportedTypes
public IEnumerable<UnitTypes> SupportedTypes { get; private set; }
value = unitEditor.SupportedTypes
unitEditor.SupportedTypes = value
支援单位类型.
SupportLimitType
public bool SupportLimitType { get; set; }
value = unitEditor.SupportLimitType
unitEditor.SupportLimitType = value
支持限制 。
SupportPercent
public bool SupportPercent { get; set; }
value = unitEditor.SupportPercent
unitEditor.SupportPercent = value
支持百分比。
SupportPointType
public bool SupportPointType { get; set; }
value = unitEditor.SupportPointType
unitEditor.SupportPointType = value
支援点
SupportStepType
public bool SupportStepType { get; set; }
value = unitEditor.SupportStepType
unitEditor.SupportStepType = value
支持步调.
UnitType
public UnitTypes UnitType { get; set; }
value = unitEditor.UnitType
unitEditor.UnitType = value
单位类型。
UnitValue
public decimal? UnitValue { get; set; }
value = unitEditor.UnitValue
unitEditor.UnitValue = value
单位值.
方法
CreateEditorSettings
protected override BaseEditSettings CreateEditorSettings()
result = unitEditor.CreateEditorSettings()
CreateEditStrategy
protected override EditStrategyBase CreateEditStrategy()
result = unitEditor.CreateEditStrategy()
字段
MaxValueProperty
public static readonly DependencyProperty MaxValueProperty
value = UnitEditor.MaxValueProperty
最大值 。
MinValueProperty
public static readonly DependencyProperty MinValueProperty
value = UnitEditor.MinValueProperty
最小值。 。
ShowTypeSelectorProperty
public static readonly DependencyProperty ShowTypeSelectorProperty
value = UnitEditor.ShowTypeSelectorProperty
DependencyProperty 为ShowTypeSelector.
SupportAbsoluteProperty
public static readonly DependencyProperty SupportAbsoluteProperty
value = UnitEditor.SupportAbsoluteProperty
绝对支持。
SupportLimitTypeProperty
public static readonly DependencyProperty SupportLimitTypeProperty
value = UnitEditor.SupportLimitTypeProperty
支持限制 。
SupportPercentProperty
public static readonly DependencyProperty SupportPercentProperty
value = UnitEditor.SupportPercentProperty
支持百分比。
SupportPointTypeProperty
public static readonly DependencyProperty SupportPointTypeProperty
value = UnitEditor.SupportPointTypeProperty
支援点
SupportStepTypeProperty
public static readonly DependencyProperty SupportStepTypeProperty
value = UnitEditor.SupportStepTypeProperty
支持步调.
UnitTypeProperty
public static readonly DependencyProperty UnitTypeProperty
value = UnitEditor.UnitTypeProperty
单位类型。
UnitValueProperty
public static readonly DependencyProperty UnitValueProperty
value = UnitEditor.UnitValueProperty
单位值.