views:

435

answers:

1

Hi all,

Basically I'm just looking for a 'SelectedItemTemplate' in the SL3 ComboBox. Unfortunately, that doesn't exist.

What I want is for the SelectedItem to look like this: Value

And the items in the dropdown box to look like this: Value + extra information

The latter is easily enough done by using the ItemTemplate, but the SelectedItem looks like that too. How can I prevent / fix that?

+1  A: 

Are you looking for .SelectionBoxItemTemplate?

Simon Buchan
Yes, something like that, but the SL3 ComboBox doesn't seem to have that property?
Odd... I don't have SL3 to test on here, but it is listed in the MSDN documentation (even though SL3 is not listed in the "other versions" box: add (VS.96) before the .aspx in my link). Maybe it's an issue with the beta? Try ignoring intellisense, if that's what you're going by, and just compiling with it anyway.
Simon Buchan
Alas... I tried it and got this: XamlParseException. AG_E_UNKNOWN_ERROR [Line: 96 Position: 135] And yes, line 96 is the line with the SelectionBoxItemTemplate ;-)
UNKNOWN_ERROR suggests to me that it is a Beta bug. I guess you have to wait for them to fix it?
Simon Buchan
I'll probably have to...