上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 26 下一页
  2025年8月27日
摘要: TwoResources.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr 阅读全文
posted @ 2025-08-27 12:31 dalgleish 阅读(8) 评论(0) 推荐(0)
摘要: DynamicResource.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.m 阅读全文
posted @ 2025-08-27 12:15 dalgleish 阅读(37) 评论(0) 推荐(0)
  2025年8月25日
摘要: WindowResource.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi 阅读全文
posted @ 2025-08-25 12:51 dalgleish 阅读(10) 评论(0) 推荐(0)
  2025年8月23日
摘要: 实现一个管理器,用于实现Redo和Undo。 UndoRedoManager类 public class UndoRedoManager { private readonly Dictionary<AvaloniaObject, ObjectState> objectStates = new(); 阅读全文
posted @ 2025-08-23 15:16 dalgleish 阅读(23) 评论(0) 推荐(0)
  2025年8月18日
摘要: 基于自己写的Mdi控件。ToolBar之前有一章已经说明了开源库的地址。 https://chuna2.787528.xyz/dalgleish/p/19018101 TwoDocument.axaml代码 <Window xmlns="https://github.com/avaloniaui" xm 阅读全文
posted @ 2025-08-18 12:48 dalgleish 阅读(22) 评论(0) 推荐(0)
  2025年8月11日
摘要: 自定义扩展已经更新 CustomControlWithCommand.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns: 阅读全文
posted @ 2025-08-11 09:31 dalgleish 阅读(13) 评论(0) 推荐(0)
  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 阅读(35) 评论(0) 推荐(0)
摘要: 自定义Command,默认继承于ICommand,之后的扩展会继承IRelayCommand,这样可以使用属性。[NotifyCanExecuteChangedFor(nameof(XXXX))] CustomCommand.axaml代码 <Window xmlns="https://github 阅读全文
posted @ 2025-08-08 10:44 dalgleish 阅读(38) 评论(0) 推荐(0)
摘要: ToolBar就用Github开源的组件,请大家务必尊重开源精神,如果使用了,请贴出出处。 https://github.com/Tulesha/Avalonia.Controls.ToolBar 稍微整理了下代码,把组件整合到了项目里,其中我的App.axaml配置如下,改成了FluentThem 阅读全文
posted @ 2025-08-08 09:55 dalgleish 阅读(16) 评论(0) 推荐(0)
  2025年8月6日
摘要: 扩展已更新 TestNewCommand.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche 阅读全文
posted @ 2025-08-06 11:56 dalgleish 阅读(9) 评论(0) 推荐(0)
上一页 1 ··· 9 10 11 12 13 14 15 16 17 ··· 26 下一页