TextBox with Header

rbrunner7

Senior Member
Apr 16, 2012
64
9
0
www.megos.ch
Simple

I think for that screenshot on the MSDN page you give they did what I also did without thinking twice in my own apps: Place TextBlock controls immediately before the TextBox controls.

Indeed, I found the approach of some controls with built-in header text property annoying because they waste a line of space even if you don't need a text.

And where would you stop with your new header property because sometimes you need text in front of a text box, but sometimes below, or in front and in the back at the same time, etc. (Yes, that does not happen with trivial, 3 textbox screens, but drive up the number of features in your program and it will probably happen.)
 

hfrmobile

Member
Jan 2, 2007
35
2
0
Wiener Neustadt
www.hfrmobile.com
Don't agree. A HeaderMode enum should do the trick. I don't want do reinvent the wheel each time I need a simple TextBox ;) After a year implementing WP apps I still see advantages of a TextBoxWithHeader control.

Sent from my RM-821_eu_euro2_530 using XDA Windows Phone App