2025年7月22日
摘要:
扩展已经更新 https://chuna2.787528.xyz/dalgleish/p/18972924 由于Avalonia没有内置逻辑滚动,自己实现一个。 LogicalScrollControl类 public class LogicalScrollControl : ContentContro
阅读全文
posted @ 2025-07-22 20:23
dalgleish
阅读(16)
推荐(0)
摘要:
ScrollableTextBoxColumn.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://s
阅读全文
posted @ 2025-07-22 10:13
dalgleish
阅读(22)
推荐(0)
2025年7月21日
摘要:
TextBlock复杂的使用,请参考https://chuna2.787528.xyz/dalgleish/p/18995027 由于Avalonia没有内置Hyperlink,所以我们自己实现一个就行了。老规矩,留了一个坑,大家可以增加功能实现超链接。 Hyperlink类,移动端需要自己单独实现。(
阅读全文
posted @ 2025-07-21 12:36
dalgleish
阅读(139)
推荐(0)
摘要:
Tooltips.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof
阅读全文
posted @ 2025-07-21 09:23
dalgleish
阅读(60)
推荐(0)
摘要:
关于如何把自定义控件加入到默认命名空间,请看之前的例子(https://chuna2.787528.xyz/dalgleish/p/18978564),之后不再强调,如果看不懂,那请从第一个例子开始学习。 C# Avalonia,没有内置GroupBox,但我们可以通过Style样式实现(xaml),此
阅读全文
posted @ 2025-07-21 05:31
dalgleish
阅读(317)
推荐(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
阅读(13)
推荐(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
阅读(13)
推荐(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
阅读(8)
推荐(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
阅读(14)
推荐(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
阅读(30)
推荐(0)