如何在WPFToolkit:DataGrid PasswordBox中创建列?
最佳答案
<DataGridTemplateColumn Header="Password">
<DataGridTemplateColumn.HeaderStyle>
<Style TargetType="{x:Type DataGridColumnHeader}">
<Setter Property="HorizontalContentAlignment" Value="Center"/>
</Style>
</DataGridTemplateColumn.HeaderStyle>
<DataGridTemplateColumn.CellTemplate>
<DataTemplate>
<PasswordBox Name="PasswordBoxPass"/>
</DataTemplate>
</DataGridTemplateColumn.CellTemplate>
</DataGridTemplateColumn>
关于wpf - 如何在DataGrid中定义PasswordBox类型列?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/1065371/