title: Filling Browser Window with Silverlight Application
body: <p>I want my Silverlight app to fill the entire browser window. I've set the plugin object width and height to 100%, and set my LayoutRoot container's height and width to Auto, but still no luck. Any suggestions?</p>
  
  <pre><code>&lt;form id="form1" runat="server"&gt;
      &lt;asp:ScriptManager ID="ScriptManager1" runat="server" /&gt;
      &lt;asp:Silverlight ID="Silverlight1" runat="server" 
          Source="~/ClientBin/Client.xap"
          MinimumVersion="2.0.30818.0"
          AutoUpgrade="true"
          Height="100%" 
          Width="100%"&gt;
      &lt;/asp:Silverlight&gt;
  &lt;/form&gt;
  
  &lt;UserControl 
      x:Class="Client.Page"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
      Height="Auto"
      Width="Auto"&gt;
      &lt;Grid 
          x:Name="LayoutRoot" 
          Background="#084E85"
          ShowGridLines="True"&gt;
          &lt;Grid.ColumnDefinitions&gt;
              &lt;ColumnDefinition Width="280" /&gt;
              &lt;ColumnDefinition Width="Auto" /&gt;
          &lt;/Grid.ColumnDefinitions&gt;
          &lt;Grid.RowDefinitions&gt;
              &lt;RowDefinition Height="80" /&gt;
              &lt;RowDefinition Height="Auto" /&gt;
              &lt;RowDefinition Height="600" /&gt;
          &lt;/Grid.RowDefinitions&gt;
  
          ...Remaining content here...
      &lt;/Grid&gt;
  &lt;/UserControl&gt;
  </code></pre>
  
  <p><strong>Disclaimer:</strong> I searched for an answer first, finding <a href="https://stackoverflow.com/questions/441143/silverlight-make-same-size-as-browser-frame">this thread</a>. However, as you can see by my code that isn't working for me.</p>