Windows Vista Forums
Vista Forums Home Join Vista Forums Donate Vista Tutorials Tags

Welcome to Vista Forums we are your forum to discuss Windows Vista x64 and x86 systems. Whether you need help or just want to post an idea you have on Vista, this is the forum for you.
Register at Vista forums...the world biggest Windows Vista resource Join Vista Forums Now

Go Back   Vista Forums > Microsoft Technical Newsgroups > Avalon

Putting default Text into a ComboBox

Closed Thread
 
Thread Tools Display Modes
Old 12-12-2006   #1 (permalink)
Keith Patrick
Guest


 

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?


Old 12-19-2006   #2 (permalink)
Keith Patrick
Guest


 

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;



Old 12-19-2006   #3 (permalink)
Keith Patrick
Guest


 

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;



Closed Thread

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Default text in WordPad ??? Drew Leyda Vista performance & maintenance 3 04-19-2008 10:42 PM
Default mail text size pzjagd1 Vista mail 7 03-19-2008 09:36 PM
Text size and icons won't go back to default setting Emily Vista General 0 12-06-2007 05:19 PM
Two-way binding doesn't work with ComboBox.Text? Keith Patrick Avalon 0 11-02-2006 06:20 PM
combobox- transperant crish Avalon 0 03-08-2006 06:11 AM








Vistax64.com 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 2005-2008

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 47 48 49 50