Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] NumberBox different default font size #109

Closed
nlogozzo opened this issue Jun 8, 2020 · 4 comments
Closed

[Bug] NumberBox different default font size #109

nlogozzo opened this issue Jun 8, 2020 · 4 comments

Comments

@nlogozzo
Copy link

nlogozzo commented Jun 8, 2020

By default, TextBoxs and DatePickers have a default font size of 14, however the NumberBox's font size seems smaller and I have to manually set it to 14

@nlogozzo nlogozzo changed the title [Bug] NumberBox default font size [Bug] NumberBox different default font size Jun 8, 2020
@Kinnara
Copy link
Owner

Kinnara commented Jun 17, 2020

I'm not seeing this behavior in, for example, the FluentRibbonSample. Could you provide a repro?

@nlogozzo
Copy link
Author

nlogozzo commented Jun 18, 2020

My Code:

<fw:AcrylicWindow  x:Class="NickvisionApp.Views.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:ui="http://schemas.modernwpf.com/2019"
        xmlns:fw="clr-namespace:SourceChord.FluentWPF;assembly=FluentWPF"
        xmlns:ribbon="urn:fluent-ribbon"
        xmlns:local="clr-namespace:NickvisionApp.Views"
        mc:Ignorable="d" Title="NickvisionApp" Icon="../Resources/icon.ico" Width="1000" Height="800"
        TintOpacity=".9" AcrylicWindowStyle="NoIcon" WindowState="Maximized" Closing="WindowClosing">

    <Grid Background="Transparent">
        <ribbon:Ribbon HorizontalAlignment="Stretch" VerticalAlignment="Top">
            <ribbon:Ribbon.Menu>
                <ribbon:Backstage>
                    <ribbon:BackstageTabControl>
                        <ribbon:Button Header="Exit" ToolTip="Alt+F4" Icon="../Resources/exit.png" Click="MenuExit_Click"/>
                    </ribbon:BackstageTabControl>
                </ribbon:Backstage>
            </ribbon:Ribbon.Menu>

            <ribbon:RibbonTabItem Header="Help">
                <ribbon:RibbonGroupBox Header="Help">
                    <ribbon:Button Header="Changelog" LargeIcon="../Resources/changelog.png" Click="MenuChangelog_Click"/>
                    <ribbon:Button Header="About" LargeIcon="../Resources/about.png" Click="MenuAbout_Click"/>
                </ribbon:RibbonGroupBox>
            </ribbon:RibbonTabItem>
        </ribbon:Ribbon>

        <Grid Margin="0,122,0,24" Background="Transparent">
            <ui:NumberBox x:Name="numTest" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6,0,0,0" Width="300"
                          Header="Number Box" PlaceholderText="Enter number here"/>

            <TextBox x:Name="txtTest" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6,60,0,0" Width="300"
                     ui:ControlHelper.Header="Text Box" ui:ControlHelper.PlaceholderText="Enter text here"/>

            <DatePicker x:Name="dateTest" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="6,120,0,0" Width="300"
                        ui:ControlHelper.Header="Date Picker" ui:ControlHelper.PlaceholderText="Select date"/>
        </Grid>

        <ribbon:StatusBar HorizontalAlignment="Stretch" VerticalAlignment="Bottom">
            <ribbon:StatusBarItem x:Name="statusReady" Content="Ready" HorizontalAlignment="Left" Margin="4,0,0,0"/>
        </ribbon:StatusBar>
    </Grid>
    
</fw:AcrylicWindow>

Which produces this:
image

Notice how the numberbox's header text is smaller than the rest. If i add FontSize="14" property to the numberbox then the header matches the rest.

@Kinnara
Copy link
Owner

Kinnara commented Jun 19, 2020

Ah, I see. Thanks for reporting. Will fix in the near future.

@nlogozzo
Copy link
Author

👍 thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants