问题
Border通过NavigationView
见截图

问题
我怎样才能使Border不通过NavigationView。
源代码
<Viewbox
Stretch="Uniform"
StretchDirection="Both"
Width="350"
Margin="-900,0,-220,0">
<Border
CornerRadius="50"
Width="350"
Height="700"
Background="White">
<RadioButton Margin="45,0,00,500">
<TextBlock
Margin="20,0,0,0"
Text="Test"
Foreground="Black">
</TextBlock>
</RadioButton>
</Border>
</Viewbox>发布于 2022-08-16 05:39:54
您需要将PaneDisplayMode设置为Left。
引用文档
PaneDisplayMode的默认NavigationView是Auto,因此当窗口宽度小于或等于CompactModeThresholdWidth时,将使用LeftMinimal导航。当窗口变宽时,VisualState将重写默认设置,并使用顶部导航。
默认情况下,PaneDisplayMode是Auto,根据窗口宽度的不同,它切换到LeftMinimal,这可能会用窗格隐藏内容。
https://stackoverflow.com/questions/73343826
复制相似问题