C # Listing / Collection for UI / Web UI Development Support?

I hit my head against a brick wall with this little problem from Thursday, and I'm still no closer to the answer than then.

I have a user control that has the following property:

/// <summary>
/// Gets or sets the media types.
/// </summary>
/// <value>The media types.</value>
public List<MediaType> MediaTypesFilter { get; set; }

MediaType is an enumeration containing None, PDF, Image, etc.

I would like to be able to set user management media types during development (using intellisense), for example:

<CMS:MediaPicker ID="MediaPicker runat="server" MediaTypesFilter="PDF, Image">

or, most likely, this will lead to something like this:

<CMS:MediaPicker ID="MediaPicker" runat="server">
    <MediaTypesFilter>
        <MediaType>PDF</MediaType>
        <MediaType>Image</MediaType>
    </MediaTypesFilter>
</CMS:MediaPicker>

, , DesignerSerializationVisbility .., . CollectionEditors, , , , CollectionEditor , , CollectionEditor. , , . , Enum, . - , , ?

, , , intellisense , .

+5
1

. . .

[Browseable(true)]

using System.ComponentModel;

. - ASP.NET HTML.

+2

All Articles