그리드 행의 하단에 정렬되도록 그리드의 같은 행에 두 가지 글꼴 스타일이 예상되지만 예상대로!글꼴 맞춤 해제
변경해야 할 사람이 있습니까?
건배,
베릴
문제
그리드
<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>
나 displayName 스타일
<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>
포스터는 WPF를 사용하므로 Chrome 디버그 도구가 적용되지 않습니다. 그러나 마진 스타일은 여전히 비슷한 방식으로 적용됩니다. – meklarian
원래는 레이블을 사용하여 액세스 텍스트를보다 쉽게 읽을 수있게되었습니다. 건배 – Berryl