xamarin - Is there a way that I can add the ColumnDefinitions into the <grid> -


my code looks this:

<grid verticaloptions="centerandexpand" padding="20, 0">    <grid.columndefinitions>       <columndefinition width="*" />       <columndefinition width="auto" />    </grid.columndefinitions>    <local:labelbodyrendererclass horizontaloptions="startandexpand" text="show subcategory" yalign="center" xalign="center" />    <switch x:name="swtswitch" grid.column="1" toggled="swtswitch" verticaloptions="center" horizontaloptions="end" /> </grid> 

is there way can add columndefinitions element? ide showing it's option don't know how specify them.

i don't think can define attribute. , if could, wreck readability. because columndefinition complex type, have type string representation of it, array, inside attribute.

if want clean code, create own, custom grid has columns predefined, have expose views properties, fill column. so, save few lines of column definitions.


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -