1 2 3 4 5 ··· 23 下一页
 
摘要: C# avalonia没有内置判断属性是否绑定的代码,所以我们自己扩展实现一个。这个扩展可以用于动态解绑和绑定属性。基于我写的自定义扩展。 https://www.cnblogs.com/dalgleish/p/18972924 AvaloniaObjectExtensions代码 using Av 阅读全文
posted @ 2025-08-05 07:04 dalgleish 阅读(30) 评论(0) 推荐(0)
 
摘要: Avalonia配置,参考https://www.cnblogs.com/dalgleish/p/18967204 随时更新,目前已支持多个cs文件动态编译。 AvaloniaExtensions.cs代码 using Avalonia; using Avalonia.Controls; using 阅读全文
posted @ 2025-07-08 14:10 dalgleish 阅读(166) 评论(0) 推荐(0)
 
摘要: 1. 安装VS 2022 2. 打开x64 Native Tools Command Prompt for VS 2022,输入下面指令获取Avalonia模板 dotnet new install Avalonia.Templates 3. 在扩展中搜索“Avalonia for Visual S 阅读全文
posted @ 2025-07-05 14:17 dalgleish 阅读(755) 评论(0) 推荐(1)
  2026年1月5日
摘要: CheckBoxList.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr 阅读全文
posted @ 2026-01-05 06:54 dalgleish 阅读(9) 评论(0) 推荐(0)
  2026年1月4日
摘要: 自定义扩展已经更新,增加了MessageBox类。https://www.cnblogs.com/dalgleish/p/18972924 RadioButtonList.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="h 阅读全文
posted @ 2026-01-04 03:16 dalgleish 阅读(8) 评论(0) 推荐(0)
  2026年1月2日
摘要: 自己写一个ObjectDataProvider类 ObjectDataProvider.cs代码 using CommunityToolkit.Mvvm.ComponentModel; using System; using System.Collections; using System.Coll 阅读全文
posted @ 2026-01-02 08:00 dalgleish 阅读(6) 评论(0) 推荐(0)
  2026年1月1日
摘要: ValidationTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mi 阅读全文
posted @ 2026-01-01 08:54 dalgleish 阅读(6) 评论(0) 推荐(0)
  2025年12月18日
摘要: VirtualizationTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2025-12-18 11:28 dalgleish 阅读(8) 评论(0) 推荐(0)
  2025年12月17日
摘要: BindToLinqFilteredCollection.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="htt 阅读全文
posted @ 2025-12-17 12:38 dalgleish 阅读(4) 评论(0) 推荐(0)
  2025年12月16日
摘要: BindToDataSet.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mic 阅读全文
posted @ 2025-12-16 15:05 dalgleish 阅读(3) 评论(0) 推荐(0)
  2025年12月14日
摘要: BindToCollection.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas. 阅读全文
posted @ 2025-12-14 10:54 dalgleish 阅读(8) 评论(0) 推荐(0)
  2025年12月13日
摘要: EditProductObject.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas 阅读全文
posted @ 2025-12-13 12:58 dalgleish 阅读(4) 评论(0) 推荐(0)
  2025年12月10日
摘要: (之后不再重复申明)19章中,所有例子都基于https://www.cnblogs.com/dalgleish/p/19331015 BindProductObject.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="ht 阅读全文
posted @ 2025-12-10 13:21 dalgleish 阅读(4) 评论(0) 推荐(0)
1 2 3 4 5 ··· 23 下一页