2025年8月8日
摘要: 实现自定义DataCommands类,让其支持空Command。 public class DataCommands : IRelayCommand { public string? Name { get; set; } public KeyGesture? Gesture { get; set; 阅读全文
posted @ 2025-08-08 13:48 dalgleish 阅读(40) 评论(0) 推荐(0)
摘要: 自定义Command,默认继承于ICommand,之后的扩展会继承IRelayCommand,这样可以使用属性。[NotifyCanExecuteChangedFor(nameof(XXXX))] CustomCommand.axaml代码 <Window xmlns="https://github 阅读全文
posted @ 2025-08-08 10:44 dalgleish 阅读(46) 评论(0) 推荐(0)
摘要: ToolBar就用Github开源的组件,请大家务必尊重开源精神,如果使用了,请贴出出处。 https://github.com/Tulesha/Avalonia.Controls.ToolBar 稍微整理了下代码,把组件整合到了项目里,其中我的App.axaml配置如下,改成了FluentThem 阅读全文
posted @ 2025-08-08 09:55 dalgleish 阅读(30) 评论(0) 推荐(0)