FloatingPointNumberPartEditBoxBase<T> Class
Represents the abstract base class for a part-based edit box for floating point numeric values.
public abstract class FloatingPointNumberPartEditBoxBase<T> : NumberPartEditBoxBase<T> where T : struct, IFloatingPoint<T>, IMinMaxValue<T>
- Type Parameters:
-
T-The numeric type to be edited.
- Inheritance:
- object Visual UIElement FrameworkElement Control PartEditBoxBase<T?> NumberPartEditBoxBase<T> object
Constructors
FloatingPointNumberPartEditBoxBase()
Initializes an instance of the class.
protected FloatingPointNumberPartEditBoxBase()
Properties
CanSnapToChangePrecision
Indicates 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:
trueif 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.
Format
The number format string.
public string Format { get; set; }
Property Value
- string:
The default value is
"G".
Remarks
This value can be defined as a numeric (e.g., "D") or composite (e.g., "{0:D}") format string.
RoundingDecimalPlace
The rounding decimal place, which is a value between 0 and 15.
public int? RoundingDecimalPlace { get; set; }
Property Value
- int?:
When
nullor negative, rounding will be disabled. The default value is8.
Methods
CreateIncrementalChangeRequest(IncrementalChangeRequestKind)
Creates an incremental change (spin) request.
protected override IncrementalChangeRequest<T?> CreateIncrementalChangeRequest(IncrementalChangeRequestKind kind)
| Parameter | Type | Description |
|---|---|---|
| kind | IncrementalChangeRequestKind | The kind of request. |
Returns
- IncrementalChangeRequest<T?>:
The incremental change (spin) request that was created.
Fields
CanSnapToChangePrecisionProperty
Defines the CanSnapToChangePrecision property.
public static readonly DependencyProperty CanSnapToChangePrecisionProperty
RoundingDecimalPlaceProperty
Defines the RoundingDecimalPlace property.
public static readonly DependencyProperty RoundingDecimalPlaceProperty
Inherited Members
- NumberPartEditBoxBase<T>.CalculatorPopupPickerStyleProperty
- NumberPartEditBoxBase<T>.DefaultValueProperty
- NumberPartEditBoxBase<T>.FormatProperty
- NumberPartEditBoxBase<T>.LargeChangeProperty
- NumberPartEditBoxBase<T>.MaximumProperty
- NumberPartEditBoxBase<T>.MinimumProperty
- NumberPartEditBoxBase<T>.ResolvedFormatProperty
- NumberPartEditBoxBase<T>.SmallChangeProperty
- NumberPartEditBoxBase<T>.CoerceValidValue(T?)
- NumberPartEditBoxBase<T>.ConvertToString(T?)
- NumberPartEditBoxBase<T>.GenerateParts()
- NumberPartEditBoxBase<T>.IsValidValue(T?)
- NumberPartEditBoxBase<T>.ResetValue()
- NumberPartEditBoxBase<T>.CalculatorPopupPickerStyle
- NumberPartEditBoxBase<T>.DefaultValue
- NumberPartEditBoxBase<T>.LargeChange
- NumberPartEditBoxBase<T>.Maximum
- NumberPartEditBoxBase<T>.Minimum
- NumberPartEditBoxBase<T>.ResolvedFormat
- NumberPartEditBoxBase<T>.SmallChange
- PartEditBoxBase<T?>.ActivePartIndexProperty
- PartEditBoxBase<T?>.CommitTriggersProperty
- PartEditBoxBase<T?>.HasPopupProperty
- PartEditBoxBase<T?>.InlinesProperty
- PartEditBoxBase<T?>.InputScopeNameValueProperty
- PartEditBoxBase<T?>.IntermediateValueProperty
- PartEditBoxBase<T?>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<T?>.IsEditableProperty
- PartEditBoxBase<T?>.IsInputFilteringEnabledProperty
- PartEditBoxBase<T?>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<T?>.IsNullAllowedProperty
- PartEditBoxBase<T?>.IsPopupButtonVisibleProperty
- PartEditBoxBase<T?>.IsPopupOpenProperty
- PartEditBoxBase<T?>.IsReadOnlyProperty
- PartEditBoxBase<T?>.IsSpinnerVisibleProperty
- PartEditBoxBase<T?>.IsUndoEnabledProperty
- PartEditBoxBase<T?>.PlaceholderTextProperty
- PartEditBoxBase<T?>.PopupBackgroundProperty
- PartEditBoxBase<T?>.PopupBorderBrushProperty
- PartEditBoxBase<T?>.PopupPickerStyleProperty
- PartEditBoxBase<T?>.SpinnerVisibilityProperty
- PartEditBoxBase<T?>.SpinWrappingProperty
- PartEditBoxBase<T?>.TextAlignmentProperty
- PartEditBoxBase<T?>.UsageContextProperty
- PartEditBoxBase<T?>.ValueProperty
- PartEditBoxBase<T?>.Commit()
- PartEditBoxBase<T?>.Commit(bool)
- PartEditBoxBase<T?>.InvalidateParts()
- PartEditBoxBase<T?>.IsTextInputAllowed(string)
- PartEditBoxBase<T?>.OnApplyTemplate()
- PartEditBoxBase<T?>.OnCreateAutomationPeer()
- PartEditBoxBase<T?>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<T?>.OnIntermediateValueChanged(T?, T?)
- PartEditBoxBase<T?>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<T?>.OnIsNullAllowedChanged(bool, bool)
- PartEditBoxBase<T?>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<T?>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<T?>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<T?>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<T?>.OnPopupOpened()
- PartEditBoxBase<T?>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<T?>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<T?>.OnValueChanged(T?, T?)
- PartEditBoxBase<T?>.ProcessTextInput(string)
- PartEditBoxBase<T?>.SelectAll()
- PartEditBoxBase<T?>.TryConvertFromString(string, bool, out T?)
- PartEditBoxBase<T?>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<T?>.ActivePartIndex
- PartEditBoxBase<T?>.CommitTriggers
- PartEditBoxBase<T?>.CurrentSelectionLength
- PartEditBoxBase<T?>.CurrentSelectionStartOffset
- PartEditBoxBase<T?>.CurrentText
- PartEditBoxBase<T?>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<T?>.HasPopup
- PartEditBoxBase<T?>.Inlines
- PartEditBoxBase<T?>.InputScopeNameValue
- PartEditBoxBase<T?>.IntermediateValue
- PartEditBoxBase<T?>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<T?>.IsEditable
- PartEditBoxBase<T?>.IsInputFilteringEnabled
- PartEditBoxBase<T?>.IsNonDefaultUsageContext
- PartEditBoxBase<T?>.IsNullAllowed
- PartEditBoxBase<T?>.IsPopupButtonVisible
- PartEditBoxBase<T?>.IsPopupOpen
- PartEditBoxBase<T?>.IsReadOnly
- PartEditBoxBase<T?>.IsSpinnerVisible
- PartEditBoxBase<T?>.IsUndoEnabled
- PartEditBoxBase<T?>.Parts
- PartEditBoxBase<T?>.PlaceholderText
- PartEditBoxBase<T?>.PopupBackground
- PartEditBoxBase<T?>.PopupBorderBrush
- PartEditBoxBase<T?>.PopupPickerStyle
- PartEditBoxBase<T?>.ResetValueCommand
- PartEditBoxBase<T?>.SmallDecrementValueCommand
- PartEditBoxBase<T?>.SmallIncrementValueCommand
- PartEditBoxBase<T?>.SpinnerVisibility
- PartEditBoxBase<T?>.SpinWrapping
- PartEditBoxBase<T?>.TextAlignment
- PartEditBoxBase<T?>.UsageContext
- PartEditBoxBase<T?>.Value
- PartEditBoxBase<T?>.ValueChanged