preamble
Recommended a beautiful interface, full-featured WPF custom controls repository. This repository simplifies the development process and speeds up project delivery by encapsulating a series of commonly used controls.
Introduction to Controls
The repository encapsulates a number of commonly used controls into a customized control library designed to facilitate rapid development.
By using these pre-packaged controls, you can save a lot of time and effort and focus on the implementation of the core business logic.
The control implements the function
1、Basic realization of common basic controls
The repository contains a variety of commonly used basic controls, such as buttons, text boxes, list boxes, etc. These controls have been carefully designed and optimized to meet most of the needs of conventional software development.
2, to meet the rapid development of conventional software
By integrating these basic controls, developers can quickly build user interfaces and reduce the amount of repetitive coding, thus significantly improving development efficiency.
Support Framework
By supporting multiple .NET frameworks, the repository can be adapted to different development environments and project requirements, ensuring stable operation in all situations.
- .NET Framework 4.5+
- .NET Core 3.0+
- .NET 5/6/7
- C# 9.0/VS 2022
Control Usage
Nuget packages are added as shown below:
Currently, most features are added by injection (Add) and configuration (Use).
Add
The system provides default methods, such as ().
If you don't want to use the system's default dialog box, you can re-register the interface via the register method, for example:
<IMessageDialog, MessageDialog>();
The MessageDialog is a self-implemented dialog box. The idea of other functions is similar.
UseConfigure the usage method, e.g. UseStart(l => = "HeBianGu"), for customizing the content to be displayed. The information configured in this way is saved in the Settings button page in the upper right corner of the main window, which can be custom configured and serialized to be saved locally.
Control Effects
1. Overall overview
Button controls, text input box controls, drop-down list controls, numeric controls, date selection controls, password box controls with binding support, progress bar controls, drag controls, tree controls, paging controls and other custom controls. All of the above controls have been implemented with theme color, font size switching, etc., which can meet the functions of commonly used software.
2、Control homepage
The overall main window is loaded using the ViewBox method, which is compatible when scaling the window or applying to other resolution devices.
3. Theme Setting
Theme color is mainly used to identify the part to be highlighted, currently you can choose the built-in color, you can choose to follow the system theme color, you can customize the color selection, you can use dynamic theme (i.e., set the theme to change automatically every specified time).
4、Message List
Currently there are two modes, display in the window and Window system, you can customize the display according to the needs.
5、Online upgrade
6. Navigation menu
7. Data tables
Control Cases
Project Address
GitHub:/HeBianGu/WPF-ControlBase
Gitee:/hangduoduo/WPF-ControlBase
official document
We recommend studying the official documentation for detailed API descriptions and usage examples:
/zh-cn/dotnet/api/
Online source code
It is recommended to view the online source code to get a deeper understanding of the implementation details of the control:
/
summarize
We hope that this beautiful, full-featured WPF custom controls repository can help you improve development efficiency and simplify the development process. For more useful functions and features, please visit the project address of the repository.
Through this article I hope to be able to provide you with valuable reference in the development of WPF controls. Welcome to leave a message in the comments section to share your valuable experience and suggestions.
If you found this article helpful, why don't you support it with a like? Your support is what keeps me motivated to continue sharing my knowledge. Feel free to leave a comment if you have any questions or need further help.
You can also join WeChat[DotNet Technician] community to share ideas and grow with other peers who love technology!Excellence is a habit, so feel free to leave a comment and learn!