Where is the WPF Numeric UpDown control?

后端 未结 13 1753
伪装坚强ぢ
伪装坚强ぢ 2020-11-30 00:02

Getting into the first serious WPF project. It seems like there are a lot of basic controls flat out missing. Specifically, I am looking for the Numeric UpDown control. W

相关标签:
13条回答
  • 2020-11-30 00:57

    I have a naive solution but useful. Here is the code:

    <Grid Name="TVGrid" Background="#7F000000">  <ScrollBar Background="Black" Orientation="Vertical" Height="35" HorizontalAlignment="Left" Margin="215,254,0,0" Minimum="0" Maximum="10" LargeChange="10" Value="{Binding ElementName=channeltext2, Path=Text}" x:Name="scroll" VerticalAlignment="Top" Width="12" RenderTransformOrigin="0.5,0.5" ValueChanged="scroll_ValueChanged" >  
            <ScrollBar.RenderTransform>  
                <TransformGroup>  
                    <ScaleTransform/>  
                    <SkewTransform/>  
                    <RotateTransform Angle="-180"/>  
                    <TranslateTransform/>  
                </TransformGroup>  
            </ScrollBar.RenderTransform>  
        </ScrollBar>  
        <TextBox Name="channeltext" HorizontalContentAlignment="Center" FontSize="20"  Background="Black" Foreground="White" Height="35" HorizontalAlignment="Left" Margin="147,254,0,0" VerticalAlignment="Top" Width="53" Text="0" />  
        <TextBox Name="channeltext2" Visibility="Hidden" HorizontalContentAlignment="Center" FontSize="20"  Background="Black" Foreground="White" Height="35" HorizontalAlignment="Left" Margin="147,254,0,0" VerticalAlignment="Top" Width="53" Text="0" />  </Grid>  
    
    0 讨论(0)
提交回复
热议问题