wsick / Fayde

Inspired by Silverlight; XAML engine using Javascript and rendering to the HTML5 Canvas.
MIT License
189 stars 27 forks source link

ComboBox loosing SelectedItem during DataContext swap in ContentControl #220

Open deepaksm1 opened 8 years ago

deepaksm1 commented 8 years ago

We are maintaining DataContexts in array to use page navigations. We have back button functionality which assigns previous datacontext to ContentControl from DataContexts array. It does not restore selected item for combobox control. I think this is same issue as per Issue#219. SelectedItem property of ComboBox won't be able to find the assigned property value, During the DataContext swap.

<ComboBox ItemsSource="{Binding Path=StatesResult}" SelectedItem="{Binding Path=SelectedState, Mode=TwoWay}" />