Skip to content

JakeGinnivan/UITextBlock

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
 
 
 
 
 
 

UITextBlock

Wpf TextBlock that supports UI Automation and some other nice things like:

Simply use the 'Label' type if using Project white.

Tooltip when trimmed

When you use TextTrimming="CharacterEllipsis" or TextTrimming="WordEllipsis", if the TextBlock has been trimmed you will get a tooltip automatically

Shrink Font Size to fit

<UITextBlockControl:UITextBlock Text="{Binding Something} ShrinkFontSizeToFit="True" 
                                Grid.Row="3" HorizontalAlignment="Stretch" MinFontSize="10"
                                TextTrimming="CharacterEllipsis" />

If the text cannot fit into the space, it will drop the font size until it hits the MinFontSize (or keep dropping to 1pt). Once it hits the min it will start using TextTrimming.

Install

Install-Package UITextBlock

Thinking about distributing a source version too, thoughts?

About

Wpf TextBlock that supports UI Automation and some other nice things

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages