The xaml ignoring <TextBox FontWeight="Bold" ... />

bhs67

Well-known member
Joined
Oct 11, 2021
Messages
52
Programming Experience
10+
This xaml ignores FontWeight="Bold":

C#:
                   <TextBox x:Name="gTBxTitle"
                    FontWeight="Bold"
                    Margin="0,6,0,0"
                    Width="500"
                    VerticalAlignment="Center"
                    HorizontalAlignment="Center"
                    Text="Title"
                    TextAlignment="Center"
                    Background="LightGray"
                    Foreground="#0000FF" />

C#:
<Window x:Class="X.MainWindow"
...
        FontFamily="Arial Narrow"
        FontSize="16"
>
 
I've not tried yet. Maybe later when I get a chance. I just posted that link because I recalled that there was a time span when not all of Arial Narrow was available on some Windows systems.
 
Back
Top Bottom