Class UpDownBase
Base class for all controls that provide value manipulation with a Spinner and a text box.
Inheritance
System.Object
UpDownBase
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: System.Windows.Controls
Assembly: OpenSilver.dll
Syntax
[TemplatePart(Name = "Text", Type = typeof(TextBox))]
[TemplatePart(Name = "Spinner", Type = typeof(Spinner))]
[StyleTypedProperty(Property = "SpinnerStyle", StyleTargetType = typeof(Spinner))]
public abstract class UpDownBase : Control
Remarks
This non generic base class is used to specify default template, and simulate covariance among sub classes of UpDownBase<T>.
Fields
| Improve this Doc View SourceSpinnerStyleProperty
Identifies the SpinnerStyle dependency property.
Declaration
public static readonly DependencyProperty SpinnerStyleProperty
Field Value
Type | Description |
---|---|
DependencyProperty |
Properties
| Improve this Doc View SourceSpinnerStyle
Gets or sets the Style that is applied to the spinner.
Declaration
public Style SpinnerStyle { get; set; }
Property Value
Type | Description |
---|---|
Style |
Methods
| Improve this Doc View SourceGetValue()
GetValue method for returning UpDownBase<T>.Value as object.
Declaration
public abstract object GetValue()
Returns
Type | Description |
---|---|
System.Object | Value as object type. |
OnSpinnerStyleChanged(Style, Style)
Called when SpinnerStyle property value has changed.
Declaration
protected virtual void OnSpinnerStyleChanged(Style oldValue, Style newValue)
Parameters
Type | Name | Description |
---|---|---|
Style | oldValue | The old value. |
Style | newValue | The new value. |
SetValue(Object)
SetValue method for setting UpDownBase<T>.Value through object type parameter.
Declaration
public abstract void SetValue(object value)
Parameters
Type | Name | Description |
---|---|---|
System.Object | value | New value in object type. |