Monday, November 25, 2013

Count symbols in RichTextBlock WinRT

Hi MaxChase,


Yes, you can, RichTextBlock has HasOverflowContent and you could bind the overflow content to the RichTextBlockOverflow by following statement:



RichTextBlock OverflowContentTarget="{Binding ElementName=nameOfTarget}" />


And then you could use ContentStart and ContentEnd for RichTextBlockOverflow to know the TextPointer .


--James




<THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>

Thanks

MSDN Community Support



Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


No comments:

Post a Comment