Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iupdatable/weuisharp
基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库 An unofficial UI library for Windows WeChat based on WPF implementation
https://github.com/iupdatable/weuisharp
ui wechat weuisharp wpf
Last synced: 4 days ago
JSON representation
基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库 An unofficial UI library for Windows WeChat based on WPF implementation
- Host: GitHub
- URL: https://github.com/iupdatable/weuisharp
- Owner: IUpdatable
- Created: 2021-08-19T12:49:03.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-03-09T13:17:13.000Z (12 months ago)
- Last Synced: 2024-11-15T13:01:41.554Z (3 months ago)
- Topics: ui, wechat, weuisharp, wpf
- Language: C#
- Homepage:
- Size: 929 KB
- Stars: 109
- Watchers: 3
- Forks: 26
- Open Issues: 0
-
Metadata Files:
- Readme: README-en.md
Awesome Lists containing this project
README
WeUiSharp
中文 | English
基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库
An unofficial UI library for Windows WeChat based on WPF implementation## Features
* .NET Framework >= 4.7.2
* Multi-language dynamic switching
* Dynamic theme switching (TODO: dark theme)
* MIT license, open source and free for commercial use## Overview

## Getting Started
1. Create a WPF project based on .NET Framework 4.7.2+(Recommended Use: [Prism](https://github.com/PrismLibrary/Prism) ,use [Prism Template](https://marketplace.visualstudio.com/items?itemName=BrianLagunas.PrismTemplatePack) create project);
2. NuGet install `WeUiSharp`
3. Modify `App.xaml` and add the following resources:
```xml
```
4. Modify the file `MainWindow.xaml`, change `Window` to `weui:Window`, and add a reference to `weui`:```xml
```
5. Modify `MainWindow.xaml.cs` to cancel the inheritance relationship from `Window`
```CSharp
public partial class MainWindow
{
public MainWindow()
{
InitializeComponent();
}
}
```
6. Compile and run, you should be able to see the following effect interface:
Complete code: [WeUiSharp.HelloWorld](https://github.com/IUpdatable/WeUiSharp/tree/master/Src/WeUiSharp.HelloWorld)
Complete code of Hello Wrorld project based on Prism framework: [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)## License
MIT