none
flyout 上面多了一块没法隐藏 RRS feed

  • 问题

  • 如图,顶部黑色区域如何隐藏????????????????????????????

    另外,            StatusBar statusbar = StatusBar.GetForCurrentView();
                await statusbar.HideAsync();

    这个对flyout不管用!


    • 已编辑 qwsf01115 2015年1月15日 7:17 add
    2015年1月15日 7:16

答案

  • <FlyoutBase.AttachedFlyout>
                        <Flyout x:Name="keyFlyout">
                            <Flyout.FlyoutPresenterStyle>
                                <Style TargetType="FlyoutPresenter">
                                    <Setter Property="ScrollViewer.ZoomMode" Value="Enabled"/>
                                    <Setter Property="BorderBrush" Value="White"/>
                                    <Setter Property="BorderThickness" Value="0"/>
                                    <Setter Property="Height" Value="300" />
                                    <Setter Property="Background">
                                        <Setter.Value>
                                            <ImageBrush Stretch="Fill" ImageSource="/Assets/interbg.png"/>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Flyout.FlyoutPresenterStyle>
                            <StackPanel Margin="19,9.5,19,0" Height="300">
                                ..................................................................
                            </StackPanel>
                        </Flyout>
                    </FlyoutBase.AttachedFlyout>
    2015年1月28日 0:43

全部回复

  • 你好,

    我这边尝试了一些可能性,包括隐藏状态栏和上移Flyout,但是都没有成功,据我所知,这个目前是无法实现的,总是会被遮挡:


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    2015年1月16日 15:03
    版主
  • 这个问题我解决了,对flyout设置样式就可以了。具体代码我明天去公司看了贴上来
    2015年1月27日 11:52
  • <FlyoutBase.AttachedFlyout>
                        <Flyout x:Name="keyFlyout">
                            <Flyout.FlyoutPresenterStyle>
                                <Style TargetType="FlyoutPresenter">
                                    <Setter Property="ScrollViewer.ZoomMode" Value="Enabled"/>
                                    <Setter Property="BorderBrush" Value="White"/>
                                    <Setter Property="BorderThickness" Value="0"/>
                                    <Setter Property="Height" Value="300" />
                                    <Setter Property="Background">
                                        <Setter.Value>
                                            <ImageBrush Stretch="Fill" ImageSource="/Assets/interbg.png"/>
                                        </Setter.Value>
                                    </Setter>
                                </Style>
                            </Flyout.FlyoutPresenterStyle>
                            <StackPanel Margin="19,9.5,19,0" Height="300">
                                ..................................................................
                            </StackPanel>
                        </Flyout>
                    </FlyoutBase.AttachedFlyout>
    2015年1月28日 0:43