Answered by:
PasswordPropertyText attribute not working?

Question
-
Hi
I added a [PasswordPropertyText(true)] attribute to one of my customactivity's variable
[PasswordPropertyText(true)] public String Password { get; set; }
However in the propertyview, this property iss still displayed as plain text. What should I do to make it obscured with asterisk when the user types it?
Answers
-
that should work. can you share your code?
for reference: http://msdn.microsoft.com/en-us/library/system.componentmodel.passwordpropertytextattribute.aspx
and if you want to see a full example:
- Marked as answer by zhenyu daiModerator Wednesday, March 23, 2011 2:42 AM
-
Hi, Louis
To show a password textbox in the property view. you can extend the property grid with your own code.
Please check this sample:
http://msdn.microsoft.com/en-us/library/ee834515.aspx
Regards
MSDN Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
Microsoft Windows Workflow Foundation 4.0 Cookbook- Marked as answer by Andrew_ZhuModerator Wednesday, March 23, 2011 1:44 AM
All replies
-
that should work. can you share your code?
for reference: http://msdn.microsoft.com/en-us/library/system.componentmodel.passwordpropertytextattribute.aspx
and if you want to see a full example:
- Marked as answer by zhenyu daiModerator Wednesday, March 23, 2011 2:42 AM
-
Hi, Louis
To show a password textbox in the property view. you can extend the property grid with your own code.
Please check this sample:
http://msdn.microsoft.com/en-us/library/ee834515.aspx
Regards
MSDN Community Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
This posting is provided "AS IS" with no warranties, and confers no rights. My Blog: http://xhinker.com
Microsoft Windows Workflow Foundation 4.0 Cookbook- Marked as answer by Andrew_ZhuModerator Wednesday, March 23, 2011 1:44 AM