CornerRadiusEditBox Class
Represents a CornerRadius
edit box.
public class CornerRadiusEditBox : PartEditBoxBase<CornerRadius?>, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- System.Object System.Windows.Threading.DispatcherObject System.Windows.DependencyObject System.Windows.Media.Visual System.Windows.UIElement System.Windows.FrameworkElement System.Windows.Controls.Control PartEditBoxBase<System.Nullable<System.Windows.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
- System.Windows.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
- System.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
- System.Boolean:
true
if NaN is accepted as a component value; otherwise,false
. The default value isfalse
.
IsNegativeInfinityAllowed
Gets or sets whether NegativeInfinity is accepted as a component value.
public bool IsNegativeInfinityAllowed { get; set; }
Property Value
- System.Boolean:
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
- System.Boolean:
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
- System.Windows.CornerRadius:
The large change value. The default value is
5.0
.
Maximum
Gets or sets the highest possible value.
public CornerRadius Maximum { get; set; }
Property Value
- System.Windows.CornerRadius:
The highest possible value.
Minimum
Gets or sets the lowest possible value.
public CornerRadius Minimum { get; set; }
Property Value
- System.Windows.CornerRadius:
The lowest possible value.
ResolvedFormat
Gets the resolved number format string.
public string ResolvedFormat { get; }
Property Value
- System.String:
The resolved number format string.
RoundingDecimalPlace
Gets or sets the rounding decimal place.
public int? RoundingDecimalPlace { get; set; }
Property Value
- System.Nullable<System.Int32>:
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
- System.Windows.CornerRadius:
The small change value. The default value is
1.0
.
Methods
CoerceValidValue(Nullable<CornerRadius>)
Coerces the value to be within range.
protected override CornerRadius? CoerceValidValue(CornerRadius? value)
Parameter | Type | Description |
---|---|---|
value | System.Nullable<System.Windows.CornerRadius> | The value to coerce. |
Returns
- System.Nullable<System.Windows.CornerRadius>:
The coerced value.
ConvertToString(Nullable<CornerRadius>)
Converts the specified value to a string representation.
protected override string ConvertToString(CornerRadius? valueToConvert)
Parameter | Type | Description |
---|---|---|
valueToConvert | System.Nullable<System.Windows.CornerRadius> | The value. |
Returns
- System.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<System.Nullable<System.Windows.CornerRadius>>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
- System.Collections.Generic.IList<IPart>:
The parts that were generated.
IsValidValue(Nullable<CornerRadius>)
Returns whether the specified value is valid.
protected override bool IsValidValue(CornerRadius? value)
Parameter | Type | Description |
---|---|---|
value | System.Nullable<System.Windows.CornerRadius> | The value to examine. |
Returns
- System.Boolean:
true
if the value is valid; otherwise,false
.
ProcessTextInput(String)
Processes typed text.
protected override bool ProcessTextInput(string text)
Parameter | Type | Description |
---|---|---|
text | System.String | The typed text. |
Returns
- System.Boolean:
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, Boolean, out Nullable<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 | System.String | The text. |
canCoerce | System.Boolean | Whether the returned value should be coerced to fall within the allowed value range. |
value | System.Nullable<System.Windows.CornerRadius> | Returns the value for the specified text. |
Returns
- System.Boolean:
true
if the text was converted to a value successfully; otherwise,false
.
Events
ValueChanged
Occurs after the Value
property value changes.
public event EventHandler ValueChanged
Event Type
- System.EventHandler
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<Nullable<CornerRadius>>.ActivePartIndexProperty
- PartEditBoxBase<Nullable<CornerRadius>>.CommitTriggersProperty
- PartEditBoxBase<Nullable<CornerRadius>>.HasPopupProperty
- PartEditBoxBase<Nullable<CornerRadius>>.InlinesProperty
- PartEditBoxBase<Nullable<CornerRadius>>.InputScopeNameValueProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IntermediateValueProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsEditableProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsNullAllowedProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsPopupButtonVisibleProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsPopupOpenProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsReadOnlyProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsSpinnerVisibleProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsUndoEnabledProperty
- PartEditBoxBase<Nullable<CornerRadius>>.PlaceholderTextProperty
- PartEditBoxBase<Nullable<CornerRadius>>.PopupBackgroundProperty
- PartEditBoxBase<Nullable<CornerRadius>>.PopupBorderBrushProperty
- PartEditBoxBase<Nullable<CornerRadius>>.PopupPickerStyleProperty
- PartEditBoxBase<Nullable<CornerRadius>>.SpinWrappingProperty
- PartEditBoxBase<Nullable<CornerRadius>>.TextAlignmentProperty
- PartEditBoxBase<Nullable<CornerRadius>>.ValueProperty
- PartEditBoxBase<Nullable<CornerRadius>>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<Nullable<CornerRadius>>.SpinnerVisibilityProperty
- PartEditBoxBase<Nullable<CornerRadius>>.UsageContextProperty
- PartEditBoxBase<Nullable<CornerRadius>>.Commit()
- PartEditBoxBase<Nullable<CornerRadius>>.Commit(Boolean)
- PartEditBoxBase<Nullable<CornerRadius>>.InvalidateParts()
- PartEditBoxBase<Nullable<CornerRadius>>.OnApplyTemplate()
- PartEditBoxBase<Nullable<CornerRadius>>.OnCreateAutomationPeer()
- PartEditBoxBase<Nullable<CornerRadius>>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnIntermediateValueChanged(Nullable<CornerRadius>, Nullable<CornerRadius>)
- PartEditBoxBase<Nullable<CornerRadius>>.OnIsNullAllowedChanged(Boolean, Boolean)
- PartEditBoxBase<Nullable<CornerRadius>>.OnKeyDown(KeyEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnPopupOpened()
- PartEditBoxBase<Nullable<CornerRadius>>.OnValueChanged(Nullable<CornerRadius>, Nullable<CornerRadius>)
- PartEditBoxBase<Nullable<CornerRadius>>.SelectAll()
- PartEditBoxBase<Nullable<CornerRadius>>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<Nullable<CornerRadius>>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<Nullable<CornerRadius>>.ActivePartIndex
- PartEditBoxBase<Nullable<CornerRadius>>.CommitTriggers
- PartEditBoxBase<Nullable<CornerRadius>>.CurrentSelectionLength
- PartEditBoxBase<Nullable<CornerRadius>>.CurrentSelectionStartOffset
- PartEditBoxBase<Nullable<CornerRadius>>.CurrentText
- PartEditBoxBase<Nullable<CornerRadius>>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<Nullable<CornerRadius>>.HasPopup
- PartEditBoxBase<Nullable<CornerRadius>>.Inlines
- PartEditBoxBase<Nullable<CornerRadius>>.InputScopeNameValue
- PartEditBoxBase<Nullable<CornerRadius>>.IntermediateValue
- PartEditBoxBase<Nullable<CornerRadius>>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<Nullable<CornerRadius>>.IsEditable
- PartEditBoxBase<Nullable<CornerRadius>>.IsNullAllowed
- PartEditBoxBase<Nullable<CornerRadius>>.IsPopupButtonVisible
- PartEditBoxBase<Nullable<CornerRadius>>.IsPopupOpen
- PartEditBoxBase<Nullable<CornerRadius>>.IsReadOnly
- PartEditBoxBase<Nullable<CornerRadius>>.IsSpinnerVisible
- PartEditBoxBase<Nullable<CornerRadius>>.IsUndoEnabled
- PartEditBoxBase<Nullable<CornerRadius>>.Parts
- PartEditBoxBase<Nullable<CornerRadius>>.PlaceholderText
- PartEditBoxBase<Nullable<CornerRadius>>.PopupBackground
- PartEditBoxBase<Nullable<CornerRadius>>.PopupBorderBrush
- PartEditBoxBase<Nullable<CornerRadius>>.PopupPickerStyle
- PartEditBoxBase<Nullable<CornerRadius>>.ResetValueCommand
- PartEditBoxBase<Nullable<CornerRadius>>.SmallDecrementValueCommand
- PartEditBoxBase<Nullable<CornerRadius>>.SmallIncrementValueCommand
- PartEditBoxBase<Nullable<CornerRadius>>.SpinWrapping
- PartEditBoxBase<Nullable<CornerRadius>>.TextAlignment
- PartEditBoxBase<Nullable<CornerRadius>>.Value
- PartEditBoxBase<Nullable<CornerRadius>>.IsNonDefaultUsageContext
- PartEditBoxBase<Nullable<CornerRadius>>.SpinnerVisibility
- PartEditBoxBase<Nullable<CornerRadius>>.UsageContext
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()
Extension Methods
- FrameworkElementExtensions.AnimateDoubleProperty(String, Double, Double, Double, Nullable<Double>, Nullable<Double>)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, String, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.BindToProperty(DependencyProperty, Object, DependencyProperty, BindingMode, IValueConverter, Object)
- FrameworkElementExtensions.GetCurrentSize()