GuidEditBox Class
Represents an Guid
edit box.
public class GuidEditBox : PartEditBoxBase<Guid?>, DUCE.IResource, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IHaveResources, IQueryAmbient
- Inheritance:
- Object DispatcherObject DependencyObject Visual UIElement FrameworkElement Control PartEditBoxBase<Nullable<Guid>> Object
Constructors
GuidEditBox()
Initializes an instance of the GuidEditBox
class.
public GuidEditBox()
Properties
Format
Gets or sets the GUID format string.
public string Format { get; set; }
Property Value
- String:
The GUID format string. The default value is
"D"
.
NewGuidButtonToolTip
Gets or sets the tooltip for the new GUID button.
public object NewGuidButtonToolTip { get; set; }
Property Value
- Object:
The tooltip for the new GUID button.
NewGuidCommand
Gets the ICommand that can be used to generate a new GUID.
public ICommand NewGuidCommand { get; }
Property Value
ResolvedFormat
Gets the resolved GUID format string.
Methods
ConvertToString(Nullable<Guid>)
Converts the specified value to a string representation.
protected override string ConvertToString(Guid? valueToConvert)
Parameter | Type | Description |
---|---|---|
valueToConvert | Nullable<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<Nullable<Guid>>:
The incremental change (spin) request that was created.
GenerateParts()
Generates the parts for the edit box.
protected override IList<IPart> GenerateParts()
Returns
IsValidValue(Nullable<Guid>)
Returns whether the specified value is valid.
protected override bool IsValidValue(Guid? value)
Parameter | Type | Description |
---|---|---|
value | Nullable<Guid> | The value to examine. |
Returns
- Boolean:
true
if the value is valid; otherwise,false
.
OnKeyDown(KeyEventArgs)
Occurs when a key is pressed.
protected override void OnKeyDown(KeyEventArgs e)
Parameter | Type | Description |
---|---|---|
e | KeyEventArgs | The KeyEventArgs that contains the event data. |
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<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 | Boolean | Whether the returned value should be coerced to fall within the allowed value range. |
value | Nullable<Guid> | Returns the value for the specified text. |
Returns
- Boolean:
true
if the text was converted to a value successfully; otherwise,false
.
Events
ValueChanged
Occurs after the Value
property value changes.
Fields
FormatProperty
Identifies the Format dependency property. This field is read-only.
public static readonly DependencyProperty FormatProperty
NewGuidButtonToolTipProperty
Identifies the NewGuidButtonToolTip dependency property. This field is read-only.
public static readonly DependencyProperty NewGuidButtonToolTipProperty
ResolvedFormatProperty
Identifies the ResolvedFormat dependency property. This field is read-only.
public static readonly DependencyProperty ResolvedFormatProperty
Inherited Members
- PartEditBoxBase<Nullable<Guid>>.ActivePartIndexProperty
- PartEditBoxBase<Nullable<Guid>>.CommitTriggersProperty
- PartEditBoxBase<Nullable<Guid>>.HasPopupProperty
- PartEditBoxBase<Nullable<Guid>>.InlinesProperty
- PartEditBoxBase<Nullable<Guid>>.InputScopeNameValueProperty
- PartEditBoxBase<Nullable<Guid>>.IntermediateValueProperty
- PartEditBoxBase<Nullable<Guid>>.IsArrowKeyPartNavigationEnabledProperty
- PartEditBoxBase<Nullable<Guid>>.IsEditableProperty
- PartEditBoxBase<Nullable<Guid>>.IsNullAllowedProperty
- PartEditBoxBase<Nullable<Guid>>.IsPopupButtonVisibleProperty
- PartEditBoxBase<Nullable<Guid>>.IsPopupOpenProperty
- PartEditBoxBase<Nullable<Guid>>.IsReadOnlyProperty
- PartEditBoxBase<Nullable<Guid>>.IsSpinnerVisibleProperty
- PartEditBoxBase<Nullable<Guid>>.IsUndoEnabledProperty
- PartEditBoxBase<Nullable<Guid>>.PlaceholderTextProperty
- PartEditBoxBase<Nullable<Guid>>.PopupBackgroundProperty
- PartEditBoxBase<Nullable<Guid>>.PopupBorderBrushProperty
- PartEditBoxBase<Nullable<Guid>>.PopupPickerStyleProperty
- PartEditBoxBase<Nullable<Guid>>.SpinWrappingProperty
- PartEditBoxBase<Nullable<Guid>>.TextAlignmentProperty
- PartEditBoxBase<Nullable<Guid>>.ValueProperty
- PartEditBoxBase<Nullable<Guid>>.IsNonDefaultUsageContextProperty
- PartEditBoxBase<Nullable<Guid>>.SpinnerVisibilityProperty
- PartEditBoxBase<Nullable<Guid>>.UsageContextProperty
- PartEditBoxBase<Nullable<Guid>>.CoerceValidValue(Nullable<Guid>)
- PartEditBoxBase<Nullable<Guid>>.Commit()
- PartEditBoxBase<Nullable<Guid>>.Commit(Boolean)
- PartEditBoxBase<Nullable<Guid>>.InvalidateParts()
- PartEditBoxBase<Nullable<Guid>>.OnApplyTemplate()
- PartEditBoxBase<Nullable<Guid>>.OnCreateAutomationPeer()
- PartEditBoxBase<Nullable<Guid>>.OnGotFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnIntermediateValueChanged(Nullable<Guid>, Nullable<Guid>)
- PartEditBoxBase<Nullable<Guid>>.OnIsNullAllowedChanged(Boolean, Boolean)
- PartEditBoxBase<Nullable<Guid>>.OnLostFocus(RoutedEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnPopupOpened()
- PartEditBoxBase<Nullable<Guid>>.OnValueChanged(Nullable<Guid>, Nullable<Guid>)
- PartEditBoxBase<Nullable<Guid>>.ProcessTextInput(String)
- PartEditBoxBase<Nullable<Guid>>.SelectAll()
- PartEditBoxBase<Nullable<Guid>>.OnIsKeyboardFocusWithinChanged(DependencyPropertyChangedEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnLostMouseCapture(MouseEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnMouseLeftButtonDown(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnPreviewMouseUp(MouseButtonEventArgs)
- PartEditBoxBase<Nullable<Guid>>.OnPreviewTextInput(TextCompositionEventArgs)
- PartEditBoxBase<Nullable<Guid>>.ActivePartIndex
- PartEditBoxBase<Nullable<Guid>>.CommitTriggers
- PartEditBoxBase<Nullable<Guid>>.CurrentSelectionLength
- PartEditBoxBase<Nullable<Guid>>.CurrentSelectionStartOffset
- PartEditBoxBase<Nullable<Guid>>.CurrentText
- PartEditBoxBase<Nullable<Guid>>.HasPopupButtonWhenReadOnly
- PartEditBoxBase<Nullable<Guid>>.HasPopup
- PartEditBoxBase<Nullable<Guid>>.Inlines
- PartEditBoxBase<Nullable<Guid>>.InputScopeNameValue
- PartEditBoxBase<Nullable<Guid>>.IntermediateValue
- PartEditBoxBase<Nullable<Guid>>.IsArrowKeyPartNavigationEnabled
- PartEditBoxBase<Nullable<Guid>>.IsEditable
- PartEditBoxBase<Nullable<Guid>>.IsNullAllowed
- PartEditBoxBase<Nullable<Guid>>.IsPopupButtonVisible
- PartEditBoxBase<Nullable<Guid>>.IsPopupOpen
- PartEditBoxBase<Nullable<Guid>>.IsReadOnly
- PartEditBoxBase<Nullable<Guid>>.IsSpinnerVisible
- PartEditBoxBase<Nullable<Guid>>.IsUndoEnabled
- PartEditBoxBase<Nullable<Guid>>.Parts
- PartEditBoxBase<Nullable<Guid>>.PlaceholderText
- PartEditBoxBase<Nullable<Guid>>.PopupBackground
- PartEditBoxBase<Nullable<Guid>>.PopupBorderBrush
- PartEditBoxBase<Nullable<Guid>>.PopupPickerStyle
- PartEditBoxBase<Nullable<Guid>>.ResetValueCommand
- PartEditBoxBase<Nullable<Guid>>.SmallDecrementValueCommand
- PartEditBoxBase<Nullable<Guid>>.SmallIncrementValueCommand
- PartEditBoxBase<Nullable<Guid>>.SpinWrapping
- PartEditBoxBase<Nullable<Guid>>.TextAlignment
- PartEditBoxBase<Nullable<Guid>>.Value
- PartEditBoxBase<Nullable<Guid>>.IsNonDefaultUsageContext
- PartEditBoxBase<Nullable<Guid>>.SpinnerVisibility
- PartEditBoxBase<Nullable<Guid>>.UsageContext
- Object.ToString()
- Object.Equals(Object)
- Object.Equals(Object, Object)
- Object.ReferenceEquals(Object, Object)
- Object.GetHashCode()
- Object.GetType()
- Object.MemberwiseClone()