CornerRadiusEditBox Class
Represents a CornerRadius
edit box.
public class CornerRadiusEditBox : PartEditBoxBase<CornerRadius?>
- Inheritance:
- object Visual UIElement FrameworkElement Control PartEditBoxBase<CornerRadius?> object
Constructors
CornerRadiusEditBox()
Initializes an instance of the CornerRadiusEditBox
class.
public CornerRadiusEditBox()
Properties
DefaultValue
Gets or sets the value to set when incrementing/decrementing from a null value.
public CornerRadius DefaultValue { get; set; }
Property Value
- CornerRadius:
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 component value.
public bool IsNaNAllowed { get; set; }
Property Value
IsNegativeInfinityAllowed
Gets or sets whether NegativeInfinity is accepted as a component value.
public bool IsNegativeInfinityAllowed { get; set; }
Property Value
- bool:
true
if NegativeInfinity is accepted as a component value; otherwise,false
. The default value isfalse
.
IsPositiveInfinityAllowed
Gets or sets whether PositiveInfinity is accepted as a component value.
public bool IsPositiveInfinityAllowed { get; set; }
Property Value
- bool:
true
if PositiveInfinity is accepted as a component value; otherwise,false
. The default value isfalse
.
LargeChange
Gets or sets the large change value.
public CornerRadius LargeChange { get; set; }
Property Value
- CornerRadius:
The large change value. The default value is
5.0
.
Maximum
Gets or sets the highest possible value.
Minimum
Gets or sets the lowest possible value.
ResolvedFormat
Gets the resolved number format string.
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
and15
. Pass a null value to disable rounding. The default value is8
.
SmallChange
Gets or sets the small change value.
public CornerRadius SmallChange { get; set; }
Property Value
- CornerRadius:
The small change value. The default value is
1.0
.
Methods
CoerceValidValue(CornerRadius?)
Coerces the value to be within range.
protected override CornerRadius? CoerceValidValue(CornerRadius? value)
Parameter | Type | Description |
---|---|---|
value | CornerRadius? | The value to coerce. |
Returns
- CornerRadius?:
The coerced value.
ConvertToString(CornerRadius?)
Converts the specified value to a string representation.
protected override string ConvertToString(CornerRadius? valueToConvert)
Parameter | Type | Description |
---|---|---|
valueToConvert | CornerRadius? | The value. |
Returns
- string:
The string representation of the specified value.
CreateIncrementalChangeRequest(IncrementalChangeRequestKind)
Creates an incremental change (spin) request.
protected override IncrementalChangeRequest<CornerRadius?> CreateIncrementalChangeRequest(IncrementalChangeRequestKind kind)
Parameter | Type | Description |
---|---|---|
kind | IncrementalChangeRequestKind | The kind of request. |
Returns
- IncrementalChangeRequest<CornerRadius?>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
IsValidValue(CornerRadius?)
Returns whether the specified value is valid.
protected override bool IsValidValue(CornerRadius? value)
Parameter | Type | Description |
---|---|---|
value | CornerRadius? | The value to examine. |
Returns
- bool:
true
if the value is valid; otherwise,false
.
ProcessTextInput(string)
Processes typed text.
protected override bool ProcessTextInput(string text)
Parameter | Type | Description |
---|---|---|
text | string | The typed text. |
Returns
- bool:
true
if the typed text was handled and should not be allowed to be entered; otherwise,false
.
RaiseValueChangedEvent()
Raises the ValueChanged event.
protected override void RaiseValueChangedEvent()
ResetValue()
Resets the value to a default value.
protected override void ResetValue()
TryConvertFromString(string, bool, out CornerRadius?)
Tries to convert the specified text to a value.
protected override bool TryConvertFromString(string textToConvert, bool canCoerce, out CornerRadius? 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 | CornerRadius? | 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.
Fields
DefaultValueProperty
Identifies the DefaultValue dependency property. This field is read-only.
public static readonly DependencyProperty DefaultValueProperty
FormatProperty
Identifies the Format dependency property. This field is read-only.
public static readonly DependencyProperty FormatProperty
IsNaNAllowedProperty
Identifies the IsNaNAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsNaNAllowedProperty
IsNegativeInfinityAllowedProperty
Identifies the IsNegativeInfinityAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsNegativeInfinityAllowedProperty
IsPositiveInfinityAllowedProperty
Identifies the IsPositiveInfinityAllowed dependency property. This field is read-only.
public static readonly DependencyProperty IsPositiveInfinityAllowedProperty
LargeChangeProperty
Identifies the LargeChange dependency property. This field is read-only.
public static readonly DependencyProperty LargeChangeProperty
MaximumProperty
Identifies the Maximum dependency property. This field is read-only.
public static readonly DependencyProperty MaximumProperty
MinimumProperty
Identifies the Minimum dependency property. This field is read-only.
public static readonly DependencyProperty MinimumProperty
ResolvedFormatProperty
Identifies the ResolvedFormat dependency property. This field is read-only.
public static readonly DependencyProperty ResolvedFormatProperty
RoundingDecimalPlaceProperty
Identifies the RoundingDecimalPlace dependency property. This field is read-only.
public static readonly DependencyProperty RoundingDecimalPlaceProperty
SmallChangeProperty
Identifies the SmallChange dependency property. This field is read-only.
public static readonly DependencyProperty SmallChangeProperty
Inherited Members
- PartEditBoxBase<CornerRadius?>.ActivePartIndexProperty
- PartEditBoxBase<CornerRadius?>.CommitTriggersProperty
- PartEditBoxBase<CornerRadius?>.HasPopupProperty
- PartEditBoxBase<CornerRadius?>.InlinesProperty
- PartEditBoxBase<CornerRadius?>.InputScopeNameValueProperty
- PartEditBoxBase<CornerRadius?>.IntermediateValueProperty
- PartEditBoxBase<CornerRadius?>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<CornerRadius?>.IsEditableProperty
- PartEditBoxBase<CornerRadius?>.IsNullAllowedProperty
- PartEditBoxBase<CornerRadius?>.IsPopupButtonVisibleProperty
- PartEditBoxBase<CornerRadius?>.IsPopupOpenProperty
- PartEditBoxBase<CornerRadius?>.IsReadOnlyProperty
- PartEditBoxBase<CornerRadius?>.IsSpinnerVisibleProperty
- PartEditBoxBase<CornerRadius?>.IsUndoEnabledProperty
- PartEditBoxBase<CornerRadius?>.PlaceholderTextProperty
- PartEditBoxBase<CornerRadius?>.PopupBackgroundProperty
- PartEditBoxBase<CornerRadius?>.PopupBorderBrushProperty
- PartEditBoxBase<CornerRadius?>.PopupPickerStyleProperty
- PartEditBoxBase<CornerRadius?>.SpinWrappingProperty
- PartEditBoxBase<CornerRadius?>.TextAlignmentProperty
- PartEditBoxBase<CornerRadius?>.ValueProperty
- PartEditBoxBase<CornerRadius?>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<CornerRadius?>.SpinnerVisibilityProperty
- PartEditBoxBase<CornerRadius?>.UsageContextProperty
- PartEditBoxBase<CornerRadius?>.Commit()
- PartEditBoxBase<CornerRadius?>.Commit(bool)
- PartEditBoxBase<CornerRadius?>.InvalidateParts()
- PartEditBoxBase<CornerRadius?>.OnApplyTemplate()
- PartEditBoxBase<CornerRadius?>.OnCreateAutomationPeer()
- PartEditBoxBase<CornerRadius?>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<CornerRadius?>.OnIntermediateValueChanged(CornerRadius?, CornerRadius?)
- PartEditBoxBase<CornerRadius?>.OnIsNullAllowedChanged(bool, bool)
- PartEditBoxBase<CornerRadius?>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<CornerRadius?>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<CornerRadius?>.OnPopupOpened()
- PartEditBoxBase<CornerRadius?>.OnValueChanged(CornerRadius?, CornerRadius?)
- PartEditBoxBase<CornerRadius?>.SelectAll()
- PartEditBoxBase<CornerRadius?>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<CornerRadius?>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<CornerRadius?>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<CornerRadius?>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<CornerRadius?>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<CornerRadius?>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<CornerRadius?>.ActivePartIndex
- PartEditBoxBase<CornerRadius?>.CommitTriggers
- PartEditBoxBase<CornerRadius?>.CurrentSelectionLength
- PartEditBoxBase<CornerRadius?>.CurrentSelectionStartOffset
- PartEditBoxBase<CornerRadius?>.CurrentText
- PartEditBoxBase<CornerRadius?>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<CornerRadius?>.HasPopup
- PartEditBoxBase<CornerRadius?>.Inlines
- PartEditBoxBase<CornerRadius?>.InputScopeNameValue
- PartEditBoxBase<CornerRadius?>.IntermediateValue
- PartEditBoxBase<CornerRadius?>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<CornerRadius?>.IsEditable
- PartEditBoxBase<CornerRadius?>.IsNullAllowed
- PartEditBoxBase<CornerRadius?>.IsPopupButtonVisible
- PartEditBoxBase<CornerRadius?>.IsPopupOpen
- PartEditBoxBase<CornerRadius?>.IsReadOnly
- PartEditBoxBase<CornerRadius?>.IsSpinnerVisible
- PartEditBoxBase<CornerRadius?>.IsUndoEnabled
- PartEditBoxBase<CornerRadius?>.Parts
- PartEditBoxBase<CornerRadius?>.PlaceholderText
- PartEditBoxBase<CornerRadius?>.PopupBackground
- PartEditBoxBase<CornerRadius?>.PopupBorderBrush
- PartEditBoxBase<CornerRadius?>.PopupPickerStyle
- PartEditBoxBase<CornerRadius?>.ResetValueCommand
- PartEditBoxBase<CornerRadius?>.SmallDecrementValueCommand
- PartEditBoxBase<CornerRadius?>.SmallIncrementValueCommand
- PartEditBoxBase<CornerRadius?>.SpinWrapping
- PartEditBoxBase<CornerRadius?>.TextAlignment
- PartEditBoxBase<CornerRadius?>.Value
- PartEditBoxBase<CornerRadius?>.IsNonDefaultUsageContext
- PartEditBoxBase<CornerRadius?>.SpinnerVisibility
- PartEditBoxBase<CornerRadius?>.UsageContext