示例#1
0
        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);
        }
示例#2
0
        internal void OnDeleteItem(FComboBoxItem oldItem, FComboBoxItem newItem)
        {
            RoutedPropertyChangedEventArgs <FComboBoxItem> arg = new RoutedPropertyChangedEventArgs <FComboBoxItem>(oldItem, newItem, DeleteItemEvent);

            RaiseEvent(arg);
        }