2013-02-26 3 views
0

this picture is android's tabviewthis is android-like tabview which in the pivot control, 이처럼 안드로이드와 같은 탭뷰를 구현하는 방법은 무엇입니까?

제 사진
제 사진 피벗 제어
tabview가 피봇 페이지그리드에 로이드 형 tabview 안드로이드의 tabview이다
두 번째 그림과 같은 결과를 얻고 싶습니다.
모든 제안 사항은 훌륭합니다 !!!!! 당신이 피벗 페이지를 새 응용 프로그램을 만들고 추가하는 경우
감사

<phone:PhoneApplicationPage 
    x:Class="ewlan.PivotMainPage" 
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone" 
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone" 
    xmlns:controls="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone.Controls" 
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
    mc:Ignorable="d" 
    FontFamily="{StaticResource PhoneFontFamilyNormal}" 
    FontSize="{StaticResource PhoneFontSizeNormal}" 
    Foreground="{StaticResource PhoneForegroundBrush}" 
    SupportedOrientations="Portrait" Orientation="Portrait" 
    shell:SystemTray.IsVisible="False"> 



    <Grid x:Name="LayoutRoot" Background="Transparent"> 

//what's in here? 
//i know pivot 
//what i need to know is what in the pivot.item 
//hope u can know my meanings,any suggestions will be great 

    </Grid> 

답변

2

글쎄, 그것은 피벗 컨트롤의 일부 페이지를 생성합니다. 나는 당신이 그것을 살펴보고 필요한 통제를 추가 할 것을 제안한다. 자세한 내용은 MSDN reference을 참조하십시오.

<!--LayoutRoot is the root grid where all page content is placed.--> 
<Grid x:Name="LayoutRoot" Background="Transparent"> 
    <!--Pivot Control--> 
    <controls:Pivot Title="MY APPLICATION"> 
     <!--Pivot item one--> 
     <controls:PivotItem Header="item1"> 
      <Grid/> 
     </controls:PivotItem> 

     <!--Pivot item two--> 
     <controls:PivotItem Header="item2"> 
      <Grid/> 
     </controls:PivotItem> 
    </controls:Pivot> 
</Grid> 

피벗에는 사용자의 UI 요소가 포함되어 있습니다.

관련 문제