Wish Class Properties with attributes

mterveen

Member
Licensed User
Longtime User
I would like to see the getter/setter property methods enhanced to include additional attributes. e.g., in one of my vb.net programs i have classes defined similar to the following:


B4X:
    <CategoryAttribute("Miscellaneous"), _
    Description("Flag if ecu data should be shown on graph display"), _
    DesignOnly(False), _
    Browsable(True), _
    Xml.Serialization.XmlIgnore(), _
    DisplayName("Graph Display")> _
    Property DisplayOnGraph() As Boolean
        Get
            Return _DisplayOnGraph
        End Get
        Set(ByVal value As Boolean)
            _DisplayOnGraph = value
        End Set
    End Property

also, would be nice to have a propertygrid view, similar to the vb.net one. e.g. loading the attributes of a class would be as simple as:

dim PG as propertygrid
dim Aclass as someclass
aclass.initialize
pg.initialize(Aclass)

which would then display all the viewable properties along with the appropriate value editor, e.g. integer fields would be edited using a default number editor for integers.
 
Top