title: How to resize the user control in wpf at runtime
body: <p>Am newbie to wpf development.In my wpf app i used <strong>user control</strong>.what i need is in runtime how can <strong>resize the user control</strong>,</p>
  
  <p>Please help me to find solution,if my approach is wrong please guide me to get solution,</p>
  
  <p>My XAML code is </p>
  
  <pre><code>&lt;UserControl x:Class="test.pad"
               xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
               xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
               xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
               xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
               mc:Ignorable="d" 
               d:DesignHeight="300" d:DesignWidth="300" Focusable="True" OverridesDefaultStyle="False"&gt;
  
      &lt;Grid Width="102" Height="123" Name="Grid1" MouseMove="Grid1_MouseMove" MouseUp="Grid1_MouseUp" MouseDown="Grid1_MouseDown"&gt;
          &lt;Grid.RenderTransform&gt;
              &lt;TranslateTransform x:Name="tt"/&gt;
          &lt;/Grid.RenderTransform&gt;
  
          &lt;Border BorderBrush="Silver" BorderThickness="2"&gt;
  
              &lt;Canvas Height="120" HorizontalAlignment="Left" Margin="0,1,0,0" Name="canvas1" VerticalAlignment="Top" Width="100" Grid.ColumnSpan="2"&gt;
                  &lt;RichTextBox Height="98" HorizontalAlignment="Left" Margin="0,24,0,0" Name="richTextBox1" VerticalAlignment="Top" Width="100" BorderThickness="2" Grid.ColumnSpan="2" Background="#FFFF96D8" Canvas.Top="-3" Canvas.Left="-1" /&gt;
                  &lt;Button BorderBrush="#FFFF96D8" Canvas.Left="46" Canvas.Top="-2" Height="23" Name="close" Width="27"&gt;
  
                  &lt;/Button&gt;
                  &lt;Button Height="23" Name="minimise" Width="27" BorderBrush="#FFFF96D8" Click="button1_Click" Canvas.Left="72" Canvas.Top="-2" ClipToBounds="False" IsEnabled="True" IsHitTestVisible="True" OverridesDefaultStyle="False" ForceCursor="False" Foreground="Black" MouseMove="button1_MouseEnter" MouseLeave="button1_MouseLeave"&gt;
  
              &lt;/Canvas&gt;
  
          &lt;/Border&gt;
  
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p>thanks 
  ash</p>