Is there any component that replaces Windows Forms SpinEdit in WPF?

3

I prefer open source components, or if possible a form of adaptation, since I did not find any SpinEdit or similar in WPF.

    
asked by anonymous 13.02.2017 / 02:15

2 answers

1

Install the package via nuget Extended.Wpf.Toolkit that it offers a component SingleUpDown . Once it has been installed configure as follows:

Add the configuration:

  

xmlns:wpfTool="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"

in the code:

<Window x:Class="WpfApplication1.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
        xmlns:local="clr-namespace:WpfApplication1"
        xmlns:wpfTool="clr-namespace:Xceed.Wpf.Toolkit;assembly=Xceed.Wpf.Toolkit"
        mc:Ignorable="d"
        Title="MainWindow" Height="350" Width="525">
    <Grid>
        <wpfTool:SingleUpDown Value="1564" Margin="39,70,311,223"
                              RenderTransformOrigin="0.5,0.5" >
            <wpfTool:SingleUpDown.RenderTransform>
                <TransformGroup>
                    <ScaleTransform/>
                    <SkewTransform/>
                    <RotateTransform Angle="0.309"/>
                    <TranslateTransform/>
                </TransformGroup>
            </wpfTool:SingleUpDown.RenderTransform>
        </wpfTool:SingleUpDown>
    </Grid>
</Window>
    
13.02.2017 / 13:00
1

There are some components in the Extended WPF Toolkit that will help you.

DecimalUpDown The DecimalUpDown control provides a TextBox with buttons that allow you to increase and decrease Nullable <Decimal>

DoubleUpDown The DoubleUpDown control provides a TextBox with buttons that allow you to increase and decrease Nullable <Double>

IntegerUpDown The IntegerUpDown control provides a TextBox with buttons that allow you to increase and decrease Nullable <int>

Access the link for component names, or visit here Toolkit

    
13.02.2017 / 14:56