SinglePropertyEditor Class
Represents a PropertyEditor for editing a Single
value with a SingleEditBox.
public class SinglePropertyEditor : PartEditBoxPropertyEditorBase
- Inheritance:
- object ObservableObjectBase PropertyEditor PropertyEditorBase PartEditBoxPropertyEditorBase object
- Derived:
- NullableSinglePropertyEditor
Constructors
SinglePropertyEditor()
Initializes an instance of the SinglePropertyEditor class.
public SinglePropertyEditor()
SinglePropertyEditor(Type)
Initializes an instance of the SinglePropertyEditor class.
protected SinglePropertyEditor(Type propertyType)
Parameter | Type | Description |
---|---|---|
propertyType | Type | The type of the property. |
Properties
CanSnapToChangePrecision
Gets or sets whether the value should be snapped to the precision of the incremental change value prior to applying the increment.
public bool CanSnapToChangePrecision { get; set; }
Property Value
- bool:
true
if the value should be snapped to the precision of the incremental change value prior to applying the increment; otherwise,false
. The default value istrue
.
Remarks
When true
, a value of 1.24
with change value 0.1
would result in 1.3
.
When false
, a value of 1.24
with change value 0.1
would result in 1.34
.
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public float DefaultValue { get; set; }
Property Value
- float:
The value to set when incrementing/decrementing from a null value. The default value is
0
.
Format
Gets or sets the number format string.
public string Format { get; set; }
Property Value
- string:
The number format string. The default value is
"G"
.
IsNaNAllowed
Gets or sets whether NaN is accepted as a value.
public bool IsNaNAllowed { get; set; }
Property Value
IsNegativeInfinityAllowed
Gets or sets whether NegativeInfinity is accepted as a value.
public bool IsNegativeInfinityAllowed { get; set; }
Property Value
- bool:
true
if NegativeInfinity is accepted as a value; otherwise,false
. The default value isfalse
.
IsPositiveInfinityAllowed
Gets or sets whether PositiveInfinity is accepted as a value.
public bool IsPositiveInfinityAllowed { get; set; }
Property Value
- bool:
true
if PositiveInfinity is accepted as a value; otherwise,false
. The default value isfalse
.
LargeChange
Gets or sets the large change value.
public float LargeChange { get; set; }
Property Value
- float:
The large change value. The default value is
5
.
Maximum
Gets or sets the highest possible value.
Minimum
Gets or sets the lowest possible value.
PickerKind
Gets or sets a SingleEditBoxPickerKind indicating the pre-defined Style
to apply to the picker used within the popup.
public SingleEditBoxPickerKind PickerKind { get; set; }
Property Value
- SingleEditBoxPickerKind:
A SingleEditBoxPickerKind indicating the pre-defined
Style
to apply to the picker used within the popup. The default value isCalculator
in WPF andDefault
in UWP.
PredefinedValueTemplateKey
Gets the resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
protected override object PredefinedValueTemplateKey { get; }
Property Value
- object:
The resource key that references a pre-defined DataTemplate within internal resources to use for editing the property value.
RoundingDecimalPlace
Gets or sets the rounding decimal place.
public int? RoundingDecimalPlace { get; set; }
Property Value
- int?:
The rounding decimal place, which is a value between
0
and7
. Pass a null value to disable rounding. The default value is7
.
SmallChange
Gets or sets the small change value.
public float SmallChange { get; set; }
Property Value
- float:
The small change value. The default value is
1
.
Inherited Members
- PartEditBoxPropertyEditorBase.BorderThickness
- PartEditBoxPropertyEditorBase.CommitTriggers
- PartEditBoxPropertyEditorBase.HasPopup
- PartEditBoxPropertyEditorBase.IsArrowKeyPartNavigationEnabled
- PartEditBoxPropertyEditorBase.IsEditable
- PartEditBoxPropertyEditorBase.IsNullAllowed
- PartEditBoxPropertyEditorBase.IsUndoEnabled
- PartEditBoxPropertyEditorBase.PlaceholderText
- PartEditBoxPropertyEditorBase.SpinnerVisibility
- PartEditBoxPropertyEditorBase.SpinWrapping
- PartEditBoxPropertyEditorBase.TextAlignment
- PropertyEditorBase.CreateValueTemplate()
- PropertyEditorBase.ValueTemplate
- PropertyEditor.GetIsReadOnly(IPropertyModel)
- PropertyEditor.NameTemplate
- PropertyEditor.NameTemplateKey
- PropertyEditor.NameTemplateSelector
- PropertyEditor.ObjectType
- PropertyEditor.PropertyName
- PropertyEditor.PropertyType
- PropertyEditor.ValueTemplateKey
- PropertyEditor.ValueTemplateKind
- PropertyEditor.ValueTemplateSelector
- ObservableObjectBase.NotifyPropertyChanged(string)
- ObservableObjectBase.OnPropertyChanged(PropertyChangedEventArgs)
- ObservableObjectBase.SetProperty<T>(ref T, T, string)
- ObservableObjectBase.PropertyChanged
- object.GetType()
- object.MemberwiseClone()
- object.ToString()
- object.Equals(object)
- object.Equals(object, object)
- object.ReferenceEquals(object, object)
- object.GetHashCode()