菜单弹出XAML - C# - Windows 10 Mobile

时间:2015-10-05 22:56:03

标签: xaml menu windows-10 appbar windows-10-mobile

我需要我的ToggleMenuFlyout占据全屏(在我的手机上),但我无法。

有人可以帮助我吗?

我的代码:

AppBarButton x: Name = "FiltersPhone" Icon = "Filter" label = "Names">
                 <AppBarButton.Flyout>
                      <MenuFlyout>
                     <MenuFlyout.MenuFlyoutPresenterStyle>
                         <Style TargetType = "MenuFlyoutPresenter">
                             <Setter Property = "Background" Value = "Transparent" />
                             <Setter Property = "BorderThickness" Value = "0" />
                             <Setter Property = "Margin" Value = "0,4,0,0" />
                         </ Style>
                     </MenuFlyout.MenuFlyoutPresenterStyle>
                     <ToggleMenuFlyoutItem x: Name = "FlyoutItemDate" Text = "Today" tag = "Date"
                                            IsChecked = "True />

                 </ MenuFlyout>
                 </AppBarButton.Flyout>
             </ AppBarButton>

由于

1 个答案:

答案 0 :(得分:0)

            <AppBarButton>
            <AppBarButton.Flyout >
                <MenuFlyout Placement="Full"></MenuFlyout>
            </AppBarButton.Flyout>
            </AppBarButton>

祝你好运!