| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859 |
- <ResourceDictionary
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:primitives="clr-namespace:Microsoft.Phone.Controls.Primitives;assembly=Microsoft.Phone"
- xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
- mc:Ignorable="d">
- <SolidColorBrush x:Key="PivotBackground" Color="#0092FF"/>
- <Style x:Key="PivotStyle" TargetType="phone:Pivot">
- <Setter Property="Margin" Value="0"/>
- <Setter Property="Padding" Value="0"/>
- <Setter Property="Foreground" Value="{StaticResource PhoneForegroundBrush}"/>
- <Setter Property="Background" Value="Transparent"/>
- <Setter Property="ItemsPanel">
- <Setter.Value>
- <ItemsPanelTemplate>
- <Grid/>
- </ItemsPanelTemplate>
- </Setter.Value>
- </Setter>
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="phone:Pivot">
- <Grid HorizontalAlignment="{TemplateBinding HorizontalAlignment}"
- VerticalAlignment="{TemplateBinding VerticalAlignment}">
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="Auto"/>
- <RowDefinition Height="*"/>
- </Grid.RowDefinitions>
- <Grid Background="{StaticResource PivotBackground}"
- CacheMode="BitmapCache"
- Grid.RowSpan="2" />
- <Grid Background="{TemplateBinding Background}"
- CacheMode="BitmapCache"
- Grid.Row="2" />
- <ContentPresenter ContentTemplate="{TemplateBinding TitleTemplate}"
- Content="{TemplateBinding Title}"
- Margin="24,17,0,-7"/>
- <primitives:PivotHeadersControl x:Name="HeadersListElement"
- Grid.Row="1"/>
- <Grid Grid.Row="2">
- <ItemsPresenter x:Name="PivotItemPresenter"
- Margin="{TemplateBinding Padding}" />
- </Grid>
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- <Style TargetType="phone:PivotItem">
- <Setter Property="Margin" Value="-12, -2, 0, 0"/>
- </Style>
-
- </ResourceDictionary>
|