Class SfDomainUpDown
Syncfusion.UI.Xaml.Controls.Input.DomainUpDown control is a pair of spin buttons by clicking the up and down buttons the user can scroll and select the data.
Inheritance
Namespace: Syncfusion.Windows.Controls.Input
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public class SfDomainUpDown : Control
Remarks
DomainUpDown is a control
Constructors
SfDomainUpDown()
Initializes a new instance of the Syncfusion.UI.Xaml.Controls.Input.DomainUpDown class.
Declaration
public SfDomainUpDown()
Fields
AccentBrushProperty
Using a DependencyProperty as the backing store for AccentBrush. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AccentBrushProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
AutoReverseProperty
Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty AutoReverseProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ContentTemplateProperty
Using a DependencyProperty as the backing store for ContentTemplate. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ContentTemplateProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
CurrentIndexProperty
Using a DependencyProperty as the backing store for CurrentIndex. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty CurrentIndexProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
EnableSpinAnimationProperty
Using a DependencyProperty as the backing store for EnableSpinAnimation. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty EnableSpinAnimationProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ItemsSourceProperty
Using a DependencyProperty as the backing store for ItemsSource. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ItemsSourceProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
SpinButtonsAlignmentProperty
Using a DependencyProperty as the backing store for SpinButtonsAlignment. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty SpinButtonsAlignmentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpDownStyleProperty
Using a DependencyProperty as the backing store for UpDownStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UpDownStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
ValueProperty
Using a DependencyProperty as the backing store for Value. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty ValueProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AccentBrush
Gets or sets the background for Syncfusion.UI.Xaml.Controls.Input.DomainUpDown.
Declaration
public Brush AccentBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
AutoReverse
Gets or sets a value indicating whether the values can be auto reversed.
Declaration
public bool AutoReverse { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
ContentTemplate
Gets or sets the data template used to display the content for Syncfusion.UI.Xaml.Controls.Input.DomainUpDown
Declaration
public DataTemplate ContentTemplate { get; set; }
Property Value
Type |
---|
System.Windows.DataTemplate |
CurrentIndex
Gets or sets the zero-based index of the currently selected item in a Syncfusion.UI.Xaml.Controls.Input.DomainUpDown.
Declaration
public int CurrentIndex { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 | The default value is zero. |
DecrementCommand
Gets the previous Value
Declaration
public ICommand DecrementCommand { get; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
EnableSpinAnimation
Gets or sets a value indicating whether Syncfusion.UI.Xaml.Controls.Input.DomainUpDown can animate on increment/decrement items.
Declaration
public bool EnableSpinAnimation { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
|
See Also
IncrementCommand
Gets the next Value
Declaration
public ICommand IncrementCommand { get; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
ItemsSource
Gets or sets a collection used to generate the content of the Syncfusion.UI.Xaml.Controls.Input.DomainUpDown.
Declaration
public IEnumerable ItemsSource { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.IEnumerable | The default value is null. |
SpinButtonsAlignment
Gets or sets the spin buttons alignment.
Declaration
public SpinButtonsAlignment SpinButtonsAlignment { get; set; }
Property Value
Type | Description |
---|---|
SpinButtonsAlignment | The default value is Syncfusion.UI.Xaml.Controls.SpinButtonsAlignment. |
See Also
UpDownStyle
Gets or sets the style for updown buttons.
Declaration
public Style UpDownStyle { get; set; }
Property Value
Type |
---|
System.Windows.Style |
See Also
Value
Gets or sets the current value for Syncfusion.UI.Xaml.Controls.Input.DomainUpDown.
Declaration
public object Value { get; set; }
Property Value
Type | Description |
---|---|
System.Object | The value. |
Remarks
The Default value is null.
Methods
add_ValueChanged(ValueChangedEventHandler)
Declaration
public void add_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
Decrement()
Decrements the associated performance counter by one and stores the result, as an atomic operation.
Declaration
public void Decrement()
Remarks
Returns void
See Also
Increment()
Increments the associated performance counter by one and stores the result, as an atomic operation.
Declaration
public void Increment()
Remarks
Returns void
See Also
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.Input.DomainUpDown control.
Declaration
public override void OnApplyTemplate()
OnContentTemplateChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Called when content template is changed.
Declaration
protected static void OnContentTemplateChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | sender | |
System.Windows.DependencyPropertyChangedEventArgs | args |
OnCurrentIndexChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Occurs when the current index has changed
Declaration
protected static void OnCurrentIndexChanged(DependencyObject sender, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | sender | |
System.Windows.DependencyPropertyChangedEventArgs | args |
OnItemsSourceChanged(DependencyPropertyChangedEventArgs)
Occurs when the Syncfusion.UI.Xaml.Controls.Input.DomainUpDown control ItemsSource has changed.
Declaration
protected void OnItemsSourceChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
OnMouseLeftButtonDown(MouseButtonEventArgs)
Declaration
protected override void OnMouseLeftButtonDown(MouseButtonEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseButtonEventArgs | e |
OnMouseWheel(MouseWheelEventArgs)
Occurs when the pointer is moved
Declaration
protected override void OnMouseWheel(MouseWheelEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.MouseWheelEventArgs | e |
OnPreviewKeyDown(KeyEventArgs)
Declaration
protected override void OnPreviewKeyDown(KeyEventArgs e)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.Input.KeyEventArgs | e |
OnValueChanged(DependencyPropertyChangedEventArgs)
Occurs when the Syncfusion.UI.Xaml.Controls.Input.DomainUpDown control Value has changed.
Declaration
protected void OnValueChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args |
remove_ValueChanged(ValueChangedEventHandler)
Declaration
public void remove_ValueChanged(ValueChangedEventHandler value)
Parameters
Type | Name | Description |
---|---|---|
ValueChangedEventHandler | value |
Events
ValueChanged
Occurs when current Syncfusion.UI.Xaml.Controls.Input.DomainUpDown.Value changed.
Declaration
public event ValueChangedEventHandler ValueChanged
Event Type
Type |
---|
ValueChangedEventHandler |