Skip to main content

Microsoft Silverlight

Answered Question I have a few questions for the CONTROLS TEAMRSS Feed

(0)

Magikos
Magikos

Member

Member

222 points

144 Posts

I have a few questions for the CONTROLS TEAM

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 Rideout
Mark Rid...

Contributor

Contributor

2357 points

273 Posts

MicrosoftModerator
Answered Question

Re: I have a few questions for the CONTROLS TEAM

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.

-mark
Silverlight Program Manager
Microsoft
This post is provided "as-is"

Magikos
Magikos

Member

Member

222 points

144 Posts

Re: Re: I have a few questions for the CONTROLS TEAM

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.

  • Unanswered Question
  • Answered Question
  • Announcement
Microsoft Communities