上一页 1 2 3 4 5 6 7 ··· 23 下一页
  2025年10月24日
摘要: ControlTemplateBrowser.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sc 阅读全文
posted @ 2025-10-24 14:59 dalgleish 阅读(14) 评论(0) 推荐(0)
  2025年10月23日
摘要: 实现粒子效果,继承Decorator。 SonicEffect.cs using Avalonia; using Avalonia.Controls; using Avalonia.Input; using Avalonia.Interactivity; using Avalonia.Media; 阅读全文
posted @ 2025-10-23 11:27 dalgleish 阅读(8) 评论(0) 推荐(0)
  2025年10月22日
摘要: ReusableFollowExample.axaml代码 <UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http: 阅读全文
posted @ 2025-10-22 09:43 dalgleish 阅读(9) 评论(0) 推荐(0)
摘要: FollowExample.axaml代码 <UserControl xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2025-10-22 06:14 dalgleish 阅读(9) 评论(0) 推荐(0)
  2025年10月21日
摘要: SampleViewer.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr 阅读全文
posted @ 2025-10-21 09:02 dalgleish 阅读(13) 评论(0) 推荐(0)
  2025年10月20日
摘要: 结合我们之前写的AnimationPlayer,现在实现一个小游戏。 定义自己的Style,前面有例子已经说明了如何在自己的Styles.axaml中写Style。 <!-- Bomb 样式 --> <Style Selector="ContentControl.Bomb"> <Setter Pro 阅读全文
posted @ 2025-10-20 13:49 dalgleish 阅读(47) 评论(0) 推荐(0)
  2025年10月18日
摘要: FrameBasedAnimation.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schem 阅读全文
posted @ 2025-10-18 09:23 dalgleish 阅读(7) 评论(0) 推荐(0)
摘要: 写一个辅助类PathHelper,用于将PathGeometry转换为对应离散的Point,用于路径追踪。 using System; using System.Collections.Generic; using Avalonia; using Avalonia.Media; public cla 阅读全文
posted @ 2025-10-18 09:14 dalgleish 阅读(9) 评论(0) 推荐(0)
  2025年10月17日
摘要: KeySplineAnimation.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2025-10-17 13:38 dalgleish 阅读(5) 评论(0) 推荐(0)
摘要: ExpandElement2.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi 阅读全文
posted @ 2025-10-17 13:28 dalgleish 阅读(7) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 ··· 23 下一页