Expanders

Jan 5, 2011 at 7:57 PM

How can I have a single page with expandable categories instead of tabs?

 

Thanks,

Bill

Jan 5, 2011 at 8:16 PM

Ended up just doing this:

                PropertyDialog dlg = new PropertyDialog { DataContext = DataContext};
                dlg.PropertyControl.ShowReadOnlyProperties = false;
                dlg.PropertyControl.ShowTabs = false;
                dlg.PropertyControl.ShowCategoriesAs = ShowCategoriesAs.Expander;
                dlg.ShowDialog();

Maybe there's some better way to skin the cat?

Thanks,

Bill

Coordinator
Jan 6, 2011 at 3:40 AM

hi Bill,

yes, the way you are doing it should be ok.

Currently there are only three templates for the categories, I will consider adding Hidden (no categories shown at all) and CategoryTemplate (where the user can provide a category DataTemplate).