摘要:
C# avalonia没有内置判断属性是否绑定的代码,所以我们自己扩展实现一个。这个扩展可以用于动态解绑和绑定属性。基于我写的自定义扩展。 https://www.cnblogs.com/dalgleish/p/18972924 AvaloniaObjectExtensions代码 using Av
阅读全文
posted @ 2025-08-05 07:04
dalgleish
阅读(36)
推荐(0)
摘要:
Avalonia配置,参考https://www.cnblogs.com/dalgleish/p/18967204 随时更新,目前已支持多个cs文件动态编译。 AvaloniaExtensions.cs代码 using Avalonia; using Avalonia.Controls; using
阅读全文
posted @ 2025-07-08 14:10
dalgleish
阅读(238)
推荐(0)
摘要:
学习导航 - 从C# Avalonia - 导航栏开始 1. 安装VS 2022 2. 打开x64 Native Tools Command Prompt for VS 2022,输入下面指令获取Avalonia模板 dotnet new install Avalonia.Templates 3.
阅读全文
posted @ 2025-07-05 14:17
dalgleish
阅读(1073)
推荐(1)
2026年3月29日
摘要:
之前已经实现了一个简单Popup,但是没有实现超链接。现在我们有了WebView了,就可以开始魔改Hyperlink了,下一例子给出使用例子。 NavigationService.cs类,这个类可以替换跳转等。 public static class NavigationService { priv
阅读全文
posted @ 2026-03-29 15:25
dalgleish
阅读(3)
推荐(0)
2026年3月28日
摘要:
WebViewTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micro
阅读全文
posted @ 2026-03-28 14:12
dalgleish
阅读(3)
推荐(0)
2026年3月24日
摘要:
Avalonia的WebView会收费,所以自己写一个,下一个例子给出使用例子。结构示意图。 WebView.cs代码 using Avalonia; using Avalonia.Controls; using Avalonia.Data; using Avalonia.Threading; us
阅读全文
posted @ 2026-03-24 14:13
dalgleish
阅读(14)
推荐(0)
2026年3月23日
摘要:
ModernWindowChrome控件cs代码 using Avalonia; using Avalonia.Controls; using Avalonia.Controls.Metadata; using Avalonia.Controls.Primitives; using Avalonia
阅读全文
posted @ 2026-03-23 10:55
dalgleish
阅读(3)
推荐(0)
2026年3月22日
摘要:
下一个例子会把这个写成一个style + cs类,这样方便模板调用。 ModernWindow.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006
阅读全文
posted @ 2026-03-22 15:27
dalgleish
阅读(4)
推荐(0)
摘要:
TransparentWithShapes.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sch
阅读全文
posted @ 2026-03-22 06:50
dalgleish
阅读(2)
推荐(0)
2026年3月21日
摘要:
TransparentBackground.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sch
阅读全文
posted @ 2026-03-21 09:15
dalgleish
阅读(4)
推荐(0)
2026年3月20日
摘要:
OpenFileTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr
阅读全文
posted @ 2026-03-20 08:57
dalgleish
阅读(2)
推荐(0)
2026年3月19日
摘要:
自己写一个Setting类,支持jason,ini格式。直接写入和读取对象,ISettingBackend用于配置加密,压缩等自定义。 using System; using System.Collections; using System.Collections.Concurrent; using
阅读全文
posted @ 2026-03-19 11:19
dalgleish
阅读(6)
推荐(0)
2026年3月18日
摘要:
CenterScreen.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr
阅读全文
posted @ 2026-03-18 11:33
dalgleish
阅读(3)
推荐(0)