Skip to main content
Home Forums Silverlight Programming Silverlight Controls and Silverlight Toolkit I have a few questions for the CONTROLS TEAM
2 replies. Latest Post by Magikos on October 10, 2008.
(0)
Magikos
Member
222 points
144 Posts
10-10-2008 5:27 PM |
I'd like to know the status on getting the Watermark property on the TextBox. I noticed that System.Windows.Controls.Primitives.DatePickerTextBox inherits from TextBox and adds only the Watermark property. Is there any reason why this was not added to the TextBox by default?
Also, why is System.Windows.Controls.PasswordBox sealed? I want to extend it's functionality, but am unable to inherit from it. I can see no reason why this control should be sealed.
Thanks
Mark Rid...
Contributor
2357 points
273 Posts
10-10-2008 5:49 PM |
Great questions. First off for WPF compatibility we don't want to introduce APIs that the WPF team hasn't signed up to do. Second we have to address issues that can't be done with custom code. PasswordBox is the one issue since the WPF team has security concerns about removing the sealed attribute.
-markSilverlight Program ManagerMicrosoftThis post is provided "as-is"
10-10-2008 6:03 PM |
What security issues are there? It seems if I inherit from the control then I am taking the security into my hands thus removing any responsibility from Microsoft. As it stands now, I'm forced to write my own PasswordBox.