Wish Custom View: Designer Array Property similar to Padding

Widget

Well-Known Member
Licensed User
Longtime User
When creating a custom view I'd like to have a #DesignerProperty similar to Padding (see image) where the developer can enter an array of values. As it stands now, the user has to enter a string of delimited values and strip them off using RegEx.Split.

This is hampered somewhat because if a delimited String is used to collect this information, then the #DesignerProperty DefaultValue "1,2,3,4" does not accept quotes " " or commas so I have to use ";" as in DefaultValue 1;2;3;4.

Of course using a string to enter a numeric array will not check for the number of elements or the validity of the number being entered. He could accidentally enter 32;x;2;23 and the "x" won't be discovered until the program runs and the view loaded. And 32;2;3;2;1 has the wrong number of elements which means more checking at runtime.

Since the Designer already has this property for Padding, it would be nice if the user could use it when developing his Custom Views.

TIA
 

Attachments

  • DesignerArrayProperty.png
    5.4 KB · Views: 230
Cookies are required to use this site. You must accept them to continue using the site. Learn more…