Ejemplo n.º 1
0
 /// <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();
 }
Ejemplo n.º 2
0
 /// <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();
 }