Home Forums WPF controls Xceed Toolkit Plus for WPF WPF Propertygrid expand/collapse Category

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • Daniel86
    Participant
    Post count: 2
    #44349 |

    I use the WPF property grid from the toolkit plus. Now i want to bind specific Categories to expand or collapse.
    How can I implement this in with current version of toolkit plus?

    I have tryed to set a style setter on xaml, which bind a type of toogle button (is a part of category), but this do not synchronize IsChecked with IsExpanded.

    Does anyone have a advice or tip?
    Thank you very much

    Fawzi [Xceed]
    Member
    Post count: 722

    Hi,

    You can load your app with expanded/collpased categories by setting the ExpandedCategory attribute on your class object (no binding):
    [CategoryOrder(“Information”, 0)]
    [CategoryOrder( “Conections”, 1 )]
    [ExpandedCategory( “Conections”, false )]
    public class MyClass
    {
    [Category( “Information” )]
    public bool IsMale { get; set; }

    [Category( “Conections” )]
    public string FirstName { get; set; }
    }

    But binding on Categories ? We would need more details of what you are trying to do.

    You can have a look at our LiveExplorer to see some examples of PropertyGrid uses. It is available here : http://forums.xceed.com/xceed-toolkit-plus-for-wpf/.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.