带有RowSpacing(Xamarin Forms)和导航的网格

Fet*_*mos 6 user-interface xamarin.android xamarin.forms

现在我正在努力更新我的应用程序的UI(XF for Android).我找到了这个appbar的UI解决方案(来自源代码Evolve 2016):

在此输入图像描述

它看起来很漂亮,简单实现:

<ContentPage.Content>
<Grid RowSpacing="0" >
    <Grid.RowDefinitions>
        <RowDefinition Height="Auto" />
        <RowDefinition Height="*" />
    </Grid.RowDefinitions>
    <StackLayout BackgroundColor={StaticResource Primary}, Grid.Row=0/>
       <SearchBar/>
    </StackLayout>
    <StackLayout Grid.Row=1>
       //other content
   </StackLayout>
 .....
Run Code Online (Sandbox Code Playgroud)

对于现有导航(Master-Detail),它工作正常.但我点击项目(在此页面上) - 而不是打开新页面(没有主要细节).像这样工作:

 await Navigation.PushAsync(new SessionDetailPage(), true);
Run Code Online (Sandbox Code Playgroud)

我单击工具栏上的 - 返回会话页面,而不是短时间显示白线

在此输入图像描述

它不会持续很久,一瞬间.然后白线消失了.但它使用起来很不愉快.有任何想法吗?我怎样才能改善这个?

Nic*_*sky 1

可能是 RowDefinition Height="Auto" 自行计算和调整大小,尝试使用绝对值检查是否是原因。