Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
WPF ComboBox Problem
Message
From
02/07/2010 16:25:36
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, United States
 
 
To
02/07/2010 16:19:58
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
01471290
Message ID:
01471322
Views:
35
Hi Tim,

oops, my mistake. I just re-tried it. No difference in behavior. I could be wrong but I thought "Path" was just the default parameter and specifying it was optional.

Guy

>It wasn't the Mode that I wondered about but rather the way you were setting the Binding. Before you had "Binding Path=Action" and I suggested just "Binding Action"
>
>I am not sure about why it is not adjusting to the proper value, but it may be a property of the business object. Let me check on that.
>Tim
>
>>Hi Tim,
>>
>>I've tried with Mode=Default, and TwoWay. I just retried it to make sure. Same result. I'm leaving it as Default for now.
>>
>>However, after I put the SelectedValue section back in place (after trying Viv's first suggestion) I now notice that the combobox is regularly showing a value upon first view of the window -- although it's simply the first item in the list and is not synchronized with the primary business object's true value. I swear it was not doing this before. It wouldn't display a thing unless I forced a value into the SelectedIndex. Nevertheless, It seems like it's almost working correctly now. I just need the combobox to display the correct value upon first view of the window.
>>
>>???
>>
>>
>>
>>
>>>Guy,
>>>
>>>What happens if you set the SelectedValue more like this:
>>>
>>>SelectedValue="{Binding Action, Mode=Default}" />
>>>
>>>
>>>Tim
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform