2015-09-05 39 views
0

我目前正在与标签页的工作标签页:Xamarin变化从按钮

<?xml version="1.0" encoding="utf-8" ?> 
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms" 
      xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" 
      xmlns:me="clr-namespace:Let_s_go_out.Views.Pages;assembly=Let_s_go_out" 
      x:Class="Let_s_go_out.Views.MainPage" 
      > 
    <TabbedPage.Children > 
    <me:PlacesList /> 

    <me:PlaceSearch /> 


    </TabbedPage.Children> 
</TabbedPage> 

而在PlaceSearch内容我有一个按钮:

<StackLayout Grid.Row="9" Orientation="Horizontal" > 
      <Button Text="Rechercher" HorizontalOptions="Center" VerticalOptions="Center" Command="{Binding Search}"></Button>   
     </StackLayout> 

所以我的问题是:我怎么能单击按钮时进入“PlaceList”选项卡式页面?

谢谢:)

回答