locked
How to put browsable properties of a UserControl derived class into a category?

    Question

  • A property like the following is always put in the Miscellaneous category:

    [EditorBrowsable(EditorBrowsableState.Always)]
    public String sFoo { get; set; }

    How can a property be added to other categories such as Interactions, Layout.  I am asking this out of curiosity. Miscellaneous is not a bad place, and it may be the most appropriate place in many cases. 


    Hong

    Thursday, May 29, 2014 9:27 PM

Answers

  • Hi Hong,

    Normally the category of the properties is defined by the [Category("xxxx")] above the method, however I don't think Windows Store App support this: CategoryAttribute Class. I'm afraid you can't customize it.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, May 30, 2014 6:51 AM
    Moderator

All replies

  • Hi Hong,

    Normally the category of the properties is defined by the [Category("xxxx")] above the method, however I don't think Windows Store App support this: CategoryAttribute Class. I'm afraid you can't customize it.

    --James


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.

    Friday, May 30, 2014 6:51 AM
    Moderator
  • Thanks for the clarification, Jamles.  

    Hong

    Friday, May 30, 2014 11:24 AM