上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页
  2025年9月24日
摘要: 在上一个AnimationPlayer例子上进行扩展,让其具备完整的小型动画功能。 AnimationPlayer类 public partial class AnimationPlayer : ObservableObject { // 内部类 public class TimedAction { 阅读全文
posted @ 2025-09-24 13:21 dalgleish 阅读(11) 评论(0) 推荐(0)
  2025年9月20日
摘要: 自己实现一个AnimationPlayer类,已完善了大部分功能。 AnimationPlayer类 public partial class AnimationPlayer : ObservableObject { // 内部类 public class TimedAction { public 阅读全文
posted @ 2025-09-20 11:31 dalgleish 阅读(9) 评论(0) 推荐(0)
  2025年9月17日
摘要: 同样用两种方式实现动画,各位自行选择。实现了一个ArithmeticConverter类。 ArithmeticConverter.cs类 using Avalonia.Data.Converters; using System; using System.Collections.Generic; 阅读全文
posted @ 2025-09-17 13:06 dalgleish 阅读(19) 评论(0) 推荐(0)
  2025年9月16日
摘要: 例子展现了两种设置动画的方法,各位自行选择。 CodeAnimation.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmln 阅读全文
posted @ 2025-09-16 11:51 dalgleish 阅读(20) 评论(0) 推荐(0)
摘要: GenerateBitmap.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi 阅读全文
posted @ 2025-09-16 09:14 dalgleish 阅读(16) 评论(0) 推荐(0)
  2025年9月15日
摘要: 目前Avalonia无法继承Effect类重写,因为构造函数是internal。我们重写一个GrayscaleImage实现灰化。 GrayscaleImage类 public class GrayscaleImage : Control { public static readonly Style 阅读全文
posted @ 2025-09-15 12:13 dalgleish 阅读(26) 评论(0) 推荐(0)
  2025年9月12日
摘要: DropShadowEffects.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas 阅读全文
posted @ 2025-09-12 10:55 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: BlurEffects.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micro 阅读全文
posted @ 2025-09-12 10:52 dalgleish 阅读(16) 评论(0) 推荐(0)
  2025年9月11日
摘要: 扩展已经更新,新增对资源和样式的动态加载。 https://www.cnblogs.com/dalgleish/p/18972924 有了这个新增功能,我们就可以单独创建一个Styles.axaml。以后样式可以独立在这里书写,我这里写了一个RadioButton的样式。 <Styles xmlns 阅读全文
posted @ 2025-09-11 13:04 dalgleish 阅读(25) 评论(0) 推荐(0)
  2025年9月8日
摘要: Drawings.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof 阅读全文
posted @ 2025-09-08 08:29 dalgleish 阅读(12) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 23 下一页