title: How do you get the client size in a Silverlight Application?
body: <p>I want to get the size of the browser window running my Silverlight Application? I've tried the following lines, but it always returns zero!</p>
  
  <pre><code>public Page()
      {
          InitializeComponent();
          Initialize();
  
      }
  
      public void Initialize()
      {
  
          WorldLimits.Y = Application.Current.Host.Content.ActualHeight;
          WorldLimits.X = Application.Current.Host.Content.ActualWidth;
  
          gameCore = new GameCore(this);
          gameTime = DateTime.Now.TimeOfDay.TotalMilliseconds / 1000;
  
      }
  </code></pre>