Hi !
I would like you to ask if it is somehow possible to provide in the ListBoxItem
the string that will appear and the value to be stored in DB.
This is indeed possible:
ItemSource={Binding MyEnumColleciton}
or
ItemSource={DynamicResource MyCollection}
etc..
but if you image that I have about 100 ListBoxes .. I don't want to have so many different enumerations and other ItemSource collections, I want to write it directly into the ListBoxItem.
This is what I'm talking about:
...
<ListBox SelectedItem="{Binding Path=MyPath1}" Style="{StaticResource RadioButtonList}">
<ListBoxItem Content="Text1" />
<ListBoxItem Content="Text2" />
</ListBox>
<ListBox SelectedItem="{Binding Path=MyPath2}" Style="{StaticResource RadioButtonList}">
<ListBoxItem Content="Text3" />
<ListBoxItem Content="Text4" />
</ListBox>
<ListBox SelectedItem="{Binding Path=MyPath3}" Style="{StaticResource RadioButtonList}">
<ListBoxItem Content="Text5" />
<ListBoxItem Content="Text6" />
</ListBox>
... 100x