Author: jawc | Posted on: 6/9/2008 8:17:59 AM | Views : 325

Hello All,

I am testing a simple function of maxwidth of textblock.
The following is my code...

<UserControl x:Class="SilverlightApplication1.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Width="400" Height="300" Background="Black">

    <Canvas x:Name="LayoutRoot" Background="Yellow">
        <TextBlock x:Name="ShowText"  MaxWidth="50"  MaxHeight="100" TextWrapping="Wrap" Canvas.Left="0" Canvas.Top="0">
        Take Robert Torrey of Connecticut, the state tied with Alaska as the second most expensive for gas. After leaving work in the tow ...

Go to the complete details ...