![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
|
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.
br> br> |
| |||||||
![]() |
| | Thread Tools | Display Modes |
| | #1 (permalink) |
| 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? |
| | #2 (permalink) |
| 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; |
| | #3 (permalink) |
| 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; |
| |
| |
![]() |
| 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 |