Exemplo n.º 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);
        }
Exemplo n.º 2
0
        internal void OnDeleteItem(FComboBoxItem oldItem, FComboBoxItem newItem)
        {
            RoutedPropertyChangedEventArgs <FComboBoxItem> arg = new RoutedPropertyChangedEventArgs <FComboBoxItem>(oldItem, newItem, DeleteItemEvent);

            RaiseEvent(arg);
        }