views:

189

answers:

1

How to make a column in WPFToolkit:DataGrid PasswordBox like?

A: 

Made it trough DataGridTemplateColumn

Ike
Now I have another problem. I am trying to bind column to CLR object. but VS says: 'Binding' cannot be set on the 'Password' property of type 'PasswordBox'. A 'Binding' can only be set on a DependencyProperty of a DependencyObject.
Ike
PasswordBox.Password doesn't have a corresponding DependencyProperty, so you can't data-bind to it.Exposing a DependencyProperty would require us to store the PasswordBox content plain text in memory in the property system -- which is a security concern. The PasswordBox encrypts its content and only generates plain text on demand when a caller references the Password CLR property.via: http://social.msdn.microsoft.com/forums/en-US/wpf/thread/7ca97b60-2d8e-4a27-8c5b-b8d5d7370a5e/
Ike