private FComboBoxItem GenerateComboBoxItem(FComboBoxItemModel model) { var comboBoxItem = new FComboBoxItem() { Uid = model.Uid, Content = model.Header, Value = model.Value, CanDelete = model.CanDelete, }; model.PropertyChanged += delegate { comboBoxItem.Content = model.Header; comboBoxItem.Value = model.Value; comboBoxItem.CanDelete = model.CanDelete; }; return(comboBoxItem); }
internal void OnDeleteItem(FComboBoxItem oldItem, FComboBoxItem newItem) { RoutedPropertyChangedEventArgs <FComboBoxItem> arg = new RoutedPropertyChangedEventArgs <FComboBoxItem>(oldItem, newItem, DeleteItemEvent); RaiseEvent(arg); }