TigerSan.UI 0.5.0

dotnet add package TigerSan.UI --version 0.5.0
                    
NuGet\Install-Package TigerSan.UI -Version 0.5.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="TigerSan.UI" Version="0.5.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="TigerSan.UI" Version="0.5.0" />
                    
Directory.Packages.props
<PackageReference Include="TigerSan.UI" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add TigerSan.UI --version 0.5.0
                    
#r "nuget: TigerSan.UI, 0.5.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package TigerSan.UI@0.5.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=TigerSan.UI&version=0.5.0
                    
Install as a Cake Addin
#tool nuget:?package=TigerSan.UI&version=0.5.0
                    
Install as a Cake Tool

1. Description:

A WPF UI library, containing many controls, windows, panels, and animations.

2. About:

Source Code & Example:

C#: https://pan.quark.cn/s/c1db1a17692c

Personal Homepage:

bilibili: https://space.bilibili.com/34323512

3. How To Use:

Before use, you need to reference "Generic.xaml" in "App.xaml".

<ResourceDictionary Source="pack://application:,,,/TigerSan.UI;component/Generic.xaml" />

4. Classification:

Animations:

DoubleAnimations:

FadeIn:

FadeOut:

Rotate:

ColorAnimations:

Gradient:

Attributes:

TableAttribute:

TableHeaderAttribute:

Behaviors:

MouseDragBehavior:

Controls:

TableGrid:

Major Function:

Data editing.

Change the background of the header and the item.

After modification, the item mask will automatically turn yellow.

When the data is incorrect, the item mask will automatically turn red.

Members:

TableModel:

IsVerifyOK:

Refresh:

UpdateOldRowDatas:

How to use:
  1. Define "Model":
[Table(Name = "EmployeeInfo")]
public class EmployeeInfo
{
    [TableHeader(
        Title = "Id",
        IsReadOnly = true,
        IsAllowResize = false,
        TextAlignment = TextAlignment.Center)]
    public int Id { get; set; }
    ...
}
  1. Create a List and add data:
public TableModel EmployeeTable { get; set; } = new EmployeeTable(typeof(EmployeeInfo));

private void InitTable()
{
    // Set header:
    var headerId = EmployeeTable.GetHeader(nameof(EmployeeInfo.Id));
    if (headerId == null) return;
    headerId.Converter = new Int2StringConverter();
    headerId.Background = Generic.Brand; // Set header background.
    ...

    // Set RowDatas:
    var RowDatas = new ObservableCollection<object>
    {
        new EmployeeInfo() { Id = 1, Name = "ZhangSan", Age = 18, Gender = false, Salary = 8000, JoinDate = DateTime.Now },
        ...
    };
    EmployeeTable.RowDatas = RowDatas;

    // Set item background:
    var count = EmployeeTable.RowDatas.Count;
    for (int iRow = 0; iRow < count; iRow++)
    {
        var item = EmployeeTable.GetItem(iRow, nameof(EmployeeInfo.Name));
        if (item == null)
        {
            LogHelper.Instance.IsNull(nameof(item));
            continue;
        }
        item.Background = Generic.Brand;
    }
}
  1. Data binding:
<controls:TableGrid TableModel="{Binding EmployeeTable}"/>

ImageButton:

PixelDot:

Loading:

Switch:

ToolBarButton:

Converters:

Bool2ResizeModeConverter:

Bool2StringConverter:

Bool2VisibilityConverter:

DateTime2StringConverter:

Double2StringConverter:

Int2StringConverter:

SortMode2VisibilityConverter:

Helpers:

GridHelper:

SetColumnSpan:

SetRowColumn:

MsgBox:

GetDialog:

ShowDialog:

ShowDialogAsync:

ShowInformation:

ShowSuccess:

ShowWarning:

ShowError:

TypeHelper:

GetProp:

DeepCopyList:

DeepCopyObject:

SystemHelper:

WINDOWPOS:

SWP_NOSIZE:

GetDpiScale:

WndProc_NoResize:

Models:

DragData:

DragEvent:

DragData:

TableModels:

HandelState:

ItemState:

ItemType:

SortMode:

ItemModelBase:

HeaderModel:

ItemModel:

TableModel:

The ItemModels initialization will only be triggered

when RowDatas is assigned a value!

Verifications:

Panels:

HorizontalAveragePanel:

VerticalAveragePanel:

Styles:

Global:

Colors, Constant.

ButtonStyle:

ButtonStyle: Global.

ScreenSaverButtonStyle:

FileSelectorButtonStyle:

LableButtonStyle:

CheckBoxStyle:

CheckBoxStyle: Global.

ContextMenuStyle:

ContextMenuStyle: Global.

ItemContainerStyle:

MenuScrollButton:

ItemContainerStyle:

MenuItemStyle:

RadioButtonStyle:

RadioButtonStyle: Global.

ScrollViewerStyle:

ScrollViewerStyle:

ScrollViewerStyle: Global.

SquareButtonStyle:

SquareButtonStyle:

TabItemStyle:

TabControlStyle: Global.

TabItemStyle: Global.

TextBlockStyle:

TitleTextBlockStyle:

ContentTextBlockStyle:

PropNameTextBlockStyle:

PropValueTextBlockStyle:

UrlTextBlockStyle:

TextBoxStyle:

NoBorderTextBoxStyle:

CustomTextBoxTemplate:

CustomTextBoxStyle:

TextBoxStyle: Global.

Windows:

ByeWindow:

CustomWindow:

CustomWindowChrome:

NoResizeWindowChrome:

CustomWindowStyle:

CardStyle:

DialogWindow:

PopWindow:

PopWindowStyle:

Product Compatible and additional computed target framework versions.
.NET net8.0-windows7.0 is compatible.  net9.0-windows was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.5.0 0 9/26/2025