/// <summary> /// CreateTextBlock - Creates a text block, adds as visual child, databinds properties and sets up appropriate event listener. /// </summary> private void CreateTextBlock() { _textContainer = new TextContainer(this, false /* plainTextOnly */); _textBlock = new TextBlock(); AddVisualChild(_textBlock); _textBlock.IsContentPresenterContainer = true; _textBlock.SetTextContainer(_textContainer); InitializeTextContainerListener(); }
/// <summary> /// CreateTextBlock - Creates a text block, adds as visual child, databinds properties and sets up appropriate event listener. /// </summary> private void CreateTextBlock() { _textContainer = new TextContainer(this, false /* plainTextOnly */); _textBlock = new TextBlock(); AddVisualChild(_textBlock); _textBlock.IsContentPresenterContainer = true; _textBlock.SetTextContainer(_textContainer); InitializeTextContainerListener(); }