Class SfUpDown
Represents a control that allows you enter numeric values and provides a user interface to increase or decrease numeric values
Inheritance
Namespace: Syncfusion.Windows.Controls
Assembly: Syncfusion.SfInput.Wpf.dll
Syntax
public class SfUpDown : Control
Constructors
SfUpDown()
Declaration
public SfUpDown()
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 |
DownButtonStyleProperty
Using a DependencyProperty as the backing store for DownButtonStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DownButtonStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DownCommandParameterProperty
Using a DependencyProperty as the backing store for DownCommandParameter. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DownCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
DownCommandProperty
Using a DependencyProperty as the backing store for DownCommand. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty DownCommandProperty
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 |
UpButtonStyleProperty
Using a DependencyProperty as the backing store for UpButtonStyle. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UpButtonStyleProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpCommandParameterProperty
Using a DependencyProperty as the backing store for commandParameter. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UpCommandParameterProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpCommandProperty
Using a DependencyProperty as the backing store for UpCommand. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UpCommandProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
UpDownContentProperty
Using a DependencyProperty as the backing store for UpDownContent. This enables animation, styling, binding, etc...
Declaration
public static readonly DependencyProperty UpDownContentProperty
Field Value
Type |
---|
System.Windows.DependencyProperty |
Properties
AccentBrush
Gets or sets the accent brush
Declaration
public Brush AccentBrush { get; set; }
Property Value
Type |
---|
System.Windows.Media.Brush |
DownButtonStyle
Gets or sets the style for down button
Declaration
public Style DownButtonStyle { get; set; }
Property Value
Type |
---|
System.Windows.Style |
DownCommand
Gets or sets the command for down motion
Declaration
public ICommand DownCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
DownCommandParameter
Gets or sets the parameter for down command
Declaration
public object DownCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
SpinButtonsAlignment
Gets or sets the alignment for spin buttons
Declaration
public SpinButtonsAlignment SpinButtonsAlignment { get; set; }
Property Value
Type |
---|
SpinButtonsAlignment |
UpButtonStyle
Gets or sets the style for up button
Declaration
public Style UpButtonStyle { get; set; }
Property Value
Type |
---|
System.Windows.Style |
UpCommand
Gets or sets the command for up motion
Declaration
public ICommand UpCommand { get; set; }
Property Value
Type |
---|
System.Windows.Input.ICommand |
UpCommandParameter
Gets or sets the parameter for up command
Declaration
public object UpCommandParameter { get; set; }
Property Value
Type |
---|
System.Object |
UpDownContent
Gets or sets the content for up button
Declaration
public object UpDownContent { get; set; }
Property Value
Type |
---|
System.Object |
Methods
OnApplyTemplate()
Initializes all the child elements of Syncfusion.UI.Xaml.Controls.SfUpDown control.
Declaration
public override void OnApplyTemplate()
OnSpinButtonsAlignmentChanged(DependencyObject, DependencyPropertyChangedEventArgs)
Invoked when Spin buttons alignment has changed
Declaration
public static void OnSpinButtonsAlignmentChanged(DependencyObject obj, DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyObject | obj | object value |
System.Windows.DependencyPropertyChangedEventArgs | args | property changed event arguments |
OnSpinButtonsAlignmentChanged(DependencyPropertyChangedEventArgs)
Invoked when Spin buttons alignment has changed
Declaration
protected void OnSpinButtonsAlignmentChanged(DependencyPropertyChangedEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
System.Windows.DependencyPropertyChangedEventArgs | args | Property Changed Event Arguments |
Events
DownButtonClick
Event that is raised when DownButton is clicked.
Declaration
public event RoutedEventHandler DownButtonClick
Event Type
Type |
---|
System.Windows.RoutedEventHandler |
UpButtonClick
Event that is raised when UpButton is clicked.
Declaration
public event RoutedEventHandler UpButtonClick
Event Type
Type |
---|
System.Windows.RoutedEventHandler |