月度归档: 2025 年 9 月

21 篇文章

Avalonia 事件转 Command Behav
处理类 # 继承自 AvaloniaObject (实际其它类也可以) # 使用 RegisterAttached 注册应用于 Interactive (发出单击事件的对象) 的 command 属性, # 当 command 属性变更时,注册对应 Interactive 属性的单击事件 # 在单击事件处理函数中调用 command using S…