Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
WPF ComboBox Problem
Message
De
02/07/2010 16:19:58
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
 
À
02/07/2010 15:31:27
Guy Pardoe
Pardoe Development Corporation
Peterborough, New Hampshire, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Divers
Thread ID:
01471290
Message ID:
01471321
Vues:
34
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
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform