2016-05-21 6 views
2

私は、このコードで私のUWPアプリケーションにListViewを持っています。UWPで選択されたListViewアイテムのスタイルを変更するには

<ListView Name="menuListView" HorizontalAlignment="Center" 
       Grid.Row="1" SelectionChanged="ListView_SelectionChanged" 
       BorderThickness="0,0,0,5" SelectedIndex="0" 
       Grid.ColumnSpan="2"> 

     <ListView.ItemsPanel> 
      <ItemsPanelTemplate> 
      <StackPanel Orientation="Horizontal"></StackPanel> 
     </ItemsPanelTemplate> 
     </ListView.ItemsPanel> 
     <TextBlock Name="dayTB" Text="Day" Margin="25 0 0 0" FontSize="18" /> 
     <TextBlock Name="weekTB" Text="Week" Margin="25 0 0 0" FontSize="18" /> 
     <TextBlock Name="monthTB" Text="Month" Margin="25 0 0 0" FontSize="18" /> 

    </ListView> 

このようになります。

enter image description here

私は今かなりの時間のために、このように見えるようにしようとしていますが、私の試みは成功していません。

enter image description here

これを達成する方法はありますか? ご協力いただければ幸いです。

答えて

1

ピクチャで使用される右のコントロールは、リストビューではなくピボットです。

この基本的なピボットXAMLコードを試してみて、その周りに

<Pivot Title="EMAIL"> 
<PivotItem Header="All"> 
<TextBlock Text="all emails go here." /> 
</PivotItem> 
<PivotItem Header="Unread"> 
<TextBlock Text="unread emails go here." /> 
</PivotItem> 
<PivotItem Header="Flagged"> 
<TextBlock Text="flagged emails go here." /> 
</PivotItem> 
<PivotItem Header="Urgent"> 
<TextBlock Text="urgent emails go here." /> 
</PivotItem> 
</Pivot> 
を再生
関連する問題