Files
Ursa.Avalonia/README.md
Copilot 7c7701aade Add Chinese README with cross-language navigation links (#801)
* Initial plan

* Add Chinese README with cross-links

Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>

* chore: update Chinese README for clarity and accuracy

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: rabbitism <14807942+rabbitism@users.noreply.github.com>
Co-authored-by: Dong Bin <popmessiah@hotmail.com>
2025-10-22 21:05:57 +08:00

93 lines
2.8 KiB
Markdown

# Ursa
English | [简体中文](README.zh-CN.md)
<p align="center">
<img src="./assets/Ursa.svg" alt="drawing" width="150" />
</p>
[![Irihi.Ursa](https://img.shields.io/nuget/v/Irihi.Ursa.svg?color=red&style=flat-square)](https://www.nuget.org/packages/Irihi.Ursa/)
[![Irihi.Ursa](https://img.shields.io/nuget/dt/Irihi.Ursa.svg?style=flat-square)](https://www.nuget.org/packages/Irihi.Ursa/)
[![GitCode](https://gitcode.com/IRIHI_Technology/Ursa.Avalonia/star/badge.svg)](https://gitcode.com/IRIHI_Technology/Ursa.Avalonia)
Ursa is an enterprise level UI library for building cross-platform applications with Avalonia UI.
![Demo](./assets/dark-demo.jpg)
## .NET Foundation
This project is supported by the [.NET Foundation](https://dotnetfoundation.org).
## Get Started
1. Ursa
Add nuget package:
```bash
dotnet add package Irihi.Ursa
```
2. Ursa.Themes.Semi
To make Ursa controls show up in your application, you need to reference to a theme package designed for Ursa.
Ursa.Themes.Semi is a theme package for Ursa inspired by Semi Design. You can add it to your project by following steps.
Add nuget package:
```bash
dotnet add package Semi.Avalonia
dotnet add package Irihi.Ursa.Themes.Semi
```
Include Styles in application:
```xaml
<Application...
xmlns:semi="https://irihi.tech/semi"
xmlns:u-semi="https://irihi.tech/ursa/themes/semi"
....>
<Application.Styles>
<semi:SemiTheme Locale="zh-CN" />
<u-semi:SemiTheme Locale="zh-CN"/>
</Application.Styles>
```
You can now use Ursa controls in your Avalonia Application.
```xaml
<Window
...
xmlns:u="https://irihi.tech/ursa"
...>
<StackPanel Margin="20">
<u:TagInput />
</StackPanel>
</Window>
```
## Code of Conduct
This project has adopted the code of conduct defined by the Contributor Covenant to clarify expected behavior in our community.
For more information see the [.NET Foundation Code of Conduct](https://dotnetfoundation.org/code-of-conduct).
## Compatibility Notice
Ursa currently is compatible with both Avalonia 11.1.x and 11.2.x, but specifically does not support Avalonia 11.2.0.
## Extensions
### Prism Extension
If you need to integrate Ursa with Prism.Avalonia, you can use the Irihi.Ursa.PrismExtension package. This package provide Dialog related services to utilize Ursa Dialogs with Prism flavor.
### ReactiveUI Extension
If need to integrate Ursa with ReactiveUI.Avalonia, you can use the Irihi.Ursa.ReactiveUIExtension package. This package implements the ReactiveUI versions of UrsaWindow and UrsaView. Please refer to [wiki](https://github.com/irihitech/Ursa.Avalonia/wiki/Ursa-ReactiveUI-extension) for detail.
## Support
We offer limited free community support for Semi Avalonia and Ursa. Please join our group via FeiShu(Lark)
<p>
<img src="./assets/community-support.png" alt="drawing" width="600" />
</p>