title: How programatically collapse Expander in Silverlight?
body: <p>I need to be able to collapse expander on clicking anywhere outside the expander area. I am wondering what technique can be used. Any advice is highly appreciated.</p>
  
  <p>Expander XAML - set binding to isExpanded:</p>
  
  <pre><code> &lt;toolkit:Expander Header="Tasks" IsExpanded="{Binding IsExpanded}"&gt;
  </code></pre>
  
  <p>Code behind:</p>
  
  <pre><code>    public bool IsExpanded
      {
          get { return _isExpanded; }
          set
          {
              if (value == _isExpanded)
                  return;
              _isExpanded = value;
              OnPropertyChanged("IsExpanded");
          }
      }
  </code></pre>