Example #1
0
        protected virtual void OnTextBlockFormatting(TextBlockFormattingEventArgs e)
        {
            TextBlockFormattingEventHandler textBlockFormatting = this.TextBlockFormatting;

            if (textBlockFormatting == null)
            {
                return;
            }
            textBlockFormatting((object)this, e);
        }
        protected override void OnTextBlockFormatting(TextBlockFormattingEventArgs e)
        {
            TokenizedTextBlockElement textBlock = e.TextBlock as TokenizedTextBlockElement;

            if (textBlock != null)
            {
                textBlock.AllowRemove = !this.IsReadOnly && this.ShowRemoveButton;
            }
            base.OnTextBlockFormatting(e);
        }