Kinnara / ModernWpf

Modern styles and controls for your WPF applications
MIT License
4.36k stars 440 forks source link

NumberBox inline spin buttons are offset when description is used #23

Closed geometrikal closed 4 years ago

geometrikal commented 4 years ago
Annotation 2020-01-14 122941

XAML:

<ui:NumberBox Header="Tray"
                          Description="0: rebus, 1: left tray, 2: right tray, 3: repeat"
                          Minimum="0"
                          Maximum="3"
                          SmallChange="1" 
                          SpinButtonPlacementMode="Inline"
                          Value="{Binding Tray}"/>
Kinnara commented 4 years ago

Good bug, thanks for reporting. It's not hard to fix but I'll first report it on WinUI as well to see how they are going to approach it. As a workaround you can do this:

<StackPanel>
    <ui:NumberBox Header="Tray"
                  SpinButtonPlacementMode="Inline" />
    <TextBlock Text="0: rebus, 1: left tray, 2: right tray, 3: repeat"
               Foreground="{DynamicResource SystemControlDescriptionTextForegroundBrush}" />
</StackPanel>
Kinnara commented 4 years ago

Closed via 3d6b342469eb79ccc0ad20d3de65c3fac20c5d91.