摘要: C# avalonia没有内置判断属性是否绑定的代码,所以我们自己扩展实现一个。这个扩展可以用于动态解绑和绑定属性。基于我写的自定义扩展。 https://www.cnblogs.com/dalgleish/p/18972924 AvaloniaObjectExtensions代码 using Av 阅读全文
posted @ 2025-08-05 07:04 dalgleish 阅读(34) 评论(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 阅读(199) 评论(0) 推荐(0)
 
摘要: 完整的教程,快要完结了。最近比较忙,更新慢,但是代码都写好了。之后大家可以持续关注,前面的例子已经开放了基于Avalonia的播放器代码,之后的例子陆续会有内嵌浏览器(这个代码,增加了cookie的显示和修改,当然大家可以发挥,写成自动爬虫等。等到了这个例子,大家就知道了)和基于Avalonia最新 阅读全文
posted @ 2025-07-05 14:17 dalgleish 阅读(929) 评论(0) 推荐(1)
  2026年2月20日
摘要: DataGridGrouping.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas. 阅读全文
posted @ 2026-02-20 12:10 dalgleish 阅读(1) 评论(0) 推荐(0)
  2026年2月18日
摘要: DirectoryTreeView.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas 阅读全文
posted @ 2026-02-18 11:11 dalgleish 阅读(2) 评论(0) 推荐(0)
  2026年2月16日
摘要: BoundTreeView.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mic 阅读全文
posted @ 2026-02-16 10:04 dalgleish 阅读(6) 评论(0) 推荐(0)
  2026年2月14日
摘要: CustomListViewTest.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2026-02-14 12:27 dalgleish 阅读(4) 评论(0) 推荐(0)
  2026年2月13日
摘要: BasicListView.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schemas.mic 阅读全文
posted @ 2026-02-13 10:25 dalgleish 阅读(3) 评论(0) 推荐(0)
  2026年2月12日
摘要: NavigateCollection.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://schema 阅读全文
posted @ 2026-02-12 13:23 dalgleish 阅读(4) 评论(0) 推荐(0)
  2026年2月11日
摘要: ComboBoxSelectionBox.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche 阅读全文
posted @ 2026-02-11 11:23 dalgleish 阅读(5) 评论(0) 推荐(0)
  2026年2月10日
摘要: ExpandingDataTemplate.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sch 阅读全文
posted @ 2026-02-10 12:53 dalgleish 阅读(5) 评论(0) 推荐(0)
  2026年2月9日
摘要: 最终项目中,我已经把SingleCriteriaHighlightTemplateSelector写成了通用类,支持复杂的模板选择。这里先给出SingleCriteriaHighlightTemplateSelector的代码,作为例子展示。 SingleCriteriaHighlightTempl 阅读全文
posted @ 2026-02-09 11:34 dalgleish 阅读(2) 评论(0) 推荐(0)
摘要: DataTemplateControls.axaml代码 <Window xmlns="https://github.com/avaloniaui" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:d="http://sche 阅读全文
posted @ 2026-02-09 04:17 dalgleish 阅读(6) 评论(0) 推荐(0)