TigerSan.UI
0.5.0
dotnet add package TigerSan.UI --version 0.5.0
NuGet\Install-Package TigerSan.UI -Version 0.5.0
<PackageReference Include="TigerSan.UI" Version="0.5.0" />
<PackageVersion Include="TigerSan.UI" Version="0.5.0" />
<PackageReference Include="TigerSan.UI" />
paket add TigerSan.UI --version 0.5.0
#r "nuget: TigerSan.UI, 0.5.0"
#:package TigerSan.UI@0.5.0
#addin nuget:?package=TigerSan.UI&version=0.5.0
#tool nuget:?package=TigerSan.UI&version=0.5.0
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:
- Define "Model":
[Table(Name = "EmployeeInfo")]
public class EmployeeInfo
{
[TableHeader(
Title = "Id",
IsReadOnly = true,
IsAllowResize = false,
TextAlignment = TextAlignment.Center)]
public int Id { get; set; }
...
}
- 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;
}
}
- 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:
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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
-
net8.0-windows7.0
- Prism.Unity (>= 9.0.537)
- TigerSan.CsvLog (>= 1.2.0)
- TigerSan.IconOperation (>= 1.0.1)
- TigerSan.JsonConverter (>= 1.0.1)
- TigerSan.PathOperation (>= 1.1.5)
- TigerSan.TimerHelper.WPF (>= 1.0.3)
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 |