update message view with textblock to wrap text

This commit is contained in:
IsWaffle 2022-04-30 12:03:09 -04:00
parent 165ddb4990
commit 9bcbb42f83
2 changed files with 34 additions and 28 deletions

View File

@ -8,6 +8,7 @@
<cc:TitleBar Title="Title Bar Text"/>
<Label Content="Normal label"/>
<Label Content="Yellow label" Classes="yellow"/>
<TextBlock Text="Yellow textblock" Classes="yellow"/>
<Label Content="Blue label" Classes="dark"/>
<ProgressBar Value="40"/>
<Separator Height="1"/>
@ -24,6 +25,10 @@
<Setter Property="XButtonForeground" Value="{StaticResource AKI_Brush_DarkGrayBlue}"/>
</Style>
<Style Selector="TextBlock.yellow">
<Setter Property="Foreground" Value="{StaticResource AKI_Brush_Yellow}"/>
</Style>
<Style Selector="Label">
<Setter Property="Foreground" Value="{StaticResource AKI_Foreground_Light}"/>
</Style>

View File

@ -11,8 +11,9 @@
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center">
<Label Content="You can close this window"
FontSize="12" FontWeight="SemiBold"/>
<Label Content="{Binding InfoText}"
FontSize="12" FontWeight="SemiBold"
/>
<TextBlock Text="{Binding InfoText}" TextWrapping="Wrap"
Classes="yellow"
/>
</StackPanel>