[英]Border goes through NavigationView
Border
經過NavigationView
見截圖
如何通過NavigationView
使Border
不是 go 。
<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>
您需要將PaneDisplayMode
設置為Left
。
引用文檔:
NavigationView 的默認 PaneDisplayMode 為 Auto,因此當 window 寬度小於或等於 CompactModeThresholdWidth 時,使用 LeftMinimal 導航。 當 window 變寬時,VisualState 會覆蓋默認值,並使用頂部導航。
PaneDisplayMode
默認為Auto
,根據 window 的寬度,它會切換到LeftMinimal
,這可能會隱藏窗格中的內容。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.