作成日: 2021/10/26 最終更新日: 2021/12/22
文書種別
不具合
発生環境
.NET 5用のFlexGrid(C1.WPF.Grid)
状況
修正済み
詳細
WindowのFontSizeプロパティを変更しても、FlexGridのフォントサイズが変更されません。
回避方法
この問題は 2021J v3 (5.0.20213.159) で修正されました。
※修正版を適用しない場合の回避方法は以下の通りです。
WindowのFontSizeプロパティをFlexGridにバインドします。
※修正版を適用しない場合の回避方法は以下の通りです。
WindowのFontSizeプロパティをFlexGridにバインドします。
◎サンプルコード(XAML)
<Window.Resources>
<Style x:Key="win" TargetType="c1:FlexGrid">
<Setter Property="FontSize" Value="{Binding FontSize, RelativeSource={RelativeSource AncestorType=local:MainWindow}}"/>
</Style>
</Window.Resources>
<c1:FlexGrid x:Name="flexGrid" AutoGenerateColumns="False" Style="{StaticResource win}"/>