极品分享

C# WPF DataGrid 列头实现国际化语言切换

<DataGrid>
    <DataGrid.Columns>
        <DataGridTextColumn Binding="{x:Null}" Width="120">
            <DataGridTextColumn.Header>
                <TextBlock Text="{DynamicResource Name}" />
            </DataGridTextColumn.Header>
        </DataGridTextColumn>
    </DataGrid.Columns></DataGrid>


2017-05-09 0 /
NET学习
/
标签: 

评论回复

回到顶部