如何在.NET MAUI上实现一个引导模式对话框?在哪里..。
关闭
我试图找到一些现有的库,但没有得到同样的效果。
所需的模态链接:https://www.awesomescreenshot.com/video/11412401?key=4805d42e3e44dbabb15ff52cc2d70369
发布于 2022-09-30 00:50:27
您可以使用BottomSheet控件进行此操作,
这里有更多信息:https://blogs.xgenoapps.com/post/2022/07/23/maui-bottom-sheet
添加命名空间:
xmlns:controls="clr-namespace:XGENO.Maui.Controls;assembly=Maui.Controls.BottomSheet"然后你要做的就是:
<controls:BottomSheet
x:Name="simpleBottomSheet"
HeaderText="Simple Example">
<controls:BottomSheet.BottomSheetContent>
<Label
Text="Hello from Bottom Sheet. This is a simple implementation with no customization." />
</controls:BottomSheet.BottomSheetContent>
</controls:BottomSheet>而且,Github在这里:https://github.com/naweed/Maui.Controls.BottomSheet
祝你好运!
此外,我有一套免费的控件(Android/iOS),您可以查看是否有兴趣。它已经有了许多控件,我计划添加更多:D https://github.com/FreakyAli/MAUI.FreakyControls
发布于 2022-12-03 16:15:14
您可以使用net工具包打开弹出页面并显示为模式。请参阅此视频:https://www.youtube.com/watch?v=yM7opXlu-MU
https://stackoverflow.com/questions/73877089
复制相似问题