随笔分类 - MAUI
摘要:前言 MAUI在Windows上现在支持未打包模式,好像是.net8开始支持的,按照此处的文档 https://learn.microsoft.com/zh-cn/dotnet/maui/windows/setup 添加 <PropertyGroup> <WindowsPackageType>Non
阅读全文
摘要:#if IOS using CoreGraphics; using Foundation; using Microsoft.Maui.Platform; using UIKit; #endif namespace YourProject { #nullable disable public clas
阅读全文
摘要:MAUI Android想做透明状态栏和导航栏,但找的代码很多都有兼容性问题,所幸看到了这篇 https://blog.csdn.net/Mr_Tony/article/details/121612215 代码不多,但嘎嘎好用 不说废话了,上代码,不好用来打我 Platforms/Android/M
阅读全文
摘要:问题描述 Maui Blazor 在Windows上,按下f5或Ctrl+R时,页面会刷新 解决办法 禁用f5和Ctrl+R 通过Webview2来禁用有点麻烦,并且不生效,所以还是添加一段JavaScript脚本,更方便一些 document.addEventListener('keydown',
阅读全文
摘要:问题描述 Maui Blazor 在Windows上的视频点击全屏按钮,只能占满应用程序的窗口,没有占据整个屏幕。这与常规浏览器中的体验是不相符的。 寻找答案 Maui Blazor 在Windows上使用WebView2,所以这个问题到 WebView2的文档 找一找 找到了一个事件 Contai
阅读全文
摘要:前言 (提示!!!.Net 8已不存在该问题,按照https://learn.microsoft.com/zh-cn/dotnet/maui/android/platform-specifics/soft-keyboard-input-mode中的方法就可以了) 最近才发现MAUI Blazor A
阅读全文
摘要://打开应用商店详情页 public async Task<bool> OpenStoreAppDetails(string appId) { string uri = string.Empty; #if WINDOWS uri = $"ms-windows-store://pdp/?Product
阅读全文
摘要:如下图所示,MAUI中Windows下的标题栏是灰色的,如何设置颜色,找了很久,在GitHub上的issue中找到了答案, 找到/Platforms/Windows/App.xaml <maui:MauiWinUIApplication ...(此处省略) > <!--添加以下部分--> <Appl
阅读全文