上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页
  2025年7月21日
摘要: 关于如何把自定义控件加入到默认命名空间,请看之前的例子(https://chuna2.787528.xyz/dalgleish/p/18978564),之后不再强调,如果看不懂,那请从第一个例子开始学习。 C# Avalonia,没有内置GroupBox,但我们可以通过Style样式实现(xaml),此 阅读全文
posted @ 2025-07-21 05:31 dalgleish 阅读(344) 评论(0) 推荐(0)
摘要: LabelTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microso 阅读全文
posted @ 2025-07-21 04:46 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: ButtonWithShape.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.m 阅读全文
posted @ 2025-07-21 04:27 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: ButtonsWithContent.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2025-07-21 04:07 dalgleish 阅读(10) 评论(0) 推荐(0)
摘要: GdiTextRendering.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas. 阅读全文
posted @ 2025-07-21 03:32 dalgleish 阅读(17) 评论(0) 推荐(0)
摘要: App.axaml配置 <Application xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" x:Class="AvaloniaUI.App" Request 阅读全文
posted @ 2025-07-21 02:33 dalgleish 阅读(33) 评论(0) 推荐(0)
  2025年7月20日
摘要: DragAndDrop.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micro 阅读全文
posted @ 2025-07-20 16:53 dalgleish 阅读(91) 评论(0) 推荐(0)
摘要: 继续扩展Input类 (https://chuna2.787528.xyz/dalgleish/p/18992754),增加IPointer私有变量,用作Capture功能的实现。 private static IPointer? pointer; private static void OnRawEv 阅读全文
posted @ 2025-07-20 13:04 dalgleish 阅读(34) 评论(0) 推荐(0)
  2025年7月19日
摘要: Focus.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft.c 阅读全文
posted @ 2025-07-19 12:48 dalgleish 阅读(38) 评论(0) 推荐(0)
摘要: 实现类似WPF的KeyBoard,命名为Input类。 代码如下 using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Input.Raw; using Avalonia.Interactivity 阅读全文
posted @ 2025-07-19 12:43 dalgleish 阅读(96) 评论(0) 推荐(0)
上一页 1 ··· 13 14 15 16 17 18 19 20 21 ··· 27 下一页