摘要: C# avalonia没有内置判断属性是否绑定的代码,所以我们自己扩展实现一个。这个扩展可以用于动态解绑和绑定属性。基于我写的自定义扩展。 https://www.cnblogs.com/dalgleish/p/18972924 AvaloniaObjectExtensions代码 using Av 阅读全文
posted @ 2025-08-05 07:04 dalgleish 阅读(33) 评论(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 阅读(192) 评论(0) 推荐(0)
 
摘要: 完整的教程,快要完结了。最近比较忙,更新慢,但是代码都写好了。之后大家可以持续关注,前面的例子已经开放了基于Avalonia的播放器代码,之后的例子陆续会有内嵌浏览器(这个代码,增加了cookie的显示和修改,当然大家可以发挥,写成自动爬虫等。等到了这个例子,大家就知道了)和基于Avalonia最新 阅读全文
posted @ 2025-07-05 14:17 dalgleish 阅读(904) 评论(0) 推荐(1)
  2026年1月30日
摘要: 常常看我的置顶,随时更新。https://www.cnblogs.com/dalgleish/p/18967204 最后的项目打包代码里,会有很多抽象通用StoreDB类等,用于加载SQLite,Json和Xml。通过动态解析类名,来匹配数据。由于代码太长,我就放到最后完结时,项目打包里。 Data 阅读全文
posted @ 2026-01-30 12:25 dalgleish 阅读(10) 评论(1) 推荐(0)
  2026年1月19日
摘要: VariedStyles.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.micr 阅读全文
posted @ 2026-01-19 05:15 dalgleish 阅读(9) 评论(0) 推荐(0)
  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 阅读(14) 评论(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 阅读(13) 评论(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 阅读(13) 评论(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 阅读(9) 评论(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 阅读(9) 评论(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 阅读(7) 评论(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 阅读(5) 评论(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 阅读(9) 评论(0) 推荐(0)