Accueil > Non classé > AutoGrid compoment for input form

AutoGrid compoment for input form

UPDATED 12/06/2023

Many time we need a input form set in grid
however it’s unpleasant to set for each control in grid the Grid.Row and Grid.Colum when we change one or more definitions (insert or remove children)
the AutoGrid Control is made for simplify this

and extensions

and you must only set

Property Definition
ColumnsStringDefinition Set columns do you want with (separator |) with Auto, *, double value
if you use UseColumnSeparator = true, a separator is added after all columns with Size define in ColumnSeparatorSize
if you use InsideColumSeparator = true mean that separator are define in ColumnsStringDefinition like this auto|4|auto|6|*, in this cas 4, 6 are separators size
UseColumnSeparator default true
indicate we have a step of one column Between two columns in ColumnsStringDefinition
InsideColumSeparator default false
indicate that the columns separator are define in ColumnsStringDefinition (for having differents size of serparators) like this auto|20|auto|10|*
RowsStringDefinition Default row at auto
otherwize insert for each definition of a row all rows define in this with auto,* and double value if you define row in two members separate by | like auto|2 it’s mean that row size is auto and a separator sized a 2
ColumnSeparatorSize Default separator size double 4.0 if UseColumnSeparator is set to true

and in xaml
put the children in the order of appearance row then column

a new version Colored AutoGridColored with even and odd color for rows

usage

other samples

for result

and sample with columns separator inside definition

for result

Categories: Non classé Tags:
  1. Pas encore de commentaire
  1. Pas encore de trackbacks