<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><system:Double</span> <span style="color: rgb(0, 0, 102);">x:Key</span>=<span style="color: rgb(255, 0, 0);">"Scale"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>0.5<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></system:Double<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Style</span> <span style="color: rgb(0, 0, 102);">x:Key</span>=<span style="color: rgb(255, 0, 0);">"PanoramaItemStyle"</span> <span style="color: rgb(0, 0, 102);">TargetType</span>=<span style="color: rgb(255, 0, 0);">"controls:PanoramaItem"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Setter</span> <span style="color: rgb(0, 0, 102);">Property</span>=<span style="color: rgb(255, 0, 0);">"Width"</span> <span style="color: rgb(0, 0, 102);">Value</span>=<span style="color: rgb(255, 0, 0);">"260"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Setter</span> <span style="color: rgb(0, 0, 102);">Property</span>=<span style="color: rgb(255, 0, 0);">"Height"</span> <span style="color: rgb(0, 0, 102);">Value</span>=<span style="color: rgb(255, 0, 0);">"290"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Setter</span> <span style="color: rgb(0, 0, 102);">Property</span>=<span style="color: rgb(255, 0, 0);">"Template"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Setter.Value<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><ControlTemplate</span> <span style="color: rgb(0, 0, 102);">TargetType</span>=<span style="color: rgb(255, 0, 0);">"controls:PanoramaItem"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>
<span style="color: rgb(128, 128, 128); font-style: italic;"><!-- apply a LayoutTransform to the content in order to scale it --></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><local:LayoutTransformer<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><local:LayoutTransformer.LayoutTransform<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><ScaleTransform</span> <span style="color: rgb(0, 0, 102);">ScaleX</span>=<span style="color: rgb(255, 0, 0);">"{StaticResource Scale}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">ScaleY</span>=<span style="color: rgb(255, 0, 0);">"{StaticResource Scale}"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></local:LayoutTransformer.LayoutTransform<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(128, 128, 128); font-style: italic;"><!-- the original content of the template follows --></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Grid</span> <span style="color: rgb(0, 0, 102);">Background</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding Background}"</span> <span style="color: rgb(0, 0, 102);">Margin</span>=<span style="color: rgb(255, 0, 0);">"12,0,0,0"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><Grid.RowDefinitions<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><RowDefinition</span> <span style="color: rgb(0, 0, 102);">Height</span>=<span style="color: rgb(255, 0, 0);">"auto"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><RowDefinition</span> <span style="color: rgb(0, 0, 102);">Height</span>=<span style="color: rgb(255, 0, 0);">"*"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></Grid.RowDefinitions<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><ContentControl</span> <span style="color: rgb(0, 0, 102);">x:Name</span>=<span style="color: rgb(255, 0, 0);">"header"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">ContentTemplate</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding HeaderTemplate}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">Content</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding Header}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">FontSize</span>=<span style="color: rgb(255, 0, 0);">"{StaticResource PhoneFontSizeExtraExtraLarge}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">FontFamily</span>=<span style="color: rgb(255, 0, 0);">"{StaticResource PhoneFontFamilySemiLight}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">HorizontalAlignment</span>=<span style="color: rgb(255, 0, 0);">"Left"</span> <span style="color: rgb(0, 0, 102);">Margin</span>=<span style="color: rgb(255, 0, 0);">"10,-2,0,26"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><ContentControl.RenderTransform<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><TranslateTransform</span> <span style="color: rgb(0, 0, 102);">x:Name</span>=<span style="color: rgb(255, 0, 0);">"headerTransform"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></ContentControl.RenderTransform<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></ContentControl<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"><ContentPresenter</span> <span style="color: rgb(0, 0, 102);">Content</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding Content}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">HorizontalAlignment</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding HorizontalContentAlignment}"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">Margin</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding Padding}"</span> <span style="color: rgb(0, 0, 102);">Grid.Row</span>=<span style="color: rgb(255, 0, 0);">"1"</span></span>
<span style="color: rgb(0, 153, 0);"> <span style="color: rgb(0, 0, 102);">VerticalAlignment</span>=<span style="color: rgb(255, 0, 0);">"{TemplateBinding VerticalContentAlignment}"</span><span style="color: rgb(0, 0, 0); font-weight: bold;">/></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></Grid<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></local:LayoutTransformer<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></ControlTemplate<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></Setter.Value<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></Setter<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>
<span style="color: rgb(0, 153, 0);"><span style="color: rgb(0, 0, 0); font-weight: bold;"></Style<span style="color: rgb(0, 0, 0); font-weight: bold;">></span></span></span>