# YourWeather **Repository Path**: Yu-core/YourWeather ## Basic Information - **Project Name**: YourWeather - **Description**: Blazor 跨平台入门级Demo,天气预报,Blazor WebAssembly / Blazor Server / MAUI / Winform / WPF /Photino Blazor - **Primary Language**: C# - **License**: MIT - **Default Branch**: master - **Homepage**: https://yu-core.gitee.io/yourweather/ - **GVP Project**: No ## Statistics - **Stars**: 28 - **Forks**: 12 - **Created**: 2022-10-19 - **Last Updated**: 2025-07-04 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # YourWeather [English](./README.en.md) | 简体中文 Blazor 跨平台入门级Demo,多个项目共用一个Rcl(Razor类库),通过天气API获取当前天气和天气预报,具有多个天气源,也可以选择指定位置的天气。 Blazor WebAssembly / Blazor Server / MAUI / Winform / WPF / Photino Blazor [在线演示地址(GitHub)](https://yu-core.github.io/YourWeather/) [在线演示地址(Gitee)](https://yu-core.gitee.io/yourweather/) ## 特点 - 多个天气源 - 高德地图 - OpenWeather - 和风天气 - 心知天气 - VisualCrossing - 定位 - 通过 [Darnton.Blazor.DeviceInterop](https://github.com/darnton/BlazorDeviceInterop) 实现 - Maui Blazor 中的定位权限参考 [MauiBlazorPermissionsExample](https://github.com/MackinnonBuck/MauiBlazorPermissionsExample) - 持久化存储 - Blazor WebAssembly 和 Blazor Server 中使用 localStorage - Maui Blazor 中使用 Maui 提供的首选项 - Winform、WPF 中使用 localStorage - Photino 中使用 localStorage - 主题切换 - 由 [MASA.Blazor](https://github.com/BlazorComponent/MASA.Blazor) 提供 - 额外支持 跟随系统主题 - 额外支持 Maui 状态栏/标题栏的颜色改变 - 额外支持 Winform、WPF 标题栏深色模式 - 额外支持 Photino 的 Windows标题栏深色模式 - 使用默认浏览器打开外部链接 - 通过js创建a标签 ## 截图
Blazor WebAssembly | Blazor Server | MAUI Android |
Winform | WPF | |
MAUI Windows | Photino Linux ( Deepin ) | |