Quantcast
Channel: Silverlight Issue Tracker Rss Feed
Viewing all articles
Browse latest Browse all 801

Commented Issue: TextBox.Header [9981]

$
0
0
Just a simple thing is going to drive me crazy.

It looks like that the Header property isn't supported by System.Windows.Controls.TextBox! WHY?
But the screen-shot at http://msdn.microsoft.com/en-us/library/hh202916%28v=vs.92%29.aspx claims that there is a Header property for TextBox!?

I am confused ... Also PhoneTextBox does not support a Header property?

See also:
TextBox Control Design Guidelines for Windows Phone:
http://msdn.microsoft.com/en-us/library/hh202916%28v=vs.92%29.aspx

Workaround for headers on TextBox controls:
http://forums.create.msdn.com/forums/p/77167/468516.aspx

Is it possible to add a Header property to the textbox control:
http://forums.create.msdn.com/forums/p/76127/576970.aspx

So I am not completely alone with that TextBox.Header question ... But what is the one and only answer for TextBox.Header? Even the MSDN article "TextBox Control Design Guidelines for Windows Phone" shows a screen-shot of TextBoxes using Header and pointing to System.Windows.Controls.TextBox that control does not support it!?

The workaround by "EGL" looks nice but how to define the InputScope (for example when I just need "Numbers") in XAML? Thank you for bringing some light into the dark ;-)

--Harald-René Flasch (aka hfrmobile)
Comments: ** Comment from web user: shawnoster **

The screenshots that you link to aren't showing a TextBox with a Header property, it's a TextBlock with a TextBox underneath grouped together with a StackPanel. This is a pretty standard pattern for many control libraries, you have discreate controls and compose your UI from them (a Label and a TextBox).

That said it sounds like you'd like a "HeaderedTextBox" that has a header so you can easily recreate the standard Metro UI with proper margins and color. One downside of providing such a control is that internally it'll use a StackPanel and more than likely your outer containter will also be a StackPanel and you'll end up exploding your element count. Something like this:

<StackPanel>
<StackPanel>
<TextBlock />
<TextBox />
</StackPanel>
<StackPanel>
<TextBlock />
<TextBox />
</StackPanel>
<StackPanel>
<TextBlock />
<TextBox />
</StackPanel>
</StackPanel>


Viewing all articles
Browse latest Browse all 801

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>