I am building a usercontrol which can display data with many flags. I would like to be able to able to declare it this way, or something similar to that from the asp.net page
<ctl:DisplayItem runat="server" id="ctlTest">
<flags>
<flagIsAvailable />
<flagIsInError />
</flags>
</ctl:DisplayItem>
In my control, the flags would be a List(of PossibleFlags)
Public Enum PossibleFlags
IsInError
IsAvailable
End Enum
Public Property Flags as List(Of PossibleFlags)
Note: If possible, I would also like to know how to do it for properties that are of a custom type (not just lists or generics)