Windows Vista Forums
Vista Forums Home Join Vista Forums Windows 7 Forum Vista Tutorials Tags
Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks.

Go Back   Vista Forums > Misc Newsgroups > Avalon

Vista - Putting default Text into a ComboBox

 
 
Old 12-12-2006   #1 (permalink)
Keith Patrick


 
 

Putting default Text into a ComboBox

I've got a combobox I'm trying to style such that if no item is selected,
there is dead text in there ("Select a value..."). However, while I can get
the trigger to properly fire when SelectedValue={x:Null}, setting the Text
property won't work because my combobox isn't editable. This seems like a
very simple template to do, but for some reason, the solution is escaping
me. Anyone know a working way to do this?



My System SpecsSystem Spec
Old 12-19-2006   #2 (permalink)
Keith Patrick


 
 

Re: Putting default Text into a ComboBox

FYI: The solution I came up with was to override the combo's style with a 2
column grid. A combobox bound to the source combo spans both columns, and a
textblock with the default text sits over column 1 & is set to visible only
when selectedvalue == null;



My System SpecsSystem Spec
 

Thread Tools


Similar Threads
Thread Forum
Changing the default text size in windows mail Vista mail
Default text in WordPad ??? Vista performance & maintenance
Default mail text size Vista mail
Text size and icons won't go back to default setting Vista General


Vista Forums is an independent web site and has not been authorized,
sponsored, or otherwise approved by Microsoft Corporation.
"Windows Vista", the Start Orb, and related materials are trademarks of Microsoft Corp.
© Designer Media Ltd

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46