Toolkit
Design-system helpers that shape controls and layouts rather than being controls themselves. They all live in the Joufflu.Toolkit namespace of the core Joufflu package — Sizing, Spacing, Derive, Tooltip, PopupPlacement, Animate, DropTarget, DropData, DragSource, SharedWidth and DataGridEditing (which the DataGrid style uses to theme the editors of its built-in columns). The theme manager, tokens and window have their own section, see Themes.
- Sizing — the
Sizing.SizeandIsSquareattached properties. - Spacing — the
Spacing.Gapattached property for gaps between children. - Derived dimensions — the
Derive.BorderThickness,Derive.CornerRadiusandDerive.Marginattached properties, with their factors scaling the value side by side, for thicknesses, radii and margins that follow the theme live. - Tooltip & popup placement — every
ToolTipthemed and placed on a side of its element;Tooltip.Placementpicks the side,Tooltip.Alignmenthow it lines up (centred by default) andTooltip.MaxWidthwhere its text wraps. ThePopupPlacement.Side,AlignmentandGapattached properties place anyPopupthe same way, flipped to the opposite side at a screen edge. - Animate — the
Animate.Bounceattached property for a looping vertical hop on any element, withBounceHeightandBounceDurationshaping it, andAnimate.Spinfor an endless turn around its centre, withSpinDurationsetting its speed. - Drag and drop — the
DropTarget.Command,IsDragOverandEffectattached properties for turning any element into a drop target, with theDropDatatelling what was dropped and where, andDragSource.Data,AllowedEffectsandIsDraggingfor turning any element into a drag source. - Shared width — the
SharedWidthdecorator and itsIsScopeattached property, which give every input of a group the width of the narrowest one so they line up across the depths of a tree. - Create a custom control — the category a control of your own belongs to (display, input, action), the tokens and states of each, then an input built step by step: background and border, height, sizes and padding, states, the validation error style and embedded buttons.
Snippets use the toolkit XML namespace for those helpers, joufflu for the design-system keys and fonts for the icons, plus feedback where an example targets one of its controls:
xmlns:joufflu="clr-namespace:Joufflu;assembly=Joufflu"
xmlns:toolkit="clr-namespace:Joufflu.Toolkit;assembly=Joufflu"
xmlns:fonts="clr-namespace:Joufflu.Assets.Fonts;assembly=Joufflu"
xmlns:feedback="clr-namespace:Joufflu.Feedback.Controls;assembly=Joufflu.Feedback"