2025年7月14日
摘要:
增加了防止重复按键功能。 KeyPressEvents.axml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http:
阅读全文
posted @ 2025-07-14 07:57
dalgleish
阅读(24)
推荐(0)
2025年7月13日
摘要:
拦截鼠标松开事件 ButtonMouseUpEvent.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http
阅读全文
posted @ 2025-07-13 11:24
dalgleish
阅读(26)
推荐(0)
摘要:
隧道事件。目前Avalonia在跨平台上,支持差点,但是Windows下拦截消息还是可以。默认是冒泡事件。 TunneledKeyPress.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.m
阅读全文
posted @ 2025-07-13 10:09
dalgleish
阅读(20)
推荐(0)
摘要:
冒泡事件 RoutedEventArgs扩展 //RoutedEventArgs扩展 public static object? OriginalSource(this RoutedEventArgs e) { return (Application.Current?.ApplicationLife
阅读全文
posted @ 2025-07-13 08:30
dalgleish
阅读(22)
推荐(0)
摘要:
支持各种形状的旋转,平移和缩放。控件IsHitTestVisible = false,即可拖动,旋转和缩放。 Manipulations.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.mic
阅读全文
posted @ 2025-07-13 06:29
dalgleish
阅读(25)
推荐(0)
2025年7月12日
摘要:
RawTouch.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof
阅读全文
posted @ 2025-07-12 13:24
dalgleish
阅读(17)
推荐(0)
2025年7月11日
摘要:
ModularContent.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi
阅读全文
posted @ 2025-07-11 14:34
dalgleish
阅读(27)
推荐(0)
摘要:
LocalizableText.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.m
阅读全文
posted @ 2025-07-11 14:09
dalgleish
阅读(22)
推荐(0)
摘要:
TextBoxColumn.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mic
阅读全文
posted @ 2025-07-11 13:57
dalgleish
阅读(21)
推荐(0)
摘要:
TheUniformGrid.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi
阅读全文
posted @ 2025-07-11 13:50
dalgleish
阅读(29)
推荐(0)