Dragablz Documentation

repository·master·Indexed 25 days ago

https://github.com/butchersboy/dragablz

A WPF library providing a tearable tab control that enables docking, floating tool windows, and MDI patterns. It supports MVVM, targets .NET 4.* frameworks, and integrates with MahApps.Metro and Material Design in XAML Toolkit.

Tokens
460
Snippets
1
Records
2
Agent score
31%

What's inside Dragablz

  1. Overview of Dragablz features

    master

    Dragablz is a WPF library providing a tearable tab control with the following capabilities:

    • Tab Interaction: Drag and tear tabs out of the main control.
    • Layout Management: Supports user-friendly docking, floating tool windows, and MDI (Multiple Document Interface).
    • Architecture: Supports MVVM and is a single lightweight assembly targeting .NET 4.* frameworks with no additional dependencies.
    • Styling: Fully style-able with built-in support for:
      • Basic theme
      • MahApps.Metro
      • Material Design in XAML Toolkit
      • Chrome-style trapezoid tabs
    • Windowing: Includes a custom (optional) Window that supports transparency, resizing, snapping, and full window content.
  2. Implement a basic tearable tab control with TabablzControl

    master

    To create a tab control where tabs can be dragged and torn out, use the dragablz:TabablzControl. You must provide an InterTabController within the InterTabController property to enable the tearing functionality. The control accepts standard WPF TabItem elements as children.

    <dragablz:TabablzControl Margin="8">
        <dragablz:TabablzControl.InterTabController>
            <dragablz:InterTabController />
        </dragablz:TabablzControl.InterTabController>
        <TabItem Header="Tab No. 1" IsSelected="True">
            <TextBlock>Hello World</TextBlock>
        </TabItem>
        <TabItem Header="Tab No. 2">
            <TextBlock>We Have Tearable Tabs!</TextBlock>
        </TabItem>
    </dragablz:TabablzControl>