# WeUiSharp
**Repository Path**: wpf-interface/WeUiSharp
## Basic Information
- **Project Name**: WeUiSharp
- **Description**: 基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库 An unofficial UI library for Windows WeChat based on WPF implementation
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 3
- **Created**: 2024-07-04
- **Last Updated**: 2025-06-24
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
WeUiSharp
中文 | English
基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库
An unofficial UI library for Windows WeChat based on WPF implementation
## Features
* .NET Framework >= 4.7.2
* 多语言动态切换
* 主题动态切换(TODO:深色主题)
* MIT 协议,开源可商用
## Overview

## Getting Started
1. 创建一个基于.NET Framework 4.7.2+ 的WPF项目(推荐使用:[Prism](https://github.com/PrismLibrary/Prism) 框架,直接使用 [Prism模板](https://marketplace.visualstudio.com/items?itemName=BrianLagunas.PrismTemplatePack) 创建项目);
2. NuGet 安装 `WeUiSharp`
3. 修改文件 `App.xaml`,添加以下资源:
```xml
```
4. 修改文件 `MainWindow.xaml`,将 `Window` 改为 `weui:Window`,并添加 `weui` 的引用:
```xml
```
5. 修改 `MainWindow.xaml.cs`,取消从 Window 的继承关系
```CSharp
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent();
}
}
```
6. 编译运行,应该就可以看到下面效果的界面:

完整代码:[WeUiSharp.HelloWorld](https://github.com/IUpdatable/WeUiSharp/tree/master/Src/WeUiSharp.HelloWorld)
基于 Prism 框架的 Hello Wrorld 项目完整代码: [WeUiSharp.HelloWorldWithPrism](https://github.com/IUpdatable/WeUiSharp/tree/master/Src/WeUiSharp.HelloWorldWithPrism)
## Components
* [Window](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#Window)
* [Button](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#Button)
* [ToggleButton](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#ToggleButton)
* [PathButton](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#PathButton)
* [IconButton](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#IconButton)
* [Field](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#Field)
* [CheckBox](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#CheckBox)
* [ComboBox](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#ComboBox)
* [MessageBox](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#MessageBox)
* [ContextMenu](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#ContextMenu)
* [Toast](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#Toast)
* [Alert](https://github.com/IUpdatable/WeUiSharp/wiki/2.-Components#Alert)
## Feedback
**PS: 最近在找工作,有工作推荐的也可以联系我。**
* 邮箱:IUpdatable@163.com
* 微信公众号:
## License
MIT