2025年6月16日
摘要: 基于之前写GridSplitter,完善下另一个例子。 DoubleSplitWindow.xaml对应代码 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet 阅读全文
posted @ 2025-06-16 14:03 dalgleish 阅读(5) 评论(0) 推荐(0)
摘要: 因为C# Maui还没有把GridSplitter加入到正式支持,但是这个也不是很重要,自己实现一个就行了。继承Border可实现多种样式。 GridSplitter.cs代码 using Microsoft.Maui.Controls.Shapes; using System.Collection 阅读全文
posted @ 2025-06-16 13:43 dalgleish 阅读(6) 评论(0) 推荐(0)
摘要: 下面代码,我是放在Shares项目里的Utility文件夹里。 GridLine重写GraphicsView和IDrawable,自动适应大小。 using System; using System.Collections.Generic; using System.Linq; using Syst 阅读全文
posted @ 2025-06-16 07:07 dalgleish 阅读(4) 评论(0) 推荐(0)
  2025年6月15日
摘要: 更新Shell扩展,新增弹窗功能。https://www.cnblogs.com/dalgleish/p/18920441 BasicDialogBox.xaml代码,简单一个按钮,用于弹出对话框。 <?xml version="1.0" encoding="utf-8" ?> <ContentPa 阅读全文
posted @ 2025-06-15 10:13 dalgleish 阅读(3) 评论(0) 推荐(0)
摘要: 之前已经说过,使用MauiCommunityToolkit包了。这里不再累述。 SimpleDock.xaml代码 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dot 阅读全文
posted @ 2025-06-15 05:07 dalgleish 阅读(2) 评论(0) 推荐(0)
摘要: SimpleWrap.xaml对应代码 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas 阅读全文
posted @ 2025-06-15 01:08 dalgleish 阅读(2) 评论(0) 推荐(0)
摘要: SimpleStack.xaml代码 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns:x="http://schemas. 阅读全文
posted @ 2025-06-15 00:51 dalgleish 阅读(3) 评论(0) 推荐(0)
  2025年6月14日
摘要: 这个例子里面用Button作为菜单,写了很多例子,我们先把菜单和跳转写好,之后一个例子一个例子添加。 在AppShell.cs中添加 this.Navigate("MauiViews.MauiDemos.Book._03.LayoutPanels"); LayoutPanels.xaml代码 <?x 阅读全文
posted @ 2025-06-14 14:45 dalgleish 阅读(3) 评论(0) 推荐(0)
摘要: AppShell中添加 this.Navigate("MauiViews.MauiDemos.Book._02.Xaml2009"); Xaml2009.xaml代码 <?xml version="1.0" encoding="utf-8" ?> <ContentPage xmlns="http:/ 阅读全文
posted @ 2025-06-14 10:47 dalgleish 阅读(5) 评论(0) 推荐(0)
  2025年6月13日
摘要: 老规矩,在AppShell.xaml.cs代码中,添加一行代码,把这个demo加到导航栏中。 this.Navigate("MauiViews.MauiDemos.Book._02.NonCompiledXaml"); 因为要使用到CommunityToolkit中的DockLayout,所以请在N 阅读全文
posted @ 2025-06-13 13:29 dalgleish 阅读(3) 评论(0) 推荐(0)