GuidEditBox Class
Represents an Guid edit box.
public class GuidEditBox : PartEditBoxBase<Guid?>
- Inheritance:
- object Visual UIElement FrameworkElement Control PartEditBoxBase<Guid?> object
Constructors
GuidEditBox()
Initializes an instance of the class.
public GuidEditBox()
Properties
Format
The GUID format string.
NewGuidButtonToolTip
The tooltip for the new GUID button.
NewGuidCommand
The ICommand that can be used to generate a new GUID.
ResolvedFormat
The resolved GUID format string.
Methods
ConvertToString(Guid?)
Converts the specified value to a string representation.
protected override string ConvertToString(Guid? valueToConvert)
| Parameter | Type | Description |
|---|---|---|
| valueToConvert | Guid? | The value. |
Returns
- string:
The string representation of the specified value.
CreateIncrementalChangeRequest(IncrementalChangeRequestKind)
Creates an incremental change (spin) request.
protected override IncrementalChangeRequest<Guid?> CreateIncrementalChangeRequest(IncrementalChangeRequestKind kind)
| Parameter | Type | Description |
|---|---|---|
| kind | IncrementalChangeRequestKind | The kind of request. |
Returns
- IncrementalChangeRequest<Guid?>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
IsValidValue(Guid?)
Tests whether the specified value is valid.
protected override bool IsValidValue(Guid? value)
| Parameter | Type | Description |
|---|---|---|
| value | Guid? | The value to examine. |
Returns
- bool:
trueif the value is valid; otherwise,false.
OnKeyDown(KeyEventArgs)
Invoked when an unhandled System.Windows.Input.Keyboard.KeyDown attached event reaches an element in its route that is derived from this class. Implement this method to add class handling for this event.
protected override void OnKeyDown(KeyEventArgs e)
| Parameter | Type | Description |
|---|---|---|
| e | KeyEventArgs | The KeyEventArgs that contains the event data. |
ResetValue()
Resets the value to a default value.
protected override void ResetValue()
TryConvertFromString(string?, bool, out Guid?)
Tries to convert the specified text to a value.
protected override bool TryConvertFromString(string? textToConvert, bool canCoerce, out Guid? 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 | Guid? | Returns the value for the specified text. |
Returns
- bool:
trueif the text was converted to a value successfully; otherwise,false.
Fields
FormatProperty
Defines the Format property.
public static readonly DependencyProperty FormatProperty
NewGuidButtonToolTipProperty
Defines the NewGuidButtonToolTip property.
public static readonly DependencyProperty NewGuidButtonToolTipProperty
ResolvedFormatProperty
Defines the ResolvedFormat property.
public static readonly DependencyProperty ResolvedFormatProperty
Inherited Members
- PartEditBoxBase<Guid?>.ActivePartIndexProperty
- PartEditBoxBase<Guid?>.CommitTriggersProperty
- PartEditBoxBase<Guid?>.HasPopupProperty
- PartEditBoxBase<Guid?>.InlinesProperty
- PartEditBoxBase<Guid?>.InputScopeNameValueProperty
- PartEditBoxBase<Guid?>.IntermediateValueProperty
- PartEditBoxBase<Guid?>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<Guid?>.IsEditableProperty
- PartEditBoxBase<Guid?>.IsInputFilteringEnabledProperty
- PartEditBoxBase<Guid?>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<Guid?>.IsNullAllowedProperty
- PartEditBoxBase<Guid?>.IsPopupButtonVisibleProperty
- PartEditBoxBase<Guid?>.IsPopupOpenProperty
- PartEditBoxBase<Guid?>.IsReadOnlyProperty
- PartEditBoxBase<Guid?>.IsSpinnerVisibleProperty
- PartEditBoxBase<Guid?>.IsUndoEnabledProperty
- PartEditBoxBase<Guid?>.PlaceholderTextProperty
- PartEditBoxBase<Guid?>.PopupBackgroundProperty
- PartEditBoxBase<Guid?>.PopupBorderBrushProperty
- PartEditBoxBase<Guid?>.PopupPickerStyleProperty
- PartEditBoxBase<Guid?>.SpinnerVisibilityProperty
- PartEditBoxBase<Guid?>.SpinWrappingProperty
- PartEditBoxBase<Guid?>.TextAlignmentProperty
- PartEditBoxBase<Guid?>.UsageContextProperty
- PartEditBoxBase<Guid?>.ValueProperty
- PartEditBoxBase<Guid?>.CoerceValidValue(Guid?)
- PartEditBoxBase<Guid?>.Commit()
- PartEditBoxBase<Guid?>.Commit(bool)
- PartEditBoxBase<Guid?>.InvalidateParts()
- PartEditBoxBase<Guid?>.IsTextInputAllowed(string)
- PartEditBoxBase<Guid?>.OnApplyTemplate()
- PartEditBoxBase<Guid?>.OnCreateAutomationPeer()
- PartEditBoxBase<Guid?>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<Guid?>.OnIntermediateValueChanged(Guid?, Guid?)
- PartEditBoxBase<Guid?>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<Guid?>.OnIsNullAllowedChanged(bool, bool)
- PartEditBoxBase<Guid?>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<Guid?>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<Guid?>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<Guid?>.OnPopupOpened()
- PartEditBoxBase<Guid?>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<Guid?>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<Guid?>.OnValueChanged(Guid?, Guid?)
- PartEditBoxBase<Guid?>.ProcessTextInput(string)
- PartEditBoxBase<Guid?>.SelectAll()
- PartEditBoxBase<Guid?>.UpdateIntermediateValueAndTextFromValue()
- PartEditBoxBase<Guid?>.ActivePartIndex
- PartEditBoxBase<Guid?>.CommitTriggers
- PartEditBoxBase<Guid?>.CurrentSelectionLength
- PartEditBoxBase<Guid?>.CurrentSelectionStartOffset
- PartEditBoxBase<Guid?>.CurrentText
- PartEditBoxBase<Guid?>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<Guid?>.HasPopup
- PartEditBoxBase<Guid?>.Inlines
- PartEditBoxBase<Guid?>.InputScopeNameValue
- PartEditBoxBase<Guid?>.IntermediateValue
- PartEditBoxBase<Guid?>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<Guid?>.IsEditable
- PartEditBoxBase<Guid?>.IsInputFilteringEnabled
- PartEditBoxBase<Guid?>.IsNonDefaultUsageContext
- PartEditBoxBase<Guid?>.IsNullAllowed
- PartEditBoxBase<Guid?>.IsPopupButtonVisible
- PartEditBoxBase<Guid?>.IsPopupOpen
- PartEditBoxBase<Guid?>.IsReadOnly
- PartEditBoxBase<Guid?>.IsSpinnerVisible
- PartEditBoxBase<Guid?>.IsUndoEnabled
- PartEditBoxBase<Guid?>.Parts
- PartEditBoxBase<Guid?>.PlaceholderText
- PartEditBoxBase<Guid?>.PopupBackground
- PartEditBoxBase<Guid?>.PopupBorderBrush
- PartEditBoxBase<Guid?>.PopupPickerStyle
- PartEditBoxBase<Guid?>.ResetValueCommand
- PartEditBoxBase<Guid?>.SmallDecrementValueCommand
- PartEditBoxBase<Guid?>.SmallIncrementValueCommand
- PartEditBoxBase<Guid?>.SpinnerVisibility
- PartEditBoxBase<Guid?>.SpinWrapping
- PartEditBoxBase<Guid?>.TextAlignment
- PartEditBoxBase<Guid?>.UsageContext
- PartEditBoxBase<Guid?>.Value
- PartEditBoxBase<Guid?>.ValueChanged