Silverlight 4 - Trim Text in a TextBlock and display Ellipses instead

added by flyingkick
4/26/2010 12:04:09 PM

3 Kicks, 226 Views

What happens when you have text that does not fit its container? Let’s see. <Grid x:Name="LayoutRoot" Background="White" Margin="40"> <TextBlock Name="tb" Height="20" HorizontalAlignment="Left" Text="This sentence is too long to fit in here" Width="100"> </Grid>


0 comments