&tag(WPF/DataGrid/スタイル);

目次†[edit]

参考になるスタイル†[edit]

Tips†[edit]

セルのスタイルを適用した上でDataGridTextColumnを右寄せにする†[edit]

※次のようにCellStyleを変更すると、その列だけデフォルトのスタイルに戻ってしまうのでだめ。

                <DataGridTextColumn Header="サイズ">
                    <DataGridTextColumn.CellStyle>
                        <Style TargetType="{x:Type DataGridCell}">
                            <Setter Property="HorizontalAlignment" Value="Right"/>
                        </Style>
                    </DataGridTextColumn.CellStyle>

トップ   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS