グリッド内の同じ行にある 2 つの異なるフォント スタイルがグリッド行の一番下に配置されることを期待していますが、ご覧のとおり、そうはなっていません!
私が何を変える必要があるのか 誰にもわかりますか?
乾杯、
ベリル
問題
グリッド
<Grid ShowGridLines="True">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Label Grid.Column="0" Grid.Row="0" Style="{StaticResource SubjectStyle}" .../>
...
<TextBlock Grid.Column="2" Grid.Row="0" Style="{StaticResource DisplayNameStyle}" .../>
...
</Grid>
科目のスタイル
<Style x:Key="SubjectStyle" TargetType="{x:Type Label}">
<Setter Property="FontWeight" Value="Bold" />
<Setter Property="FontSize" Value="10" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalContentAlignment" Value="Bottom" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="Width" Value="75" />
</Style>
表示名のスタイル
<Style x:Key="DisplayNameStyle" TargetType="{x:Type TextBlock}">
<Setter Property="FontSize" Value="16" />
<Setter Property="HorizontalAlignment" Value="Left" />
<Setter Property="VerticalAlignment" Value="Bottom" />
<Setter Property="MinWidth" Value="75" />
</Style>