Avalonia 事件转 Command Behav 处理类 # 继承自 AvaloniaObject (实际其它类也可以) # 使用 RegisterAttached 注册应用于 Interactive (发出单击事件的对象) 的 command 属性, # 当 command 属性变更时,注册对应 Interactive 属性的单击事件 # 在单击事件处理函数中调用 command using S… 2025-9-03 20:56 | 1,008 | 0 | Avalonia,c# 91 字 | 5 分钟