上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页
  2025年9月4日
摘要: 自定义扩展已经更新 https://www.cnblogs.com/dalgleish/p/18972924 LineJoins.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microso 阅读全文
posted @ 2025-09-04 10:38 dalgleish 阅读(27) 评论(0) 推荐(0)
摘要: LineCaps.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.microsof 阅读全文
posted @ 2025-09-04 10:33 dalgleish 阅读(10) 评论(0) 推荐(0)
  2025年9月3日
摘要: 官方的Polygon并没有实现FillRule,但是大家可以自己扩展,这里我用官方Path替代。 InsideOutsideFill.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.micro 阅读全文
posted @ 2025-09-03 13:25 dalgleish 阅读(16) 评论(0) 推荐(0)
摘要: PolylinesAndPolygons.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche 阅读全文
posted @ 2025-09-03 13:02 dalgleish 阅读(9) 评论(0) 推荐(0)
摘要: Viewbox可以让图形随着窗口变化而变化。 ViewboxResize.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmln 阅读全文
posted @ 2025-09-03 12:58 dalgleish 阅读(29) 评论(0) 推荐(0)
摘要: 特别提醒,只有Ellipse的Stretch是无效的,需要用Viewbox。这是Avalonia的设计问题。使用Viewbox的Stretch,会缩放StokeThiness,所以边框会变粗,建议自己实现一个Ellipse类,实现Stretch功能。 FillModes.axaml代码 <Windo 阅读全文
posted @ 2025-09-03 12:49 dalgleish 阅读(41) 评论(0) 推荐(0)
摘要: RoundedRectangles.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas 阅读全文
posted @ 2025-09-03 11:27 dalgleish 阅读(10) 评论(0) 推荐(0)
摘要: 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 阅读(14) 评论(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 阅读(20) 评论(0) 推荐(0)
摘要: 为了展示调用动画的多种方法,这次用Behavior实现。可参考上例子IAction,更接近于wpf,但是不简洁。大家可以继承StyledElementBehavior,而不是Behavior。这样在xaml的绑定过程中,可以用x:Name命名FadeBehavior。我这里是为了测试附加属性和绑定, 阅读全文
posted @ 2025-09-02 12:17 dalgleish 阅读(21) 评论(0) 推荐(0)
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 26 下一页