简体   繁体   English

边框经过 NavigationView

[英]Border goes through NavigationView

Problem问题

Border goes through NavigationView Border经过NavigationView

See Screenshot见截图

1

Question问题

How can I make the Border not go through NavigationView .如何通过NavigationView使Border不是 go 。

Source Code源代码

<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>

You need to set PaneDisplayMode to Left .您需要将PaneDisplayMode设置为Left

To quote from the docs :引用文档

The default PaneDisplayMode for the NavigationView is Auto, so when the window width is less than or equal to CompactModeThresholdWidth, LeftMinimal navigation is used. NavigationView 的默认 PaneDisplayMode 为 Auto,因此当 window 宽度小于或等于 CompactModeThresholdWidth 时,使用 LeftMinimal 导航。 When the window gets wider, the VisualState overrides the default, and Top navigation is used.当 window 变宽时,VisualState 会覆盖默认值,并使用顶部导航。

The PaneDisplayMode is Auto by default and depending on the window width, it switches to LeftMinimal which might hide the content with the pane. PaneDisplayMode默认为Auto ,根据 window 的宽度,它会切换到LeftMinimal ,这可能会隐藏窗格中的内容。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM