title: SharpDevelop + IronPython + WPF
body: <p>I want to create a WPF application using IronPython with SharpDevelop 4.2. But I am confused how to access my object in the Window1.xaml. </p>
  
  <p>Please help.. :)</p>
  
  <p>Here is my code created automatically by SharpDevelop 4.2:</p>
  
  <p>Window1.xaml</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  Title="wpf01"
  Height="300"
  Width="300"&gt;
  &lt;StackPanel
      Margin="15"
      x:Name="stackPanel"&gt;
      &lt;Button
          FontSize="24"
          x:Name="button"&gt;
          &lt;Button.BitmapEffect&gt;
              &lt;DropShadowBitmapEffect /&gt;
          &lt;/Button.BitmapEffect&gt;
      Push Me
      &lt;/Button&gt;
      &lt;TextBox
          x:Name="txtName"
          Width="120"
          Height="20"
          Text="aaaaa" /&gt;     
  &lt;/StackPanel&gt;
  &lt;/Window&gt;
  </code></pre>
  
  <p>Window1.py</p>
  
  <pre><code>import wpf
  
  from System.Windows import Window
  
  class Window1 (Window):
  def __init__(self):
      wpf.LoadComponent(self, 'Window1.xaml')
  </code></pre>
  
  <p>Application.py</p>
  
  <pre><code>import wpf
  
  from System.Windows import Application
  from Window1 import Window1
  
  window = Window1()
  app = Application()
  app.Run(window)
  </code></pre>