Guest User

Untitled

a guest
Oct 26th, 2012
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.35 KB | None | 0 0
  1. <ResourceDictionary>
  2.         <ResourceDictionary.MergedDictionaries>
  3.           <ResourceDictionary Source="/Microsoft.Surface.Presentation.Generic;v2.0.0.0;31bf3856ad364e35;component/themes\styles.xaml"/>
  4.                 <ResourceDictionary
  5.     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:s="http://schemas.microsoft.com/surface/2008"
  6.     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:Custom="http://schemas.microsoft.com/surface/2008">
  7.                     <!-- Resource dictionary entries should be defined here. -->
  8.                     <ControlTemplate x:Key="LibraryBarCustomTemplate" TargetType="{x:Type Custom:LibraryBar}">
  9.                         <AdornerDecorator>
  10.                             <Grid x:Name="root">
  11.                                 <Border x:Name="PART_BarBackgroundBorder" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"
  12.                                         Background="{TemplateBinding Background}" HorizontalAlignment="Stretch" VerticalAlignment="Stretch"/>
  13.                                 <Grid>
  14.                                     <Grid.ColumnDefinitions>
  15.                                         <ColumnDefinition Width="0.042*"/>
  16.                                         <ColumnDefinition Width="0.916*"/>
  17.                                         <ColumnDefinition Width="0.042*"/>
  18.                                     </Grid.ColumnDefinitions>
  19.                                     <Grid.RowDefinitions>
  20.                                         <RowDefinition Height="0.13*"/>
  21.                                         <RowDefinition Height="0.0135*"/>
  22.                                         <RowDefinition Height="0.6834*"/>
  23.                                         <RowDefinition Height="0.0135*"/>
  24.                                         <RowDefinition Height="0.13*"/>
  25.                                         <RowDefinition></RowDefinition>
  26.                                     </Grid.RowDefinitions>
  27.                                     <Custom:SurfaceScrollViewer x:Name="scrollViewer" Background="Transparent" ClipToBounds="False" CanContentScroll="False"
  28.                                                                 Grid.ColumnSpan="3" Grid.Column="0" Elasticity="0.4,0.4" Focusable="False"
  29.                                                                 HitTestContentWhileScrolling="False" MinWidth="102" MinHeight="102" Grid.Row="2"
  30.                                                                 Grid.RowSpan="1" VerticalScrollBarVisibility="Disabled" HorizontalScrollBarVisibility="Visible">
  31.                                         <Custom:SurfaceScrollViewer.Template>
  32.                                             <ControlTemplate TargetType="{x:Type Custom:SurfaceScrollViewer}">
  33.                                                 <Grid ClipToBounds="False" HorizontalAlignment="Stretch" OpacityMask="{x:Null}" VerticalAlignment="Stretch">
  34.                                                     <Border x:Name="PART_ElasticBorder" Background="{DynamicResource {ComponentResourceKey TypeInTargetAssembly={x:Type Custom:SurfaceColors}}}">
  35.                                                         <ScrollContentPresenter CanContentScroll="{TemplateBinding CanContentScroll}"
  36.                                                                                 CanHorizontallyScroll="True" CanVerticallyScroll="False"
  37.                                                                                 ContentTemplate="{TemplateBinding ContentTemplate}"
  38.                                                                                 ScrollViewer.HorizontalScrollBarVisibility="Visible"
  39.                                                                                 Content="{TemplateBinding Content}" OpacityMask="{x:Null}"/>
  40.                                                     </Border>
  41.                                                 </Grid>
  42.                                             </ControlTemplate>
  43.                                         </Custom:SurfaceScrollViewer.Template>
  44.                                     </Custom:SurfaceScrollViewer>
  45.                                     <Border Background="Transparent" Grid.ColumnSpan="3" Grid.Column="0" Grid.RowSpan="2" Visibility="{TemplateBinding Visibility}" Panel.ZIndex="10"/>
  46.                                     <Border Background="Transparent" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="3" Grid.RowSpan="2" Visibility="{TemplateBinding Visibility}" Panel.ZIndex="10"/>
  47.                                 </Grid>
  48.                             </Grid>
  49.                         </AdornerDecorator>
  50.                     </ControlTemplate>
  51.                 </ResourceDictionary>
  52.             </ResourceDictionary.MergedDictionaries>
  53.       </ResourceDictionary>
Advertisement
Add Comment
Please, Sign In to add comment