Esempio n. 1
0
        private void InsertBlock()
        {
            //Create
            Block tagBlock = TagField.Create();

            TagField.BlockList.Insert(selectedBlockIndex, tagBlock);
            BlockList.Insert(selectedBlockIndex, new TagBlockModel()
            {
                Owner = Owner, TagBlock = tagBlock
            });

            //Notify Changes
            NotifyPropertyChanged(nameof(HasBlocks));

            //Set
            SelectedBlockIndex = TagField.BlockList.IndexOf(tagBlock);
            NotifyValueChanged();
        }