DataGridのひとつセルのスタイルを定義することができます。 スタイルの定義: <ResourceDictionary xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"> <Style x:Key="AlignCenter" TargetType="sdk:DataGridCell"> <Setter Property="HorizontalContentAlignment" Value="Center" /> <Setter Property="VerticalContentAlignment" Value="Center" /> </Style> </ResourceDictionary> XAML側の使用: <sdk:DataGrid AutoGenerateColumns="False" CellStyle="{Binding Source={StaticResource AlignCenter}}"> iディレクトリで複数のポータルサイトにディレクトリ登録 コメント: |