2026年4月6日
摘要:
SidebarMenu.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micro
阅读全文
posted @ 2026-04-06 04:48
dalgleish
阅读(16)
推荐(0)
2026年4月5日
摘要:
MixedMenus.axaml <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof
阅读全文
posted @ 2026-04-05 11:56
dalgleish
阅读(23)
推荐(0)
2026年4月4日
摘要:
创建一个UserControl <UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr
阅读全文
posted @ 2026-04-04 04:00
dalgleish
阅读(16)
推荐(0)
2026年3月29日
摘要:
之前已经实现了一个简单Popup,但是没有实现超链接。现在我们有了WebView了,就可以开始魔改Hyperlink了,下一例子给出使用例子。 NavigationService.cs类,这个类可以替换跳转等。 public static class NavigationService { priv
阅读全文
posted @ 2026-03-29 15:25
dalgleish
阅读(13)
推荐(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
阅读(28)
推荐(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
阅读(77)
推荐(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
阅读(15)
推荐(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
阅读(18)
推荐(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
阅读(9)
推荐(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
阅读(18)
推荐(0)