2025年9月2日
摘要:
配置NuGet包已经更新 https://www.cnblogs.com/dalgleish/p/18967204 使用自己写的MediaElement https://www.cnblogs.com/dalgleish/p/19012473 PlayMediaTest.axaml代码 <Windo
阅读全文
posted @ 2025-09-02 08:18
dalgleish
阅读(19)
推荐(0)
2025年8月28日
摘要:
创建一个ResourceDictionary <ResourceDictionary xmlns="https://github.com/avaloniaui" xmlns:local="using:AvaloniaUI.Demos.Book._10" xmlns:x="http://schemas
阅读全文
posted @ 2025-08-28 13:04
dalgleish
阅读(33)
推荐(0)
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
阅读(6)
推荐(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
阅读(27)
推荐(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
阅读(7)
推荐(0)
2025年8月23日
摘要:
实现一个管理器,用于实现Redo和Undo。 UndoRedoManager类 public class UndoRedoManager { private readonly Dictionary<AvaloniaObject, ObjectState> objectStates = new();
阅读全文
posted @ 2025-08-23 15:16
dalgleish
阅读(20)
推荐(0)
2025年8月18日
摘要:
基于自己写的Mdi控件。ToolBar之前有一章已经说明了开源库的地址。 https://www.cnblogs.com/dalgleish/p/19018101 TwoDocument.axaml代码 <Window xmlns="https://github.com/avaloniaui" xm
阅读全文
posted @ 2025-08-18 12:48
dalgleish
阅读(20)
推荐(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
阅读(11)
推荐(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
阅读(29)
推荐(0)
摘要:
自定义Command,默认继承于ICommand,之后的扩展会继承IRelayCommand,这样可以使用属性。[NotifyCanExecuteChangedFor(nameof(XXXX))] CustomCommand.axaml代码 <Window xmlns="https://github
阅读全文
posted @ 2025-08-08 10:44
dalgleish
阅读(34)
推荐(0)