Hello All
I am trying to bind a combo box with some data. The problem is that I have the data in the combo box like this:
<ComboBox>
<ComboBoxItem>Item 1</ComboBoxItem>
<ComboBoxItem>Item 2</ComboBoxItem>
<ComboBoxItem>Item 3</ComboBoxItem>
<ComboBoxItem>Item 4</ComboBoxItem>
<ComboBoxItem>Item 5</ComboBoxItem>
</ComboBox>
when the form with the combo box is loaded I have a Resource loaded that has an int that I want to bind it to this combo box. So if that int is 1 i want the combo box to show Item 1 etc. and when I change the item of the combo box I want to update that int accordingly.
Is there a way to bind this resource to the combo box to achive that?
Thank you in advance