samedi 29 mars 2014

Would like to also display ComboBoxItem with a MVVM bound combobox


Vote count:

0





<ComboBox Grid.Row="7" Grid.Column="1" x:Name="currentChore" BorderBrush="Black" BorderThickness="1" AllowDrop="True" SelectedItem="Choose Chore"
DisplayMemberPath="Summary" ItemsSource="{Binding ChoreList, Mode=TwoWay}" SelectedValue="{Binding ChoreSingle, Mode=TwoWay}">
<ComboBoxItem Content="Choose Chore" Foreground="Black"/>
<ComboBoxItem Content="Add New" Foreground="Black"/>
</ComboBox>


In my WinRT C#/XAML app I have a combobox where I'm binding to a list. The binding is working like I want, but I would like to have an item that is placed on the beginning of the list called "Choose Chore" and one at the end called "Add New"


What I have above only displays the bound list.


What can I do to get 1 or both of these items to display?



asked 51 secs ago

webdad3

2,646





Aucun commentaire:

Enregistrer un commentaire