Windows UWP header 行在 ScrollViewer 上方
Windows UWP header row above ScrollViewer
我正在寻找在 ScrollViewer 上方创建行的解决方案,该行将粘贴在页面顶部。有什么解决办法吗?
它在 "Movier" 应用程序中应该是这样的:
您可以使用 CommandBar.
这是一张示例图片。资料来源:CommandBar
这是一个代码示例
<CommandBar VerticalAlignment="Top">
<CommandBar.Content>
<TextBlock Text="LIBRARY" FontSize="36"/>
</CommandBar.Content>
<AppBarButton Icon="Favorite" Label="Favorite" Click="AppBarButton_Click"/>
<AppBarButton Icon="Zoom" Label="Search" Click="AppBarButton_Click"/>
<AppBarButton Icon="Setting" Label="Setting" Click="AppBarButton_Click"/>
</CommandBar>
您可以在 CommandBar Class 中了解更多信息。
我正在寻找在 ScrollViewer 上方创建行的解决方案,该行将粘贴在页面顶部。有什么解决办法吗?
它在 "Movier" 应用程序中应该是这样的:
您可以使用 CommandBar.
这是一张示例图片。资料来源:CommandBar
这是一个代码示例
<CommandBar VerticalAlignment="Top">
<CommandBar.Content>
<TextBlock Text="LIBRARY" FontSize="36"/>
</CommandBar.Content>
<AppBarButton Icon="Favorite" Label="Favorite" Click="AppBarButton_Click"/>
<AppBarButton Icon="Zoom" Label="Search" Click="AppBarButton_Click"/>
<AppBarButton Icon="Setting" Label="Setting" Click="AppBarButton_Click"/>
</CommandBar>
您可以在 CommandBar Class 中了解更多信息。