Represents an Byte
edit box.
- Inheritance:
-
object
Visual
UIElement
Framework
Element Control PartEdit <byte?> objectBox Base
Constructors
ByteEditBox()
Initializes an instance of the ByteEditBox
class.
Properties
CalculatorPopupPickerStyle
Gets or sets the popup picker Style that uses a Calculator control.
Property Value
- Style:
The Style that uses a Calculator control.
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
Property Value
- byte:
The value to set when incrementing/decrementing from a null value. The default value is
0
.
Format
Gets or sets the number format string.
Property Value
- string:
The number format string. The default value is
"D"
.
LargeChange
Gets or sets the large change value.
Property Value
- byte:
The large change value. The default value is
5
.
Maximum
Gets or sets the highest possible value.
Property Value
- byte:
The highest possible value.
Minimum
Gets or sets the lowest possible value.
Property Value
- byte:
The lowest possible value.
PickerKind
Gets or sets an ByteStyle
to apply to the picker used within the popup.
Property Value
- Byte
Edit :Box Picker Kind An Byte
Edit indicating the pre-definedBox Picker Kind Style
to apply to the picker used within the popup. The default value isCalculator
in WPF andDefault
in UWP.
ResolvedFormat
Gets the resolved number format string.
Property Value
- string:
The resolved number format string.
SmallChange
Gets or sets the small change value.
Property Value
- byte:
The small change value. The default value is
1
.
Methods
CoerceValidValue(byte?)
Coerces the value to be within range.
ConvertToString(byte?)
Converts the specified value to a string representation.
Parameter | Type | Description |
---|---|---|
valueToConvert | byte? | The value. |
Returns
- string:
The string representation of the specified value.
CreateIncrementalChangeRequest(IncrementalChangeRequestKind)
Creates an incremental change (spin) request.
Parameter | Type | Description |
---|---|---|
kind | Incremental |
The kind of request. |
Returns
- Incremental
Change <byte?>:Request The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
IsValidValue(byte?)
Returns whether the specified value is valid.
Parameter | Type | Description |
---|---|---|
value | byte? | The value to examine. |
Returns
- bool:
true
if the value is valid; otherwise,false
.
RaiseValueChangedEvent()
Raises the Value
ResetValue()
Resets the value to a default value.
TryConvertFromString(string, bool, out byte?)
Tries to convert the specified text to a value.
Parameter | Type | Description |
---|---|---|
textToConvert | string | The text. |
canCoerce | bool | Whether the returned value should be coerced to fall within the allowed value range. |
value | byte? | Returns the value for the specified text. |
Returns
- bool:
true
if the text was converted to a value successfully; otherwise,false
.
Events
ValueChanged
Occurs after the Value
property value changes.
Event Type
Fields
CalculatorPopupPickerStyleProperty
Identifies the Calculator
DefaultValueProperty
Identifies the Default
FormatProperty
Identifies the Format dependency property. This field is read-only.
LargeChangeProperty
Identifies the Large
MaximumProperty
Identifies the Maximum dependency property. This field is read-only.
MinimumProperty
Identifies the Minimum dependency property. This field is read-only.
PickerKindProperty
Identifies the Picker
ResolvedFormatProperty
Identifies the Resolved
SmallChangeProperty
Identifies the Small
Inherited Members
- PartEditBoxBase<byte?>.ActivePartIndexProperty
- PartEditBoxBase<byte?>.CommitTriggersProperty
- PartEditBoxBase<byte?>.HasPopupProperty
- PartEditBoxBase<byte?>.InlinesProperty
- PartEditBoxBase<byte?>.InputScopeNameValueProperty
- PartEditBoxBase<byte?>.IntermediateValueProperty
- PartEditBoxBase<byte?>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<byte?>.IsEditableProperty
- PartEditBoxBase<byte?>.IsNullAllowedProperty
- PartEditBoxBase<byte?>.IsPopupButtonVisibleProperty
- PartEditBoxBase<byte?>.IsPopupOpenProperty
- PartEditBoxBase<byte?>.IsReadOnlyProperty
- PartEditBoxBase<byte?>.IsSpinnerVisibleProperty
- PartEditBoxBase<byte?>.IsUndoEnabledProperty
- PartEditBoxBase<byte?>.PlaceholderTextProperty
- PartEditBoxBase<byte?>.PopupBackgroundProperty
- PartEditBoxBase<byte?>.PopupBorderBrushProperty
- PartEditBoxBase<byte?>.PopupPickerStyleProperty
- PartEditBoxBase<byte?>.SpinWrappingProperty
- PartEditBoxBase<byte?>.TextAlignmentProperty
- PartEditBoxBase<byte?>.ValueProperty
- PartEditBoxBase<byte?>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<byte?>.SpinnerVisibilityProperty
- PartEditBoxBase<byte?>.UsageContextProperty
- PartEditBoxBase<byte?>.Commit()
- PartEditBoxBase<byte?>.Commit(bool)
- PartEditBoxBase<byte?>.InvalidateParts()
- PartEditBoxBase<byte?>.OnApplyTemplate()
- PartEditBoxBase<byte?>.OnCreateAutomationPeer()
- PartEditBoxBase<byte?>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<byte?>.OnIntermediateValueChanged(byte?, byte?)
- PartEditBoxBase<byte?>.OnIsNullAllowedChanged(bool, bool)
- PartEditBoxBase<byte?>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<byte?>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<byte?>.OnPopupOpened()
- PartEditBoxBase<byte?>.OnValueChanged(byte?, byte?)
- PartEditBoxBase<byte?>.ProcessTextInput(string)
- PartEditBoxBase<byte?>.SelectAll()
- PartEditBoxBase<byte?>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<byte?>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<byte?>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<byte?>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<byte?>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<byte?>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<byte?>.ActivePartIndex
- PartEditBoxBase<byte?>.CommitTriggers
- PartEditBoxBase<byte?>.CurrentSelectionLength
- PartEditBoxBase<byte?>.CurrentSelectionStartOffset
- PartEditBoxBase<byte?>.CurrentText
- PartEditBoxBase<byte?>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<byte?>.HasPopup
- PartEditBoxBase<byte?>.Inlines
- PartEditBoxBase<byte?>.InputScopeNameValue
- PartEditBoxBase<byte?>.IntermediateValue
- PartEditBoxBase<byte?>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<byte?>.IsEditable
- PartEditBoxBase<byte?>.IsNullAllowed
- PartEditBoxBase<byte?>.IsPopupButtonVisible
- PartEditBoxBase<byte?>.IsPopupOpen
- PartEditBoxBase<byte?>.IsReadOnly
- PartEditBoxBase<byte?>.IsSpinnerVisible
- PartEditBoxBase<byte?>.IsUndoEnabled
- PartEditBoxBase<byte?>.Parts
- PartEditBoxBase<byte?>.PlaceholderText
- PartEditBoxBase<byte?>.PopupBackground
- PartEditBoxBase<byte?>.PopupBorderBrush
- PartEditBoxBase<byte?>.PopupPickerStyle
- PartEditBoxBase<byte?>.ResetValueCommand
- PartEditBoxBase<byte?>.SmallDecrementValueCommand
- PartEditBoxBase<byte?>.SmallIncrementValueCommand
- PartEditBoxBase<byte?>.SpinWrapping
- PartEditBoxBase<byte?>.TextAlignment
- PartEditBoxBase<byte?>.Value
- PartEditBoxBase<byte?>.IsNonDefaultUsageContext
- PartEditBoxBase<byte?>.SpinnerVisibility
- PartEditBoxBase<byte?>.UsageContext