Hi,
I need to create TextBlock control which has two Text properties: FullText and ShortText.
It should normally show FullText, and when FullText doesn't fit textblock's size, it should show ShortText.
On Android I inherited TextView element and added just one line of code to achieve this.
Is there a way to create such control as simple as on android, but for WinRT?
I consider following options:
- Converter - but I don't know how to pass element reference to converter (to get info about typeface, textsize etc.) and converter wouldn't update control after its size changed.
- Custom control with one TextBlock in its template - in this scenario I can't apply TextBlock style to my custom control
- Inherit TextBox