title: In a constructor for a WPF Window, what should go before InitializeComponent() and what after?
body: <p>In general, I've been initializing the properties of the <code>Window</code> itself before <code>InitializeComponent()</code> and setting up controls contained within afterwards.  However, I haven't been all that consistent, and I haven't really noticed a problem with the ordering. So:</p>
  
  <ul>
  <li>Am I (potentially) doing something horrible?  In particular, are there any issues with setting properties of child controls before <code>InitializeComponent()</code>? </li>
  <li>What is good style in this regard?</li>
  </ul>
  
  <p>Edit: Since the first two answers I got were a little bit contradictory, let me be more specific:</p>
  
  <pre><code>public Foo Foo {get; protected set}
  public FooWindow (Foo foo)
  {
      Foo = foo;
      this.Closing += FooWindow_Closing;
      Foo.Frobbed += Foo_Frobbed;
  
      InitializeComponent();
  
      this.DataContext = this;
      this.Title = Foo.Name() + " Window";
  
      FooListView.ItemSource = Foo.CalculateList();
  
      FocusManager.SetFocusedElement(this, FooListView);
  }
  </code></pre>
  
  <p>Is this about right?  Should I just be doing MVVM and not have anything in my <code>Window</code> constructor?</p>