.net maui不起作用的shellcontent标签
我必须使用app.xaml,它似乎无法正常工作,这是app.xaml中的代码。
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:NSM_Maui"
x:Class="NSM_Maui.App">
<Application.MainPage>
<Shell FlyoutBehavior="Flyout" FlyoutHeaderBehavior="Fixed" FlyoutVerticalScrollMode="Auto">
<FlyoutItem Title="Home" >
<ShellContent ContentTemplate="{DataTemplate local:HomePage}"/>
</FlyoutItem>
</Shell>
</Application.MainPage>
试图在.net maui中制作一个flufout菜单,从我发现的结果来看, > 但 似乎不起作用,DataTemplate字符串是一个ContentPage XAML文件,我将其称为“ HomePage”,我也在遵循此视频输入图像说明在这里
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我修复了它,我不确定我更改了什么,但我必须制作一个新项目,在appshell.xaml中有标签,您必须添加
shell.flyoutbehavior =“ flyout”
,也必须添加添加&lt; shellContent&gt;
tag&lt; shellContent&gt;
i fixed it, iam not really sure what i changed but i had to make a new project and in the AppShell.xaml there is the tag and you have to add
Shell.FlyoutBehavior="Flyout"
and also add the<ShellContent>
tag<ShellContent>