ThingLing.WPF.Controls.TabControl 1.0.1

Install-Package ThingLing.WPF.Controls.TabControl -Version 1.0.1
dotnet add package ThingLing.WPF.Controls.TabControl --version 1.0.1
<PackageReference Include="ThingLing.WPF.Controls.TabControl" Version="1.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ThingLing.WPF.Controls.TabControl --version 1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: ThingLing.WPF.Controls.TabControl, 1.0.1"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install ThingLing.WPF.Controls.TabControl as a Cake Addin
#addin nuget:?package=ThingLing.WPF.Controls.TabControl&version=1.0.1

// Install ThingLing.WPF.Controls.TabControl as a Cake Tool
#tool nuget:?package=ThingLing.WPF.Controls.TabControl&version=1.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Defination:

This tabcontrol is built from a UserControl.

Usage:

from xaml:

xmlns:tab="clr-namespace:ThingLing.Controls;assembly=ThingLing.Controls.TabControl"

Default TabMode=Document

<tab:TabControl x:Name="_tabControl" />
<tab:TabControl x:Name="_tabControl" TabMode="Document" />

or

<tab:TabControl x:Name="_tabControl" TabMode="Window" />

from code:

using ThingLing.Controls;

TabControl tabControl = new TabControl();

grid.Children.Add(tabControl);

to add a TabItem:

var tabItem = new TabItem
{
    Header = $"Hello RichTextBox {++i}",
    Content = new TextBox { Text = $"Helloo {i}", TextWrapping = TextWrapping.Wrap },
    ToolTip = $"RichTextBox {i}"
};
_tabControl.Add(tabItem);

properties:

TabMode
TabStripPlacementSide
TabItemRotationAngle
TabItemsCount
SelectedTabItem
Theme
CollapseVisibilityWhenEmpty
AlwaysVisible
HideNewTabButton
HideOpenTabsButton

methods:

Add(TabItem tabItem)
Remove(TabItem tabItem)
RemoveAt(int tabIndex)
RemoveAll()

events:

TabItemAdded
TabItemRemoved
NewTabItemButtonClicked
  • .NETFramework 4.5.2

    • No dependencies.
  • net5.0-windows7.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.1 95 9/27/2021
1.0.0 119 9/25/2021