页面设计在向后导航时失真-WPF-Xamarin Forms

时间:2018-07-24 07:34:52

标签: wpf xamarin.forms

我已经在Xamarin Forms项目中包含了WPF项目。它在UWP和Android(我尚未在iOS中进行测试)中正常工作。但是对于WPF,它会引起问题。

我有一个包含图像和文本的列表视图。最初加载页面时,它显示正常。如果我导航到另一页面并点击返回该页面,则设计会失真,即文本与图像重叠。 我已添加了指向显示列表视图的图像的链接 Image that shows the list when the page is loaded the first time and when it is navigated back to it

  

                                                                                                                                                                                          

                       </Image>
                     <StackLayout Orientation="Vertical">
                       <Label Text="{Binding ListName}" Font="18"></Label>
                       <Label Text="{Binding ListDescription}" TextColor="Gray"></Label>
                 </StackLayout>
       </StackLayout>
                                        </ViewCell>                                  
       </DataTemplate>
     </ListView.ItemTemplate>
   </ListView>
 </StackLayout>                     
     

  

On ItemTapped, this line is called
  await Navigation.PushAsync(new TagListDetails());
        This opens the new page. Now on Click of Back on this page when it comes to this calling page, the design distorts.

0 个答案:

没有答案