Table of Contents

Namespace SearchAThing.Desktop

Classes

Constants
Ext
GridAutoRow

Auto attach Grid.Row property to rows and expands RowDefinitions accordingly.

GridSplitterManagerLayoutItem

data structure to hold split layout info

GridSplitterManager<T>

Manage arrangement of control that allow split Vertically or Horizontally.

SmartConverter

Smart Converter

Parameter ( general form ):

  • ?FN targetValueIfMatch targetValueIfNOTMatch
  • valueToMatch targetValueIfMatch targetValueIfNOTMatch

Functions:

  • ?IsNull : true if given argument is null
  • ?{gt,lt,gte,ltq,eq} v : true if given argument equals to parameter v
  • ?{add,sub} v : add/sub v
  • ?Lighter : double given argument brighness
  • ?Lighter v : increase of given argument v=0-1 brighness
  • ?Darker : half brighness
  • ?Darker v : decrease to v=0-1 brightness
  • ?Round dec : round value number to given decimals

Supported target types:

  • boolean
  • double
  • Thickness
  • Brush
  • FontWeight

Examples ( converter parameter ):

  • true Yellow Transparent ( valueType: boolean, targetType:IBrush ) converts to Yellow if value is true or transparent if value if false
  • ?Darker 0.8 ( valueType: IBrush, targetType: IBrush ) converts to darker brush reducing at 80% its bridhtness
  • ?IsNull 1.2 4.5 ( valueType: object, targetType: double ) converts to 1.2 if value is null, 4.5 otherwise
  • true false true ( valueType: bool, targetType: bool ) converts to false if given value is true, viceversa otherwise

Enums

GridSplitDirection

splitting direction

Delegates

GridSplitterManager<T>.ConfigControlDelegate

configure control delegate

GridSplitterManager<T>.ControlEventDelegate