title: How to programmatically add Spin event to DevExpress
body: <p>How to programatically add <code>Spin</code> event to DevExpress WPF <strong>SpinEdit</strong> Control?
  <br/>* Why can't DevExpress WPF works just like default WPF controls :( </p>
  
  <p><strong>XAML:</strong> </p>
  
  <pre><code>&lt;dxb:BarEditItem x:Name="spinEdit"&gt;
       &lt;dxb:BarEditItem.EditSettings&gt;
        &lt;dxe:SpinEditSettings /&gt;
       &lt;/dxb:BarEditItem.EditSettings&gt;
  &lt;/dxb:BarEditItem&gt;
  </code></pre>
  
  <p><strong>C#:</strong></p>
  
  <pre><code>public MainWindow()
  {
      InitializeComponent();
      barManager1.LayoutUpdated += new EventHandler(barManager1_LayoutUpdated);           
  }
  
  void barManager1_LayoutUpdated(object sender, EventArgs e)
  {
      if (spindEditItemLink.Editor != null)
      {
          spindEditItemLink..???.. += new ????(spinEdit1_Spin);
          barManager1.LayoutUpdated -= new EventHandler(barManager1_LayoutUpdated);
      }
  }
  
  void spinEdit1_Spin(object sender, EventArgs e)
  {
      MessageBox.Show("Foo");
  }
  </code></pre>