上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页
  2025年9月3日
摘要: Shapes.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsoft. 阅读全文
posted @ 2025-09-03 11:02 dalgleish 阅读(12) 评论(0) 推荐(0)
  2025年9月2日
摘要: 使用开源例子,小小修改了下,使用了动态加载Behavior的方法。 https://github.com/wieslawsoltes/Xaml.Behaviors DragInCanvasTest.axaml代码 <Window xmlns="https://github.com/avaloniau 阅读全文
posted @ 2025-09-02 13:07 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: 为了展示调用动画的多种方法,这次用Behavior实现。可参考上例子IAction,更接近于wpf,但是不简洁。大家可以继承StyledElementBehavior,而不是Behavior。这样在xaml的绑定过程中,可以用x:Name命名FadeBehavior。我这里是为了测试附加属性和绑定, 阅读全文
posted @ 2025-09-02 12:17 dalgleish 阅读(13) 评论(0) 推荐(0)
摘要: 配置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 阅读(17) 评论(0) 推荐(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 阅读(19) 评论(0) 推荐(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 阅读(5) 评论(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 阅读(21) 评论(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 阅读(5) 评论(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 阅读(15) 评论(0) 推荐(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 阅读(15) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 23 下一页