Skip to content

Layout attributes overivew

ElbyFross edited this page Dec 16, 2019 · 4 revisions

Remarks

All default layout attributes divided to the four namespaces:

  • WpfHandler.UI.AutoLayout.Configuration - for attributes that affecting layout or autolayout hadndler.
  • WpfHandler.UI.AutoLayout.Controls - for attributes that cause instiniating of extra controls to the layout.
  • WpfHandler.UI.AutoLayout.Options - for attributes that affecting properties of the current control in the handler
  • WpfHandler.UI.AutoLayout.Markups - for attributes that using as markups for handlers.

Provided attributes

Layout configuration

  • BeginHorizontalGroup - starting a horizontal layout group. Could be closed by the EndGroup or LayoutLayer.GoUpper().
  • BeginVerticalGroup - starting a vertical layout group. Could be closed by the EndGroup or LayoutLayer.GoUpper().
  • EndGroup - close a last started layout group.

  • HideInInspector - exclude a member from auto-builded inspector.
  • Order - defines an order of the member into an auto-generated UI.

  • Content - defines a GUIContent applied to the member.
  • CustomControl - overrides a default control for a field type for the parent member.

Controls

  • Header - adds a Header block element to the layout.
  • Label - adds a label to the layout before the member's field.
  • Space - adds the space before the member's field. Direction of the space depends from the layout's Orientation. Space is 10 points by default.

Options

  • Background - defines a background brush of the control.
  • Foreground - defines a foreground brush of the control.
  • Style - defines a custom style from resources that will applied to the GUI element.

  • FontSize - defines a text font size for the control.
  • LabelWidth - redefines a label's width for the ILable objects.

  • Width - defines a width of GUI element.
  • MinWidth - defines a min width of the GUI element.
  • MaxWidth - defines a max width of the GUI element.

  • Height - defines a height of the GUI element.
  • MinHeight - defines a min height of the GUI element.
  • MaxHeight - defines a max allowed height of the GUI element.

  • HorizontalAlign - defines a horizontal align of the GUI element.
  • VerticalAlign - defines a vertical align of the GUI element.
  • Orientation - defines an orentation of the UI element.

  • AutoCollectionProperties - redefines default properties values for a control. Not affect any other controls.

Markups

  • TypesCompatible - defines the types the compatible with the member (usually a class with implemented IGUIField interface).
  • IGUIElementBinding - implementation of that interface marks the attribute as the one who using into specifying of a GUI element binding process.
  • EnumsCompatible - marks a GUI element as compatible with enum source fields.
  • IListCompatible - marks a GUI element as compatible with System.Collections.IList members.

Links

Realtive pages