Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

Awesome Lists containing this project

README

        


WeUiSharp


中文 | English


基于 WPF 实现的仿 Windows 桌面版微信 UI 界面库

An unofficial UI library for Windows WeChat based on WPF implementation



.NET Framework Version

nuget-version


Nuget

## 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

![Overview](https://raw.githubusercontent.com/IUpdatable/WeUiSharp/master/Resources/Overview.png)

## 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:

![Hello Wrorld](https://raw.githubusercontent.com/IUpdatable/WeUiSharp/master/Resources/HelloWeUiSharp.png)

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