title: WPF page content not setting to window's size
body: <p>I made a WPF application in which. I placed a rectangle. The page is covering whole window but the size(width) of rectangle is not equal to the page.</p>
  
  <p>here is the pic.</p>
  
  <p>here is the source code of my application:</p>
  
  <pre><code>   &lt;Page x:Class="TestWpfApplication.Page1"
    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" 
    xmlns:local="clr-namespace:TestWpfApplication"
    mc:Ignorable="d" 
    d:DesignHeight="350" d:DesignWidth="525"
    Title="Page1" Background="#FF7ACBBC" ShowsNavigationUI="False"&gt;
  
  &lt;Grid&gt;
      &lt;Rectangle Fill="#FFF4F4F5" HorizontalAlignment="Left" Height="100" Stroke="Black" VerticalAlignment="Top" Width="525"/&gt;
      &lt;Label x:Name="label" Content="Heading" HorizontalAlignment="Left" Margin="222.006,25,0,0" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="22"/&gt;
      &lt;TextBlock x:Name="textBlock" HorizontalAlignment="Left" Margin="160,155,0,0" TextWrapping="Wrap" Text="And rest of the content goes here" VerticalAlignment="Top" FontFamily="Tahoma" FontSize="14"/&gt;
  
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>And </p>
  
  <pre><code> &lt;Window x:Class="TestWpfApplication.MainWindow"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
      xmlns:local="clr-namespace:TestWpfApplication"
      mc:Ignorable="d"
      Title="MainWindow" Height="350" Width="525"&gt;
  &lt;Grid&gt;
      &lt;local:Page1/&gt;
  &lt;/Grid&gt;
  </code></pre>
  
  <p></p>
  
  <p>At last App.xaml</p>
  
  <pre><code> &lt;Application x:Class="TestWpfApplication.App"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:local="clr-namespace:TestWpfApplication"
           StartupUri="page1.xaml"&gt;
  &lt;Application.Resources&gt;
  
  &lt;/Application.Resources&gt;
  </code></pre>
  
  <p></p>
  
  <p>Please help me....</p>