Are there any components that replace Windows Forms Spinedit in WPF?

Asked

Viewed 58 times

3

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

2 answers

1


Install the package via nuget Extended.Wpf.Toolkit that it offers a component SingleUpDown. After 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>

1

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

Decimalupdown Decimalupdown control provides a Textbox with buttons that allow you to increase and decrease values Nullable <Decimal>

Doubleupdown The Doubleupdown control provides a Textbox with buttons that allow you to increase and decrease values Nullable <Double>

Integerupdown Integerupdown control provides a Textbox with buttons to increase and decrease values Nullable <int>

Access the link by component names, or go to here the Toolkit

Browser other questions tagged

You are not signed in. Login or sign up in order to post.