Tritium UI
TritiumDockHost
Dock, float, reorder, and restore tool groups inside one page.
Key features
- Stack TritiumDockGroup panels in a scrollable dock column.
- Drag a title bar to float the group, with a short move threshold so a click does not undock it.
- Snap floating groups to neighboring floats, the dock column, and the overlay edges.
- Drop a float back into the dock and choose its order from the drop position.
- Keep a pinned group on screen so it does not redock.
- Show, hide, or close a group, and listen for closed, shown, redocked, and drag-ended.
- Attach a visibility menu so the user can bring a hidden group back.
- On Windows, the title bar shows a grab cursor while the pointer is over it.
Platforms
Android, iOS, Mac Catalyst, and Windows 10 version 19041 and later (.NET 10 MAUI). The title-bar grab cursor is shown on Windows.
Main API
- AddGroup . Places a dock group in the column, optionally at an index.
- FloatGroup . Undocks a group into the floating layer.
- RedockGroup . Puts a floating group back into the dock column.
- GroupClosed . Fires when a group is closed; GroupRedocked fires when it returns to the dock.
Basic example
Declare this namespace on the page.
xmlns:dock="clr-namespace:Tritium.Maui.Docking;assembly=Tritium.Maui.Docking"
<dock:TritiumDockHost x:Name="Dock" SnapToNeighbors="True" /> Add the package source from your license, then reference the package that includes this control. These packages are not on the public NuGet Gallery.