Guest User

Untitled

a guest
Mar 21st, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. CommandViewModel item = CurrentItemSource?.FirstOrDefault();
  2.  
  3. CurrentItemSource = new ObservableCollection<CommandViewModel>();
  4.  
  5. if (Application.Current != null)
  6. {
  7. Application.Current.Dispatcher.BeginInvoke(new Action(() =>
  8. {
  9. CurrentItemSource.EnableCollectionSynchronization();
  10. }));
  11. }
  12.  
  13. <ComboBox ItemsSource="{Binding CurrentItemSource}"/>
Add Comment
Please, Sign In to add comment