This project is read-only.

Does white support Expander created using Expression Blend

Oct 18, 2010 at 8:25 AM

I would like to expand and collapse an Expander cerated using Microsoft Expression Blend. Please let me know if white supports this control.




Oct 18, 2010 at 10:35 AM


I'm not quiet sure, but Expander are only Buttons right?


So you can get the button element, in White 2.0 you can ask the toggle status of the button.


Hope that helps.







Oct 18, 2010 at 10:58 AM

Thanks Throndorin, Expander control is actually a group box.

The below code worked from viveksingh worked for me.

// other imports
using White.Core.UIItems.WPFUIItems; //add this using allows one use Get and GetMultiple methods on any UIItem
namespace White.Core.UIItems.ListBoxItems
  public class UseExpanderControlTest
    public void Sample()
      // code to get the window object
      var expander = window.Get<GroupBox>("expander1"); //Expander control is really a GroupBox
      var buttonToExpand = expander.Get<Button>("expanderButton1");