ThingLing.Avalonia.Controls.TabControl 1.0.1

Install-Package ThingLing.Avalonia.Controls.TabControl -Version 1.0.1
dotnet add package ThingLing.Avalonia.Controls.TabControl --version 1.0.1
<PackageReference Include="ThingLing.Avalonia.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.Avalonia.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.Avalonia.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.Avalonia.Controls.TabControl as a Cake Addin
#addin nuget:?package=ThingLing.Avalonia.Controls.TabControl&version=1.0.1

// Install ThingLing.Avalonia.Controls.TabControl as a Cake Tool
#tool nuget:?package=ThingLing.Avalonia.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

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 123 9/27/2021
1.0.0 145 9/25/2021