App.xaml (136188B)
1 <Application 2 xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 4 xmlns:local="using:File360" xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:Controls="using:WinRTXamlToolkit.Controls" xmlns:Interactivity="using:WinRTXamlToolkit.Interactivity" xmlns:Behaviors="using:WinRTXamlToolkit.Controls.Behaviors" mc:Ignorable="d" 5 x:Class="File360.App" 6 > 7 <Application.Resources> 8 9 <Thickness x:Key="PhoneBorderThickness">2.5</Thickness> 10 <FontFamily x:Key="PhoneFontFamilyNormal">Segoe WP</FontFamily> 11 <FontWeight x:Key="PhoneButtonFontWeight">Semibold</FontWeight> 12 <x:Double x:Key="TextStyleLargeFontSize">18.14</x:Double> 13 <Thickness x:Key="PhoneButtonContentPadding">9.5,0,9.5,3.5</Thickness> 14 <x:Double x:Key="PhoneButtonMinHeight">57.5</x:Double> 15 <x:Double x:Key="PhoneButtonMinWidth">109</x:Double> 16 <Thickness x:Key="PhoneTouchTargetOverhang">0,9.5</Thickness> 17 18 <Style x:Key="ToggleButtonTemplate" TargetType="ToggleButton"> 19 <Setter Property="Background" Value="Transparent"/> 20 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 21 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 22 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 23 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 24 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 25 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 26 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 27 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 28 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 29 <Setter Property="HorizontalAlignment" Value="Left"/> 30 <Setter Property="VerticalAlignment" Value="Center"/> 31 <Setter Property="Template"> 32 <Setter.Value> 33 <ControlTemplate TargetType="ToggleButton"> 34 <Grid Background="Transparent"> 35 <VisualStateManager.VisualStateGroups> 36 <VisualStateGroup x:Name="CommonStates"> 37 <VisualState x:Name="Normal"/> 38 <VisualState x:Name="PointerOver"/> 39 <VisualState x:Name="Pressed"/> 40 <VisualState x:Name="Disabled"> 41 <Storyboard> 42 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 43 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 44 </ObjectAnimationUsingKeyFrames> 45 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 46 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 47 </ObjectAnimationUsingKeyFrames> 48 </Storyboard> 49 </VisualState> 50 <VisualState x:Name="Checked"> 51 <Storyboard> 52 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 53 <DiscreteObjectKeyFrame KeyTime="0" Value="{x:Null}"/> 54 </ObjectAnimationUsingKeyFrames> 55 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 56 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 57 </ObjectAnimationUsingKeyFrames> 58 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 59 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 60 </ObjectAnimationUsingKeyFrames> 61 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 62 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 63 </ObjectAnimationUsingKeyFrames> 64 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 65 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 66 </ObjectAnimationUsingKeyFrames> 67 </Storyboard> 68 </VisualState> 69 <VisualState x:Name="CheckedPointerOver"> 70 <Storyboard> 71 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 72 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 73 </ObjectAnimationUsingKeyFrames> 74 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 75 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 76 </ObjectAnimationUsingKeyFrames> 77 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 78 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 79 </ObjectAnimationUsingKeyFrames> 80 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 81 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 82 </ObjectAnimationUsingKeyFrames> 83 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 84 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 85 </ObjectAnimationUsingKeyFrames> 86 </Storyboard> 87 </VisualState> 88 <VisualState x:Name="CheckedPressed"/> 89 <VisualState x:Name="CheckedDisabled"> 90 <Storyboard> 91 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 92 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 93 </ObjectAnimationUsingKeyFrames> 94 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EnabledBackground"> 95 <DiscreteObjectKeyFrame KeyTime="0" Value="0.4"/> 96 </ObjectAnimationUsingKeyFrames> 97 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 98 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 99 </ObjectAnimationUsingKeyFrames> 100 </Storyboard> 101 </VisualState> 102 <VisualState x:Name="Indeterminate"/> 103 <VisualState x:Name="IndeterminatePointerOver"/> 104 <VisualState x:Name="IndeterminatePressed"/> 105 <VisualState x:Name="IndeterminateDisabled"> 106 <Storyboard> 107 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 108 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 109 </ObjectAnimationUsingKeyFrames> 110 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 111 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 112 </ObjectAnimationUsingKeyFrames> 113 </Storyboard> 114 </VisualState> 115 </VisualStateGroup> 116 </VisualStateManager.VisualStateGroups> 117 <Border x:Name="EnabledBackground" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Margin="{ThemeResource PhoneTouchTargetOverhang}"> 118 <ContentPresenter x:Name="EnabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="-2.5,-0.5,-2.333,-2.5" VerticalAlignment="{TemplateBinding VerticalContentAlignment}" Width="109" Height="63"/> 119 </Border> 120 <Border x:Name="DisabledBackground" BorderBrush="{ThemeResource ButtonDisabledBorderThemeBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" IsHitTestVisible="False" Margin="{ThemeResource PhoneTouchTargetOverhang}" Visibility="Collapsed"> 121 <ContentPresenter x:Name="DisabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{ThemeResource ButtonDisabledForegroundThemeBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 122 </Border> 123 </Grid> 124 </ControlTemplate> 125 </Setter.Value> 126 </Setter> 127 </Style> 128 <Style x:Key="SideBarButton" TargetType="ToggleButton"> 129 <Setter Property="Background" Value="Transparent"/> 130 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 131 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 132 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 133 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 134 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 135 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 136 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 137 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 138 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 139 <Setter Property="HorizontalAlignment" Value="Left"/> 140 <Setter Property="VerticalAlignment" Value="Center"/> 141 <Setter Property="Template"> 142 <Setter.Value> 143 <ControlTemplate TargetType="ToggleButton"> 144 <Grid x:Name="grid" Background="Transparent"> 145 <VisualStateManager.VisualStateGroups> 146 <VisualStateGroup x:Name="CommonStates"> 147 <VisualState x:Name="Normal"/> 148 <VisualState x:Name="PointerOver"/> 149 <VisualState x:Name="Pressed"/> 150 <VisualState x:Name="Disabled"> 151 <Storyboard> 152 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 153 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 154 </ObjectAnimationUsingKeyFrames> 155 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 156 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 157 </ObjectAnimationUsingKeyFrames> 158 </Storyboard> 159 </VisualState> 160 <VisualState x:Name="Checked"> 161 <Storyboard> 162 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 163 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 164 </ObjectAnimationUsingKeyFrames> 165 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 166 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 167 </ObjectAnimationUsingKeyFrames> 168 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 169 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 170 </ObjectAnimationUsingKeyFrames> 171 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 172 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 173 </ObjectAnimationUsingKeyFrames> 174 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 175 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 176 </ObjectAnimationUsingKeyFrames> 177 </Storyboard> 178 </VisualState> 179 <VisualState x:Name="CheckedPointerOver"> 180 <Storyboard> 181 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 182 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 183 </ObjectAnimationUsingKeyFrames> 184 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 185 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 186 </ObjectAnimationUsingKeyFrames> 187 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 188 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 189 </ObjectAnimationUsingKeyFrames> 190 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 191 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 192 </ObjectAnimationUsingKeyFrames> 193 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 194 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 195 </ObjectAnimationUsingKeyFrames> 196 </Storyboard> 197 </VisualState> 198 <VisualState x:Name="CheckedPressed"/> 199 <VisualState x:Name="CheckedDisabled"> 200 <Storyboard> 201 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="EnabledBackground"> 202 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 203 </ObjectAnimationUsingKeyFrames> 204 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EnabledBackground"> 205 <DiscreteObjectKeyFrame KeyTime="0" Value="0.4"/> 206 </ObjectAnimationUsingKeyFrames> 207 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 208 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 209 </ObjectAnimationUsingKeyFrames> 210 </Storyboard> 211 </VisualState> 212 <VisualState x:Name="Indeterminate"/> 213 <VisualState x:Name="IndeterminatePointerOver"/> 214 <VisualState x:Name="IndeterminatePressed"/> 215 <VisualState x:Name="IndeterminateDisabled"> 216 <Storyboard> 217 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 218 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 219 </ObjectAnimationUsingKeyFrames> 220 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 221 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 222 </ObjectAnimationUsingKeyFrames> 223 </Storyboard> 224 </VisualState> 225 </VisualStateGroup> 226 </VisualStateManager.VisualStateGroups> 227 <Border x:Name="EnabledBackground" Background="{TemplateBinding Background}" Height="{TemplateBinding Height}"> 228 <ContentPresenter x:Name="EnabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 229 </Border> 230 <Border x:Name="DisabledBackground" BorderBrush="{ThemeResource ButtonDisabledBorderThemeBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" IsHitTestVisible="False" Margin="{ThemeResource PhoneTouchTargetOverhang}" Visibility="Collapsed"> 231 <ContentPresenter x:Name="DisabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{ThemeResource ButtonDisabledForegroundThemeBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 232 </Border> 233 </Grid> 234 </ControlTemplate> 235 </Setter.Value> 236 </Setter> 237 </Style> 238 239 <SolidColorBrush x:Key="ButtonDisabledBackgroundThemeBrush" Color="Transparent"/> 240 241 <Style x:Key="DialogBoxButton" TargetType="Button"> 242 <Setter Property="Background" Value="Transparent"/> 243 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 244 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 245 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 246 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 247 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 248 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 249 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 250 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 251 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 252 <Setter Property="HorizontalAlignment" Value="Left"/> 253 <Setter Property="VerticalAlignment" Value="Center"/> 254 <Setter Property="Template"> 255 <Setter.Value> 256 <ControlTemplate TargetType="Button"> 257 <Grid x:Name="Grid" Background="Transparent"> 258 <VisualStateManager.VisualStateGroups> 259 <VisualStateGroup x:Name="CommonStates"> 260 <VisualStateGroup.Transitions> 261 <VisualTransition From="Pressed" To="PointerOver"> 262 <Storyboard> 263 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 264 </Storyboard> 265 </VisualTransition> 266 <VisualTransition From="PointerOver" To="Normal"> 267 <Storyboard> 268 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 269 </Storyboard> 270 </VisualTransition> 271 <VisualTransition From="Pressed" To="Normal"> 272 <Storyboard> 273 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 274 </Storyboard> 275 </VisualTransition> 276 </VisualStateGroup.Transitions> 277 <VisualState x:Name="Normal"/> 278 <VisualState x:Name="PointerOver"/> 279 <VisualState x:Name="Pressed"> 280 <Storyboard> 281 <PointerDownThemeAnimation Storyboard.TargetName="Grid"/> 282 </Storyboard> 283 </VisualState> 284 <VisualState x:Name="Disabled"> 285 <Storyboard> 286 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> 287 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledForegroundThemeBrush}"/> 288 </ObjectAnimationUsingKeyFrames> 289 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border"> 290 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBackgroundThemeBrush}"/> 291 </ObjectAnimationUsingKeyFrames> 292 </Storyboard> 293 </VisualState> 294 </VisualStateGroup> 295 </VisualStateManager.VisualStateGroups> 296 <Border x:Name="Border" BorderBrush="{TemplateBinding Background}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" RenderTransformOrigin="0.5,0.5"> 297 <Border.Projection> 298 <PlaneProjection/> 299 </Border.Projection> 300 <Border.RenderTransform> 301 <CompositeTransform/> 302 </Border.RenderTransform> 303 <ContentPresenter x:Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 304 </Border> 305 </Grid> 306 </ControlTemplate> 307 </Setter.Value> 308 </Setter> 309 </Style> 310 <Style TargetType="Button"> 311 <Setter Property="Background" Value="Transparent"/> 312 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 313 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 314 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 315 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 316 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 317 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 318 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 319 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 320 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 321 <Setter Property="HorizontalAlignment" Value="Left"/> 322 <Setter Property="VerticalAlignment" Value="Center"/> 323 <Setter Property="Template"> 324 <Setter.Value> 325 <ControlTemplate TargetType="Button"> 326 <Grid x:Name="Grid" Background="Transparent"> 327 <VisualStateManager.VisualStateGroups> 328 <VisualStateGroup x:Name="CommonStates"> 329 <VisualStateGroup.Transitions> 330 <VisualTransition From="Pressed" To="PointerOver"> 331 <Storyboard> 332 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 333 </Storyboard> 334 </VisualTransition> 335 <VisualTransition From="PointerOver" To="Normal"> 336 <Storyboard> 337 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 338 </Storyboard> 339 </VisualTransition> 340 <VisualTransition From="Pressed" To="Normal"> 341 <Storyboard> 342 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 343 <DoubleAnimation Duration="0:0:0.1" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter"> 344 <DoubleAnimation.EasingFunction> 345 <CircleEase EasingMode="EaseOut"/> 346 </DoubleAnimation.EasingFunction> 347 </DoubleAnimation> 348 </Storyboard> 349 </VisualTransition> 350 </VisualStateGroup.Transitions> 351 <VisualState x:Name="Normal"/> 352 <VisualState x:Name="PointerOver"/> 353 <VisualState x:Name="Pressed"> 354 <Storyboard> 355 <DoubleAnimation Duration="0:0:0.2" To="0.5" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="ContentPresenter" d:IsOptimized="True"> 356 <DoubleAnimation.EasingFunction> 357 <CubicEase EasingMode="EaseOut"/> 358 </DoubleAnimation.EasingFunction> 359 </DoubleAnimation> 360 </Storyboard> 361 </VisualState> 362 <VisualState x:Name="Disabled"> 363 <Storyboard> 364 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> 365 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledForegroundThemeBrush}"/> 366 </ObjectAnimationUsingKeyFrames> 367 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border"> 368 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBorderThemeBrush}"/> 369 </ObjectAnimationUsingKeyFrames> 370 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border"> 371 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBackgroundThemeBrush}"/> 372 </ObjectAnimationUsingKeyFrames> 373 </Storyboard> 374 </VisualState> 375 </VisualStateGroup> 376 </VisualStateManager.VisualStateGroups> 377 <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"> 378 <ContentPresenter x:Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 379 </Border> 380 </Grid> 381 </ControlTemplate> 382 </Setter.Value> 383 </Setter> 384 </Style> 385 <Style x:Key="DefaultToggleButton" TargetType="ToggleButton"> 386 <Setter Property="Background" Value="Transparent"/> 387 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 388 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 389 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 390 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 391 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 392 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 393 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 394 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 395 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 396 <Setter Property="HorizontalAlignment" Value="Left"/> 397 <Setter Property="VerticalAlignment" Value="Center"/> 398 <Setter Property="Template"> 399 <Setter.Value> 400 <ControlTemplate TargetType="ToggleButton"> 401 <Grid x:Name="Grid" Background="Transparent"> 402 <VisualStateManager.VisualStateGroups> 403 <VisualStateGroup x:Name="CommonStates"> 404 <VisualStateGroup.Transitions> 405 <VisualTransition From="Pressed" To="PointerOver"> 406 <Storyboard> 407 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 408 </Storyboard> 409 </VisualTransition> 410 <VisualTransition From="PointerOver" To="Normal"> 411 <Storyboard> 412 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 413 </Storyboard> 414 </VisualTransition> 415 <VisualTransition From="Pressed" To="Normal"> 416 <Storyboard> 417 <PointerUpThemeAnimation Storyboard.TargetName="Grid"/> 418 </Storyboard> 419 </VisualTransition> 420 </VisualStateGroup.Transitions> 421 <VisualState x:Name="Normal"/> 422 <VisualState x:Name="PointerOver"/> 423 <VisualState x:Name="Pressed"> 424 <Storyboard> 425 <!--<PointerDownThemeAnimation Storyboard.TargetName="Grid"/>--> 426 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> 427 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonPressedForegroundThemeBrush}"/> 428 </ObjectAnimationUsingKeyFrames> 429 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border"> 430 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource AppBarItemDisabledForegroundThemeBrush}"/> 431 </ObjectAnimationUsingKeyFrames> 432 </Storyboard> 433 </VisualState> 434 <VisualState x:Name="Disabled"> 435 <Storyboard> 436 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentPresenter"> 437 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledForegroundThemeBrush}"/> 438 </ObjectAnimationUsingKeyFrames> 439 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="Border"> 440 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBorderThemeBrush}"/> 441 </ObjectAnimationUsingKeyFrames> 442 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="Border"> 443 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ButtonDisabledBackgroundThemeBrush}"/> 444 </ObjectAnimationUsingKeyFrames> 445 </Storyboard> 446 </VisualState> 447 </VisualStateGroup> 448 </VisualStateManager.VisualStateGroups> 449 <Border x:Name="Border" BorderBrush="{TemplateBinding BorderBrush}" Background="{TemplateBinding Background}"> 450 <ContentPresenter x:Name="ContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 451 </Border> 452 </Grid> 453 </ControlTemplate> 454 </Setter.Value> 455 </Setter> 456 </Style> 457 <x:Double x:Key="TextControlThemeMinWidth">51</x:Double> 458 <x:Double x:Key="TextControlThemeMinHeight">34</x:Double> 459 <Thickness x:Key="TextControlBorderThemeThickness">2.5</Thickness> 460 <x:Double x:Key="ContentControlFontSize">20.26</x:Double> 461 <Thickness x:Key="TextControlThemePadding">7,0.8,8,0</Thickness> 462 <Thickness x:Key="TextControlMarginThemeThickness">0,9.5,0,9.5</Thickness> 463 <Thickness x:Key="TextControlHeaderMarginThemeThickness">0,0,0,4.8</Thickness> 464 <SolidColorBrush x:Key="TextBoxDisabledBackgroundThemeBrush" Color="Transparent"/> 465 <x:Double x:Key="TextControlBorderThemeOpacity">0.8</x:Double> 466 467 <SolidColorBrush x:Key="SliderBorderThemeBrush" Color="Transparent"/> 468 <Thickness x:Key="SliderBorderThemeThickness">0</Thickness> 469 <FontFamily x:Key="ContentControlThemeFontFamily">Segoe WP</FontFamily> 470 <x:Double x:Key="ControlContentThemeFontSize">12</x:Double> 471 <x:Double x:Key="SliderOutsideTickBarThemeHeight">5</x:Double> 472 <x:Double x:Key="SliderTrackThemeHeight">9</x:Double> 473 <SolidColorBrush x:Key="SliderDisabledBorderThemeBrush" Color="Transparent"/> 474 <Style x:Key="SliderRing" TargetType="Slider"> 475 <Setter Property="Background" Value="{ThemeResource SliderTrackBackgroundThemeBrush}"/> 476 <Setter Property="BorderBrush" Value="{ThemeResource SliderBorderThemeBrush}"/> 477 <Setter Property="BorderThickness" Value="{ThemeResource SliderBorderThemeThickness}"/> 478 <Setter Property="Foreground" Value="{ThemeResource SliderTrackDecreaseBackgroundThemeBrush}"/> 479 <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> 480 <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> 481 <Setter Property="ManipulationMode" Value="None"/> 482 <Setter Property="IsThumbToolTipEnabled" Value="False"/> 483 <Setter Property="Template"> 484 <Setter.Value> 485 <ControlTemplate TargetType="Slider"> 486 <Grid Margin="{TemplateBinding Padding}"> 487 <Grid.Resources> 488 <Style x:Key="SliderThumbStyle" TargetType="Thumb"> 489 <Setter Property="BorderThickness" Value="0.8"/> 490 <Setter Property="BorderBrush" Value="{ThemeResource SliderThumbBorderThemeBrush}"/> 491 <Setter Property="Background" Value="{ThemeResource SliderThumbBackgroundThemeBrush}"/> 492 <Setter Property="Template"> 493 <Setter.Value> 494 <ControlTemplate TargetType="Thumb"> 495 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"/> 496 </ControlTemplate> 497 </Setter.Value> 498 </Setter> 499 </Style> 500 </Grid.Resources> 501 <Grid.RowDefinitions> 502 <RowDefinition Height="Auto"/> 503 <RowDefinition Height="*"/> 504 </Grid.RowDefinitions> 505 <VisualStateManager.VisualStateGroups> 506 <VisualStateGroup x:Name="CommonStates"> 507 <VisualState x:Name="Normal"/> 508 <VisualState x:Name="Disabled"> 509 <Storyboard> 510 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="VerticalBorder"> 511 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderDisabledBorderThemeBrush}"/> 512 </ObjectAnimationUsingKeyFrames> 513 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="HorizontalDecreaseRect"> 514 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDecreaseDisabledBackgroundThemeBrush}"/> 515 </ObjectAnimationUsingKeyFrames> 516 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="HorizontalTrackRect"> 517 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBackgroundThemeBrush}"/> 518 </ObjectAnimationUsingKeyFrames> 519 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="HorizontalTrackRect"> 520 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBorderThemeBrush}"/> 521 </ObjectAnimationUsingKeyFrames> 522 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="VerticalDecreaseRect"> 523 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDecreaseDisabledBackgroundThemeBrush}"/> 524 </ObjectAnimationUsingKeyFrames> 525 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="VerticalTrackRect"> 526 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBackgroundThemeBrush}"/> 527 </ObjectAnimationUsingKeyFrames> 528 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="VerticalTrackRect"> 529 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTrackDisabledBorderThemeBrush}"/> 530 </ObjectAnimationUsingKeyFrames> 531 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="VerticalThumb"> 532 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBackgroundThemeBrush}"/> 533 </ObjectAnimationUsingKeyFrames> 534 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="VerticalThumb"> 535 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderThumbDisabledBorderThemeBrush}"/> 536 </ObjectAnimationUsingKeyFrames> 537 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="TopTickBar"> 538 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}"/> 539 </ObjectAnimationUsingKeyFrames> 540 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="HorizontalInlineTickBar"> 541 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkInlineDisabledForegroundThemeBrush}"/> 542 </ObjectAnimationUsingKeyFrames> 543 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="BottomTickBar"> 544 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}"/> 545 </ObjectAnimationUsingKeyFrames> 546 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="LeftTickBar"> 547 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}"/> 548 </ObjectAnimationUsingKeyFrames> 549 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="VerticalInlineTickBar"> 550 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkInlineDisabledForegroundThemeBrush}"/> 551 </ObjectAnimationUsingKeyFrames> 552 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="RightTickBar"> 553 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource SliderTickMarkOutsideDisabledForegroundThemeBrush}"/> 554 </ObjectAnimationUsingKeyFrames> 555 </Storyboard> 556 </VisualState> 557 </VisualStateGroup> 558 </VisualStateManager.VisualStateGroups> 559 <ContentPresenter x:Name="HeaderContentPresenter" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Style="{StaticResource HeaderContentPresenterStyle}"/> 560 <Grid x:Name="SliderContainer" Background="Transparent" Grid.Row="1"> 561 <Grid x:Name="HorizontalTemplate"> 562 <Grid.ColumnDefinitions> 563 <ColumnDefinition Width="Auto"/> 564 <ColumnDefinition Width="Auto"/> 565 <ColumnDefinition Width="*"/> 566 </Grid.ColumnDefinitions> 567 <Grid.RowDefinitions> 568 <RowDefinition Height="17.5"/> 569 <RowDefinition Height="Auto"/> 570 <RowDefinition Height="30.5"/> 571 </Grid.RowDefinitions> 572 <Rectangle x:Name="HorizontalTrackRect" Grid.ColumnSpan="3" Fill="{TemplateBinding Background}" Grid.Row="1" Stroke="{ThemeResource SliderTrackBorderThemeBrush}"/> 573 <Rectangle x:Name="HorizontalDecreaseRect" Fill="{TemplateBinding Foreground}" Grid.Row="1"/> 574 <TickBar x:Name="TopTickBar" Grid.ColumnSpan="3" Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}" Height="{ThemeResource SliderOutsideTickBarThemeHeight}" Margin="-4.5,0" Visibility="Collapsed"/> 575 <TickBar x:Name="HorizontalInlineTickBar" Grid.ColumnSpan="3" Fill="{ThemeResource SliderTickMarkInlineBackgroundThemeBrush}" Height="{ThemeResource SliderTrackThemeHeight}" Margin="-4.5,0" Grid.Row="1" Visibility="Collapsed"/> 576 <TickBar x:Name="BottomTickBar" Grid.ColumnSpan="3" Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}" Height="{ThemeResource SliderOutsideTickBarThemeHeight}" Margin="-4.5,0" Grid.Row="2" Visibility="Collapsed"/> 577 <Ellipse x:Name="ellipse" Grid.ColumnSpan="3" Fill="{ThemeResource PhoneAccentBrush}" HorizontalAlignment="Left" Grid.RowSpan="3" Width="30" Height="{Binding Width, ElementName=ellipse}" StrokeThickness="7" Margin="0,15,0,30" RenderTransformOrigin="0.5,0.5"> 578 <Ellipse.RenderTransform> 579 <CompositeTransform/> 580 </Ellipse.RenderTransform> 581 <Ellipse.Stroke> 582 <SolidColorBrush Color="{ThemeResource PhoneChromeColor}"/> 583 </Ellipse.Stroke> 584 </Ellipse> 585 <Thumb x:Name="HorizontalThumb" AutomationProperties.AccessibilityView="Raw" Grid.Column="1" DataContext="{TemplateBinding Value}" Style="{StaticResource SliderThumbStyle}" VerticalAlignment="Center" RenderTransformOrigin="0.5,0.5" Height="20" BorderBrush="{x:Null}" Grid.RowSpan="3" Margin="-4,-13,-30,7" d:LayoutOverrides="LeftPosition, RightPosition" Background="{x:Null}" Width="20" HorizontalAlignment="Center"/> 586 <Rectangle x:Name="HorizontalBorder" Grid.ColumnSpan="3" Grid.RowSpan="3" StrokeThickness="{TemplateBinding BorderThickness}" RadiusX="10"/> 587 </Grid> 588 <Grid x:Name="VerticalTemplate" Visibility="Collapsed"> 589 <Grid.ColumnDefinitions> 590 <ColumnDefinition Width="13.5"/> 591 <ColumnDefinition Width="Auto"/> 592 <ColumnDefinition Width="13.5"/> 593 </Grid.ColumnDefinitions> 594 <Grid.RowDefinitions> 595 <RowDefinition Height="*"/> 596 <RowDefinition Height="Auto"/> 597 <RowDefinition Height="Auto"/> 598 </Grid.RowDefinitions> 599 <Rectangle x:Name="VerticalTrackRect" Grid.Column="1" Fill="{TemplateBinding Background}" Grid.RowSpan="3" Stroke="{ThemeResource SliderTrackBorderThemeBrush}"/> 600 <Rectangle x:Name="VerticalDecreaseRect" Grid.Column="1" Fill="{TemplateBinding Foreground}" Grid.Row="2"/> 601 <TickBar x:Name="LeftTickBar" Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}" HorizontalAlignment="Right" Margin="0,0,1.5,0" Grid.RowSpan="3" Visibility="Collapsed" Width="{ThemeResource SliderOutsideTickBarThemeHeight}"/> 602 <TickBar x:Name="VerticalInlineTickBar" Grid.Column="1" Fill="{ThemeResource SliderTickMarkInlineBackgroundThemeBrush}" Grid.RowSpan="3" Visibility="Collapsed" Width="{ThemeResource SliderTrackThemeHeight}"/> 603 <TickBar x:Name="RightTickBar" Grid.Column="2" Fill="{ThemeResource SliderTickmarkOutsideBackgroundThemeBrush}" HorizontalAlignment="Left" Margin="1.5,0,0,0" Grid.RowSpan="3" Visibility="Collapsed" Width="{ThemeResource SliderOutsideTickBarThemeHeight}"/> 604 <Thumb x:Name="VerticalThumb" AutomationProperties.AccessibilityView="Raw" Background="{ThemeResource SliderThumbBackgroundThemeBrush}" Grid.Column="1" DataContext="{TemplateBinding Value}" Height="{ThemeResource SliderTrackThemeHeight}" Grid.Row="1" Style="{StaticResource SliderThumbStyle}" Width="{ThemeResource SliderTrackThemeHeight}"/> 605 <Rectangle x:Name="VerticalBorder" Grid.Column="1" Grid.RowSpan="3" Stroke="{TemplateBinding BorderBrush}" StrokeThickness="{TemplateBinding BorderThickness}"/> 606 </Grid> 607 </Grid> 608 </Grid> 609 </ControlTemplate> 610 </Setter.Value> 611 </Setter> 612 </Style> 613 <Style x:Key="ToggleButtonStyle" TargetType="ToggleButton"> 614 <Setter Property="Background" Value="Transparent"/> 615 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 616 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 617 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 618 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 619 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 620 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 621 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 622 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 623 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 624 <Setter Property="HorizontalAlignment" Value="Left"/> 625 <Setter Property="VerticalAlignment" Value="Center"/> 626 <Setter Property="Template"> 627 <Setter.Value> 628 <ControlTemplate TargetType="ToggleButton"> 629 <Grid Background="Transparent"> 630 <VisualStateManager.VisualStateGroups> 631 <VisualStateGroup x:Name="CommonStates"> 632 <VisualState x:Name="Normal"/> 633 <VisualState x:Name="PointerOver"/> 634 <VisualState x:Name="Pressed"> 635 <Storyboard> 636 <DoubleAnimationUsingKeyFrames Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border"> 637 <EasingDoubleKeyFrame KeyTime="0" Value="0.005"/> 638 <EasingDoubleKeyFrame KeyTime="0:0:0.1" Value="1"/> 639 </DoubleAnimationUsingKeyFrames> 640 </Storyboard> 641 </VisualState> 642 <VisualState x:Name="Disabled"> 643 <Storyboard> 644 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 645 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 646 </ObjectAnimationUsingKeyFrames> 647 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 648 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 649 </ObjectAnimationUsingKeyFrames> 650 </Storyboard> 651 </VisualState> 652 <VisualState x:Name="Checked"> 653 <Storyboard> 654 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 655 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneAccentBrush}"/> 656 </ObjectAnimationUsingKeyFrames> 657 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 658 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 659 </ObjectAnimationUsingKeyFrames> 660 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 661 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 662 </ObjectAnimationUsingKeyFrames> 663 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 664 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 665 </ObjectAnimationUsingKeyFrames> 666 </Storyboard> 667 </VisualState> 668 <VisualState x:Name="CheckedPointerOver"> 669 <Storyboard> 670 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 671 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 672 </ObjectAnimationUsingKeyFrames> 673 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 674 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 675 </ObjectAnimationUsingKeyFrames> 676 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 677 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 678 </ObjectAnimationUsingKeyFrames> 679 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 680 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 681 </ObjectAnimationUsingKeyFrames> 682 </Storyboard> 683 </VisualState> 684 <VisualState x:Name="CheckedPressed"> 685 <Storyboard> 686 <DoubleAnimation Duration="0:0:0.1" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="border" d:IsOptimized="True"/> 687 </Storyboard> 688 </VisualState> 689 <VisualState x:Name="CheckedDisabled"> 690 <Storyboard> 691 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EnabledBackground"> 692 <DiscreteObjectKeyFrame KeyTime="0" Value="0.4"/> 693 </ObjectAnimationUsingKeyFrames> 694 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 695 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 696 </ObjectAnimationUsingKeyFrames> 697 </Storyboard> 698 </VisualState> 699 <VisualState x:Name="Indeterminate"/> 700 <VisualState x:Name="IndeterminatePointerOver"/> 701 <VisualState x:Name="IndeterminatePressed"/> 702 <VisualState x:Name="IndeterminateDisabled"> 703 <Storyboard> 704 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 705 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 706 </ObjectAnimationUsingKeyFrames> 707 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 708 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 709 </ObjectAnimationUsingKeyFrames> 710 </Storyboard> 711 </VisualState> 712 </VisualStateGroup> 713 </VisualStateManager.VisualStateGroups> 714 <Border x:Name="EnabledBackground" BorderThickness="{TemplateBinding BorderThickness}" Margin="{ThemeResource PhoneTouchTargetOverhang}"> 715 <ContentPresenter x:Name="EnabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 716 </Border> 717 <Border x:Name="DisabledBackground" BorderBrush="{ThemeResource ButtonDisabledBorderThemeBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" IsHitTestVisible="False" Margin="{ThemeResource PhoneTouchTargetOverhang}" Visibility="Collapsed"> 718 <ContentPresenter x:Name="DisabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{ThemeResource ButtonDisabledForegroundThemeBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 719 </Border> 720 <Border x:Name="border" Margin="0" VerticalAlignment="Center" Background="#7F919191" CornerRadius="20" BorderThickness="0,0,0,1" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" Height="56" Width="{TemplateBinding ActualWidth}" Opacity="0.005" > 721 <Border.RenderTransform> 722 <CompositeTransform TranslateX="-50"/> 723 </Border.RenderTransform> 724 <TextBlock x:Name="textBlock" Margin="0" TextWrapping="Wrap" Text="{TemplateBinding Content}" FontFamily="Assets/Font/iconfont.ttf#iconfont" HorizontalAlignment="Center" VerticalAlignment="Center" Foreground="White"/> 725 </Border> 726 </Grid> 727 </ControlTemplate> 728 </Setter.Value> 729 </Setter> 730 </Style> 731 <Thickness x:Key="PivotPortraitThemePadding">19,38,0,0</Thickness> 732 <Thickness x:Key="PivotLandscapeThemePadding">19,25,0,0</Thickness> 733 <Style x:Key="PivotStyle" TargetType="Pivot"> 734 <Setter Property="Margin" Value="0"/> 735 <Setter Property="Padding" Value="0"/> 736 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 737 <Setter Property="Background" Value="Transparent"/> 738 <Setter Property="ItemsPanel"> 739 <Setter.Value> 740 <ItemsPanelTemplate> 741 <Grid/> 742 </ItemsPanelTemplate> 743 </Setter.Value> 744 </Setter> 745 <Setter Property="Template"> 746 <Setter.Value> 747 <ControlTemplate TargetType="Pivot"> 748 <Grid x:Name="RootElement" Background="{TemplateBinding Background}" HorizontalAlignment="{TemplateBinding HorizontalAlignment}" VerticalAlignment="{TemplateBinding VerticalAlignment}"> 749 <Grid.RowDefinitions> 750 <RowDefinition Height="Auto"/> 751 <RowDefinition Height="*"/> 752 </Grid.RowDefinitions> 753 <VisualStateManager.VisualStateGroups> 754 <VisualStateGroup x:Name="Orientation"> 755 <VisualState x:Name="Portrait"> 756 <Storyboard> 757 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="TitleContentControl"> 758 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PivotPortraitThemePadding}"/> 759 </ObjectAnimationUsingKeyFrames> 760 </Storyboard> 761 </VisualState> 762 <VisualState x:Name="Landscape"> 763 <Storyboard> 764 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Margin" Storyboard.TargetName="TitleContentControl"> 765 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PivotLandscapeThemePadding}"/> 766 </ObjectAnimationUsingKeyFrames> 767 </Storyboard> 768 </VisualState> 769 </VisualStateGroup> 770 </VisualStateManager.VisualStateGroups> 771 <ContentControl x:Name="TitleContentControl" ContentTemplate="{TemplateBinding TitleTemplate}" Content="{TemplateBinding Title}" Style="{StaticResource PivotTitleContentControlStyle}"/> 772 <ScrollViewer x:Name="ScrollViewer" HorizontalSnapPointsAlignment="Center" HorizontalSnapPointsType="MandatorySingle" HorizontalScrollBarVisibility="Hidden" Margin="0,0,0,-0.167" Template="{StaticResource ScrollViewerScrollBarlessTemplate}" VerticalSnapPointsType="None" VerticalScrollBarVisibility="Disabled" VerticalScrollMode="Disabled" VerticalContentAlignment="Stretch" ZoomMode="Disabled" Grid.RowSpan="2" d:LayoutOverrides="TopMargin, BottomMargin"> 773 <PivotPanel x:Name="Panel" VerticalAlignment="Stretch"> 774 <PivotHeaderPanel x:Name="Header"> 775 <PivotHeaderPanel.RenderTransform> 776 <CompositeTransform x:Name="HeaderTranslateTransform" TranslateX="0"/> 777 </PivotHeaderPanel.RenderTransform> 778 </PivotHeaderPanel> 779 <ItemsPresenter x:Name="PivotItemPresenter"> 780 <ItemsPresenter.RenderTransform> 781 <TranslateTransform x:Name="ItemsPresenterTranslateTransform" X="0"/> 782 </ItemsPresenter.RenderTransform> 783 </ItemsPresenter> 784 </PivotPanel> 785 </ScrollViewer> 786 </Grid> 787 </ControlTemplate> 788 </Setter.Value> 789 </Setter> 790 </Style> 791 <SolidColorBrush x:Key="ListBoxBorderThemeBrush" Color="Transparent"/> 792 <Thickness x:Key="ListBoxBorderThemeThickness">1.5</Thickness> 793 <Style x:Key="ListBoxStyle" TargetType="ListBox"> 794 <Setter Property="Foreground" Value="{ThemeResource ListBoxForegroundThemeBrush}"/> 795 <Setter Property="Background" Value="{ThemeResource ListBoxBackgroundThemeBrush}"/> 796 <Setter Property="BorderBrush" Value="{ThemeResource ListBoxBorderThemeBrush}"/> 797 <Setter Property="BorderThickness" Value="{ThemeResource ListBoxBorderThemeThickness}"/> 798 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Disabled"/> 799 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Auto"/> 800 <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Disabled"/> 801 <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/> 802 <Setter Property="ScrollViewer.ZoomMode" Value="Disabled"/> 803 <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/> 804 <Setter Property="ScrollViewer.BringIntoViewOnFocusChange" Value="True"/> 805 <Setter Property="IsTabStop" Value="False"/> 806 <Setter Property="TabNavigation" Value="Once"/> 807 <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> 808 <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> 809 <Setter Property="ItemsPanel"> 810 <Setter.Value> 811 <ItemsPanelTemplate> 812 <VirtualizingStackPanel/> 813 </ItemsPanelTemplate> 814 </Setter.Value> 815 </Setter> 816 <Setter Property="Template"> 817 <Setter.Value> 818 <ControlTemplate TargetType="ListBox"> 819 <Border x:Name="LayoutRoot" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"> 820 <VisualStateManager.VisualStateGroups> 821 <VisualStateGroup x:Name="CommonStates"> 822 <VisualState x:Name="Normal"/> 823 <VisualState x:Name="Disabled"> 824 <Storyboard> 825 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="LayoutRoot"> 826 <DiscreteObjectKeyFrame KeyTime="0" Value="Transparent"/> 827 </ObjectAnimationUsingKeyFrames> 828 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="LayoutRoot"> 829 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ListBoxDisabledForegroundThemeBrush}"/> 830 </ObjectAnimationUsingKeyFrames> 831 </Storyboard> 832 </VisualState> 833 </VisualStateGroup> 834 </VisualStateManager.VisualStateGroups> 835 <ScrollViewer x:Name="ScrollViewer" AutomationProperties.AccessibilityView="Raw" BringIntoViewOnFocusChange="{TemplateBinding ScrollViewer.BringIntoViewOnFocusChange}" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Padding="{TemplateBinding Padding}" TabNavigation="{TemplateBinding TabNavigation}" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="{TemplateBinding ScrollViewer.ZoomMode}" Background="{x:Null}"> 836 <ItemsPresenter/> 837 </ScrollViewer> 838 </Border> 839 </ControlTemplate> 840 </Setter.Value> 841 </Setter> 842 </Style> 843 <Style x:Key="ThumbStyle" TargetType="Thumb"> 844 <Setter Property="Background" Value="{ThemeResource ThumbBackgroundThemeBrush}"/> 845 <Setter Property="BorderThickness" Value="0.8"/> 846 <Setter Property="IsTabStop" Value="False"/> 847 <Setter Property="BorderBrush" Value="{ThemeResource ThumbBorderThemeBrush}"/> 848 <Setter Property="Template"> 849 <Setter.Value> 850 <ControlTemplate TargetType="Thumb"> 851 <Grid> 852 <VisualStateManager.VisualStateGroups> 853 <VisualStateGroup x:Name="CommonStates"> 854 <VisualStateGroup.Transitions> 855 <VisualTransition GeneratedDuration="0:0:0.2"/> 856 </VisualStateGroup.Transitions> 857 <VisualState x:Name="Normal"/> 858 <VisualState x:Name="PointerOver"/> 859 <VisualState x:Name="Pressed"> 860 <Storyboard> 861 <DoubleAnimation Duration="0:0:0.2" To="0" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="Background" d:IsOptimized="True"/> 862 <DoubleAnimation Duration="0:0:0.2" To="1" Storyboard.TargetProperty="(UIElement.Opacity)" Storyboard.TargetName="BackgroundPressed" d:IsOptimized="True"/> 863 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Border.Background)" Storyboard.TargetName="BackgroundPressed"> 864 <DiscreteObjectKeyFrame KeyTime="0"> 865 <DiscreteObjectKeyFrame.Value> 866 <SolidColorBrush Color="{StaticResource PhoneForegroundColor}"/> 867 </DiscreteObjectKeyFrame.Value> 868 </DiscreteObjectKeyFrame> 869 </ObjectAnimationUsingKeyFrames> 870 <DoubleAnimation Duration="0:0:0.15" To="-20" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.TranslateY)" Storyboard.TargetName="BackgroundPressed" d:IsOptimized="True"/> 871 <DoubleAnimation Duration="0:0:0.15" To="1.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="BackgroundPressed"/> 872 <DoubleAnimation Duration="0:0:0.15" To="1.5" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="BackgroundPressed"/> 873 </Storyboard> 874 </VisualState> 875 <VisualState x:Name="Disabled"/> 876 </VisualStateGroup> 877 </VisualStateManager.VisualStateGroups> 878 <Border x:Name="Background" Width="30" Height="30"> 879 <Ellipse x:Name="ellipse1" StrokeThickness="5" Height="{Binding Width, ElementName=ellipse1}" > 880 <Ellipse.Stroke> 881 <SolidColorBrush Color="{ThemeResource PhoneForegroundColor}"/> 882 </Ellipse.Stroke> 883 <Ellipse.Fill> 884 <SolidColorBrush Color="{ThemeResource PhoneBackgroundColor}"/> 885 </Ellipse.Fill> 886 </Ellipse> 887 </Border> 888 <Border x:Name="BackgroundPressed" Width="30" Height="15" BorderThickness="0" RenderTransformOrigin="0.5,0.5" Opacity="0" CornerRadius="5"> 889 <Border.RenderTransform> 890 <CompositeTransform/> 891 </Border.RenderTransform> 892 <TextBlock Margin="2" x:Name="textBlock" Text="25:32" FontSize="6" FontFamily="Assets/Font/Custom/Raleway-Light.ttf#Raleway" HorizontalAlignment="Center" VerticalAlignment="Top"> 893 <TextBlock.Foreground> 894 <SolidColorBrush Color="{ThemeResource PhoneChromeColor}"/> 895 </TextBlock.Foreground> 896 </TextBlock> 897 </Border> 898 </Grid> 899 </ControlTemplate> 900 </Setter.Value> 901 </Setter> 902 </Style> 903 904 905 <Style x:Key="SliderTemplate" TargetType="Slider"> 906 <Setter Property="Template"> 907 <Setter.Value> 908 <ControlTemplate TargetType="Slider"> 909 <Grid> 910 <Grid.ColumnDefinitions> 911 <ColumnDefinition Width="Auto" /> 912 <ColumnDefinition Width="3*" /> 913 <ColumnDefinition Width="7*"/> 914 <ColumnDefinition Width="Auto" /> 915 </Grid.ColumnDefinitions> 916 917 <VisualStateManager.VisualStateGroups> 918 <VisualStateGroup x:Name="CommonStates"> 919 <VisualState x:Name="Normal"/> 920 <VisualState x:Name="PointerOver"/> 921 <VisualState x:Name="Pressed"> 922 <Storyboard> 923 <DoubleAnimation Duration="0:0:0.1" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleX)" Storyboard.TargetName="HorizontalThumb" d:IsOptimized="True"/> 924 <DoubleAnimation Duration="0:0:0.1" To="2" Storyboard.TargetProperty="(UIElement.RenderTransform).(CompositeTransform.ScaleY)" Storyboard.TargetName="HorizontalThumb" d:IsOptimized="True"/> 925 </Storyboard> 926 </VisualState> 927 <VisualState x:Name="Disabled"/> 928 </VisualStateGroup> 929 </VisualStateManager.VisualStateGroups> 930 931 <Grid x:Name="HorizontalTemplate" Grid.Column="1" Grid.ColumnSpan="2" d:LayoutOverrides="TopMargin, BottomMargin, TopPosition, BottomPosition"> 932 <Grid.ColumnDefinitions> 933 <ColumnDefinition Width="Auto" /> 934 <ColumnDefinition Width="Auto" /> 935 <ColumnDefinition Width="*" /> 936 </Grid.ColumnDefinitions> 937 938 <Rectangle x:Name="HorizontalTrackRect" 939 Grid.Column="0" 940 Grid.ColumnSpan="3" 941 HorizontalAlignment="Stretch" 942 VerticalAlignment="Center" 943 Stretch="Fill" 944 Fill="#7B838A" 945 Height="5" StrokeThickness="0" /> 946 947 <Thumb x:Name="HorizontalThumb" 948 Grid.Column="1" Style="{StaticResource ThumbStyle}" d:LayoutOverrides="TopPosition, BottomPosition" RenderTransformOrigin="0.5,0.5" BorderThickness="0" HorizontalAlignment="Left" Width="30" > 949 <Thumb.Background> 950 <SolidColorBrush Color="{ThemeResource PhoneForegroundColor}"/> 951 </Thumb.Background> 952 <Thumb.RenderTransform> 953 <CompositeTransform/> 954 </Thumb.RenderTransform> 955 </Thumb> 956 957 <Rectangle x:Name="HorizontalDecreaseRect" 958 Grid.Column="0" 959 Fill="{ThemeResource PhoneAccentBrush}" 960 Height="5" /> 961 962 </Grid> 963 </Grid> 964 </ControlTemplate> 965 </Setter.Value> 966 </Setter> 967 </Style> 968 <x:Double x:Key="TextStyleExtraLargeFontSize">25.5</x:Double> 969 <SolidColorBrush x:Key="ToggleSwitchTrackBorderThemeBrush" Color="Transparent"/> 970 <Style TargetType="ToggleSwitch"> 971 <Setter Property="Foreground" Value="{ThemeResource ToggleSwitchForegroundThemeBrush}"/> 972 <Setter Property="HorizontalAlignment" Value="Stretch"/> 973 <Setter Property="VerticalAlignment" Value="Center"/> 974 <Setter Property="HorizontalContentAlignment" Value="Left"/> 975 <Setter Property="FontFamily" Value="{ThemeResource ContentControlThemeFontFamily}"/> 976 <Setter Property="FontWeight" Value="SemiBold"/> 977 <Setter Property="FontSize" Value="{ThemeResource ControlContentThemeFontSize}"/> 978 <Setter Property="Margin" Value="0"/> 979 <Setter Property="Padding" Value="0,0,25.5,0"/> 980 <Setter Property="Template"> 981 <Setter.Value> 982 <ControlTemplate TargetType="ToggleSwitch"> 983 <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}"> 984 <VisualStateManager.VisualStateGroups> 985 <VisualStateGroup x:Name="CommonStates"> 986 <VisualState x:Name="Normal"/> 987 <VisualState x:Name="PointerOver"/> 988 <VisualState x:Name="Pressed"/> 989 <VisualState x:Name="Disabled"> 990 <Storyboard> 991 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter"> 992 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchDisabledForegroundThemeBrush}"/> 993 </ObjectAnimationUsingKeyFrames> 994 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="OffContentPresenter"> 995 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchDisabledForegroundThemeBrush}"/> 996 </ObjectAnimationUsingKeyFrames> 997 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="OnContentPresenter"> 998 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchDisabledForegroundThemeBrush}"/> 999 </ObjectAnimationUsingKeyFrames> 1000 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="SwitchKnob"> 1001 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbDisabledBackgroundThemeBrush}"/> 1002 </ObjectAnimationUsingKeyFrames> 1003 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Stroke" Storyboard.TargetName="SwitchKnob"> 1004 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchThumbDisabledBorderThemeBrush}"/> 1005 </ObjectAnimationUsingKeyFrames> 1006 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="OuterBorder"> 1007 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchOuterBorderDisabledBorderThemeBrush}"/> 1008 </ObjectAnimationUsingKeyFrames> 1009 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Fill" Storyboard.TargetName="SwitchCurtain"> 1010 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource ToggleSwitchCurtainDisabledBackgroundThemeBrush}"/> 1011 </ObjectAnimationUsingKeyFrames> 1012 </Storyboard> 1013 </VisualState> 1014 </VisualStateGroup> 1015 <VisualStateGroup x:Name="ToggleStates"> 1016 <VisualStateGroup.Transitions> 1017 <VisualTransition x:Name="DraggingToOnTransition" From="Dragging" GeneratedDuration="0" To="On"> 1018 <Storyboard> 1019 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.KnobCurrentToOnOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchKnob"/> 1020 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.CurtainCurrentToOnOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchCurtain"/> 1021 </Storyboard> 1022 </VisualTransition> 1023 <VisualTransition x:Name="DraggingToOffTransition" From="Dragging" GeneratedDuration="0" To="Off"> 1024 <Storyboard> 1025 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.KnobCurrentToOffOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchKnob"/> 1026 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.CurtainCurrentToOffOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchCurtain"/> 1027 </Storyboard> 1028 </VisualTransition> 1029 <VisualTransition x:Name="OnToOffTransition" From="On" GeneratedDuration="0" To="Off"> 1030 <Storyboard> 1031 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.KnobOnToOffOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchKnob"/> 1032 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.CurtainOnToOffOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchCurtain"/> 1033 </Storyboard> 1034 </VisualTransition> 1035 <VisualTransition x:Name="OffToOnTransition" From="Off" GeneratedDuration="0" To="On"> 1036 <Storyboard> 1037 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.KnobOffToOnOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchKnob"/> 1038 <RepositionThemeAnimation FromHorizontalOffset="{Binding TemplateSettings.CurtainOffToOnOffset, RelativeSource={RelativeSource Mode=TemplatedParent}}" Storyboard.TargetName="SwitchCurtain"/> 1039 </Storyboard> 1040 </VisualTransition> 1041 </VisualStateGroup.Transitions> 1042 <VisualState x:Name="Dragging"/> 1043 <VisualState x:Name="Off"> 1044 <Storyboard> 1045 <DoubleAnimation Duration="0" To="-64" Storyboard.TargetProperty="X" Storyboard.TargetName="CurtainTranslateTransform"/> 1046 </Storyboard> 1047 </VisualState> 1048 <VisualState x:Name="On"> 1049 <Storyboard> 1050 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="X" Storyboard.TargetName="CurtainTranslateTransform"/> 1051 <DoubleAnimation Duration="0" To="56.5" Storyboard.TargetProperty="X" Storyboard.TargetName="KnobTranslateTransform"/> 1052 </Storyboard> 1053 </VisualState> 1054 </VisualStateGroup> 1055 <VisualStateGroup x:Name="ContentStates"> 1056 <VisualState x:Name="OffContent"> 1057 <Storyboard> 1058 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OffContentPresenter"/> 1059 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="OffContentPresenter"> 1060 <DiscreteObjectKeyFrame KeyTime="0" Value="True"/> 1061 </ObjectAnimationUsingKeyFrames> 1062 </Storyboard> 1063 </VisualState> 1064 <VisualState x:Name="OnContent"> 1065 <Storyboard> 1066 <DoubleAnimation Duration="0" To="1" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="OnContentPresenter"/> 1067 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsHitTestVisible" Storyboard.TargetName="OnContentPresenter"> 1068 <DiscreteObjectKeyFrame KeyTime="0" Value="True"/> 1069 </ObjectAnimationUsingKeyFrames> 1070 </Storyboard> 1071 </VisualState> 1072 </VisualStateGroup> 1073 </VisualStateManager.VisualStateGroups> 1074 <Grid Background="Transparent"> 1075 <Grid.ColumnDefinitions> 1076 <ColumnDefinition Width="Auto"/> 1077 <ColumnDefinition Width="*"/> 1078 <ColumnDefinition Width="Auto"/> 1079 </Grid.ColumnDefinitions> 1080 <ContentPresenter x:Name="HeaderContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Foreground="{ThemeResource ToggleSwitchHeaderForegroundThemeBrush}" Margin="{TemplateBinding Padding}" Style="{StaticResource PlaceholderContentPresenterStyle}" VerticalAlignment="Center"/> 1081 <Grid Margin="{TemplateBinding Padding}" Grid.Row="1" Visibility="Collapsed" HorizontalAlignment="Left"> 1082 <ContentPresenter x:Name="OffContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding OffContentTemplate}" Content="{TemplateBinding OffContent}" FontWeight="Normal" FontSize="{ThemeResource TextStyleExtraLargeFontSize}" FontFamily="{ThemeResource PhoneFontFamilyNormal}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="False" Opacity="0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 1083 <ContentPresenter x:Name="OnContentPresenter" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding OnContentTemplate}" Content="{TemplateBinding OnContent}" FontWeight="Normal" FontSize="{ThemeResource TextStyleExtraLargeFontSize}" FontFamily="{ThemeResource PhoneFontFamilyNormal}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" IsHitTestVisible="False" Opacity="0" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 1084 </Grid> 1085 <Grid ManipulationMode="None" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,10,0" Grid.Column="2"> 1086 <Grid x:Name="SwitchKnobBounds" Height="36"> 1087 <Border x:Name="OuterBorder" BorderBrush="{ThemeResource ToggleSwitchOuterBorderBorderThemeBrush}" BorderThickness="2.5" Margin="3,4.5,3,4.5"> 1088 <Border x:Name="InnerBorder" BorderBrush="{ThemeResource ToggleSwitchTrackBorderThemeBrush}" BorderThickness="2.5"> 1089 <ContentPresenter x:Name="SwitchCurtainBounds"> 1090 <ContentPresenter x:Name="SwitchCurtainClip"> 1091 <Rectangle x:Name="SwitchCurtain" Fill="{ThemeResource ToggleSwitchCurtainBackgroundThemeBrush}" Width="64"> 1092 <Rectangle.RenderTransform> 1093 <TranslateTransform x:Name="CurtainTranslateTransform" X="-64"/> 1094 </Rectangle.RenderTransform> 1095 </Rectangle> 1096 </ContentPresenter> 1097 </ContentPresenter> 1098 </Border> 1099 </Border> 1100 <Rectangle x:Name="SwitchKnob" Fill="{ThemeResource ToggleSwitchThumbBackgroundThemeBrush}" HorizontalAlignment="Left" Stroke="{ThemeResource ToggleSwitchThumbBorderThemeBrush}" StrokeThickness="2.5" Width="20.5"> 1101 <Rectangle.RenderTransform> 1102 <TranslateTransform x:Name="KnobTranslateTransform"/> 1103 </Rectangle.RenderTransform> 1104 </Rectangle> 1105 </Grid> 1106 <Thumb x:Name="SwitchThumb" AutomationProperties.AccessibilityView="Raw" Margin="-13.5,-15.5,-13.5,-6.5"> 1107 <Thumb.Template> 1108 <ControlTemplate TargetType="Thumb"> 1109 <Rectangle Fill="Transparent"/> 1110 </ControlTemplate> 1111 </Thumb.Template> 1112 </Thumb> 1113 </Grid> 1114 </Grid> 1115 </Border> 1116 </ControlTemplate> 1117 </Setter.Value> 1118 </Setter> 1119 </Style> 1120 <Style TargetType="ToggleButton"> 1121 <Setter Property="Background" Value="Transparent"/> 1122 <Setter Property="BorderBrush" Value="{ThemeResource PhoneForegroundBrush}"/> 1123 <Setter Property="Foreground" Value="{ThemeResource PhoneForegroundBrush}"/> 1124 <Setter Property="BorderThickness" Value="{ThemeResource PhoneBorderThickness}"/> 1125 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 1126 <Setter Property="FontWeight" Value="{ThemeResource PhoneButtonFontWeight}"/> 1127 <Setter Property="FontSize" Value="{ThemeResource TextStyleLargeFontSize}"/> 1128 <Setter Property="Padding" Value="{ThemeResource PhoneButtonContentPadding}"/> 1129 <Setter Property="MinHeight" Value="{ThemeResource PhoneButtonMinHeight}"/> 1130 <Setter Property="MinWidth" Value="{ThemeResource PhoneButtonMinWidth}"/> 1131 <Setter Property="HorizontalAlignment" Value="Left"/> 1132 <Setter Property="VerticalAlignment" Value="Center"/> 1133 <Setter Property="Template"> 1134 <Setter.Value> 1135 <ControlTemplate TargetType="ToggleButton"> 1136 <Grid Background="Transparent"> 1137 <VisualStateManager.VisualStateGroups> 1138 <VisualStateGroup x:Name="CommonStates"> 1139 <VisualState x:Name="Normal"/> 1140 <VisualState x:Name="PointerOver"/> 1141 <VisualState x:Name="Pressed"/> 1142 <VisualState x:Name="Disabled"> 1143 <Storyboard> 1144 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 1145 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 1146 </ObjectAnimationUsingKeyFrames> 1147 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 1148 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 1149 </ObjectAnimationUsingKeyFrames> 1150 </Storyboard> 1151 </VisualState> 1152 <VisualState x:Name="Checked"> 1153 <Storyboard> 1154 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 1155 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 1156 </ObjectAnimationUsingKeyFrames> 1157 <ColorAnimation Duration="0:0:0.2" To="{ThemeResource ContentDialogDimmingColor}" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="EnabledBackground" d:IsOptimized="True"/> 1158 </Storyboard> 1159 </VisualState> 1160 <VisualState x:Name="CheckedPointerOver"> 1161 <Storyboard> 1162 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 1163 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 1164 </ObjectAnimationUsingKeyFrames> 1165 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="DisabledBackground"> 1166 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 1167 </ObjectAnimationUsingKeyFrames> 1168 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="DisabledBackground"> 1169 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneDisabledBrush}"/> 1170 </ObjectAnimationUsingKeyFrames> 1171 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="DisabledContent"> 1172 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneBackgroundBrush}"/> 1173 </ObjectAnimationUsingKeyFrames> 1174 </Storyboard> 1175 </VisualState> 1176 <VisualState x:Name="CheckedPressed"/> 1177 <VisualState x:Name="CheckedDisabled"> 1178 <Storyboard> 1179 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Opacity" Storyboard.TargetName="EnabledBackground"> 1180 <DiscreteObjectKeyFrame KeyTime="0" Value="0.4"/> 1181 </ObjectAnimationUsingKeyFrames> 1182 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="EnabledContent"> 1183 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PhoneButtonBasePressedForegroundBrush}"/> 1184 </ObjectAnimationUsingKeyFrames> 1185 </Storyboard> 1186 </VisualState> 1187 <VisualState x:Name="Indeterminate"/> 1188 <VisualState x:Name="IndeterminatePointerOver"/> 1189 <VisualState x:Name="IndeterminatePressed"/> 1190 <VisualState x:Name="IndeterminateDisabled"> 1191 <Storyboard> 1192 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="EnabledBackground"> 1193 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 1194 </ObjectAnimationUsingKeyFrames> 1195 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="DisabledBackground"> 1196 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 1197 </ObjectAnimationUsingKeyFrames> 1198 </Storyboard> 1199 </VisualState> 1200 </VisualStateGroup> 1201 </VisualStateManager.VisualStateGroups> 1202 <Border x:Name="EnabledBackground" BorderThickness="{TemplateBinding BorderThickness}" Margin="{ThemeResource PhoneTouchTargetOverhang}" Background="Transparent" RenderTransformOrigin="0.5,0.5"> 1203 <Border.RenderTransform> 1204 <CompositeTransform/> 1205 </Border.RenderTransform> 1206 <ContentPresenter x:Name="EnabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{TemplateBinding Foreground}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 1207 </Border> 1208 <Border x:Name="DisabledBackground" BorderBrush="{ThemeResource ButtonDisabledBorderThemeBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="Transparent" IsHitTestVisible="False" Margin="{ThemeResource PhoneTouchTargetOverhang}" Visibility="Collapsed"> 1209 <ContentPresenter x:Name="DisabledContent" AutomationProperties.AccessibilityView="Raw" ContentTemplate="{TemplateBinding ContentTemplate}" Content="{TemplateBinding Content}" Foreground="{ThemeResource ButtonDisabledForegroundThemeBrush}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" Margin="{TemplateBinding Padding}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/> 1210 </Border> 1211 </Grid> 1212 </ControlTemplate> 1213 </Setter.Value> 1214 </Setter> 1215 </Style> 1216 <Style x:Key="SearchBox" TargetType="TextBox"> 1217 <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/> 1218 <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/> 1219 <Setter Property="Foreground" Value="{ThemeResource TextBoxForegroundThemeBrush}"/> 1220 <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextSelectionHighlightColorThemeBrush}"/> 1221 <Setter Property="Background" Value="{ThemeResource TextBoxBackgroundThemeBrush}"/> 1222 <Setter Property="BorderBrush" Value="{ThemeResource TextBoxBorderThemeBrush}"/> 1223 <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/> 1224 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 1225 <Setter Property="FontSize" Value="{ThemeResource ContentControlFontSize}"/> 1226 <Setter Property="TextWrapping" Value="NoWrap"/> 1227 <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/> 1228 <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/> 1229 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/> 1230 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/> 1231 <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/> 1232 <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/> 1233 <Setter Property="Margin" Value="{ThemeResource TextControlMarginThemeThickness}"/> 1234 <Setter Property="VerticalAlignment" Value="Top"/> 1235 <Setter Property="Template"> 1236 <Setter.Value> 1237 <ControlTemplate TargetType="TextBox"> 1238 <Grid Background="Transparent"> 1239 <Grid.RowDefinitions> 1240 <RowDefinition Height="Auto"/> 1241 <RowDefinition Height="*"/> 1242 </Grid.RowDefinitions> 1243 <VisualStateManager.VisualStateGroups> 1244 <VisualStateGroup x:Name="CommonStates"> 1245 <VisualState x:Name="Disabled"> 1246 <Storyboard> 1247 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement"> 1248 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}"/> 1249 </ObjectAnimationUsingKeyFrames> 1250 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter"> 1251 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledHeaderForegroundThemeBrush}"/> 1252 </ObjectAnimationUsingKeyFrames> 1253 </Storyboard> 1254 </VisualState> 1255 <VisualState x:Name="Normal"> 1256 <Storyboard> 1257 <DoubleAnimation Duration="0" To="{ThemeResource TextControlBorderThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BorderElement"/> 1258 </Storyboard> 1259 </VisualState> 1260 <VisualState x:Name="Focused"> 1261 <Storyboard> 1262 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PlaceholderTextContentPresenter"/> 1263 <ColorAnimation Duration="0:0:0.2" To="White" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="BorderElement" d:IsOptimized="True"/> 1264 <ColorAnimation Duration="0:0:0.2" To="White" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="BorderElement" d:IsOptimized="True"/> 1265 </Storyboard> 1266 </VisualState> 1267 </VisualStateGroup> 1268 </VisualStateManager.VisualStateGroups> 1269 <Border x:Name="BorderElement" BorderThickness="{TemplateBinding BorderThickness}" Grid.Row="1" BorderBrush="#00000000"> 1270 <Border.Background> 1271 <SolidColorBrush/> 1272 </Border.Background> 1273 </Border> 1274 <ContentPresenter x:Name="HeaderContentPresenter" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Margin="{ThemeResource TextControlHeaderMarginThemeThickness}" Grid.Row="0" Style="{StaticResource HeaderContentPresenterStyle}"/> 1275 <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" MinHeight="{ThemeResource TextControlThemeMinHeight}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled"/> 1276 <ContentControl x:Name="PlaceholderTextContentPresenter" Content="{TemplateBinding PlaceholderText}" FontSize="{ThemeResource ContentControlFontSize}" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" Background="Black"> 1277 <ContentControl.Foreground> 1278 <SolidColorBrush Color="{ThemeResource ContentDialogDimmingColor}"/> 1279 </ContentControl.Foreground> 1280 <ContentControl.BorderBrush> 1281 <SolidColorBrush Color="{ThemeResource ContentDialogDimmingColor}"/> 1282 </ContentControl.BorderBrush> 1283 </ContentControl> 1284 </Grid> 1285 </ControlTemplate> 1286 </Setter.Value> 1287 </Setter> 1288 </Style> 1289 <Thickness x:Key="RichEditBoxTextThemeMargin">2.5,2.5,2.5,2.5</Thickness> 1290 <Thickness x:Key="PasswordBoxCheckBoxThemeMargin">0,-6.5,0,0</Thickness> 1291 <Style x:Key="PasswordBoxTemplate" TargetType="PasswordBox"> 1292 <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/> 1293 <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/> 1294 <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextSelectionHighlightColorThemeBrush}"/> 1295 <Setter Property="Foreground" Value="{ThemeResource TextBoxForegroundThemeBrush}"/> 1296 <Setter Property="Background" Value="{ThemeResource TextBoxBackgroundThemeBrush}"/> 1297 <Setter Property="BorderBrush" Value="{ThemeResource TextBoxBorderThemeBrush}"/> 1298 <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/> 1299 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 1300 <Setter Property="FontSize" Value="{ThemeResource ContentControlFontSize}"/> 1301 <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/> 1302 <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/> 1303 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/> 1304 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/> 1305 <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/> 1306 <Setter Property="Margin" Value="{ThemeResource TextControlMarginThemeThickness}"/> 1307 <Setter Property="VerticalAlignment" Value="Top"/> 1308 <Setter Property="Template"> 1309 <Setter.Value> 1310 <ControlTemplate TargetType="PasswordBox"> 1311 <Grid Background="Transparent"> 1312 <Grid.RowDefinitions> 1313 <RowDefinition Height="Auto"/> 1314 <RowDefinition Height="*"/> 1315 <RowDefinition Height="Auto"/> 1316 </Grid.RowDefinitions> 1317 <VisualStateManager.VisualStateGroups> 1318 <VisualStateGroup x:Name="CommonStates"> 1319 <VisualState x:Name="Disabled"> 1320 <Storyboard> 1321 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement"> 1322 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledBackgroundThemeBrush}"/> 1323 </ObjectAnimationUsingKeyFrames> 1324 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement"> 1325 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledBorderThemeBrush}"/> 1326 </ObjectAnimationUsingKeyFrames> 1327 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement"> 1328 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}"/> 1329 </ObjectAnimationUsingKeyFrames> 1330 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter"> 1331 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}"/> 1332 </ObjectAnimationUsingKeyFrames> 1333 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter"> 1334 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledHeaderForegroundThemeBrush}"/> 1335 </ObjectAnimationUsingKeyFrames> 1336 </Storyboard> 1337 </VisualState> 1338 <VisualState x:Name="Normal"> 1339 <Storyboard> 1340 <DoubleAnimation Duration="0" To="{ThemeResource TextControlBorderThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BorderElement"/> 1341 </Storyboard> 1342 </VisualState> 1343 <VisualState x:Name="PointerOver"/> 1344 <VisualState x:Name="Focused"> 1345 <Storyboard> 1346 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="BorderBrush" Storyboard.TargetName="BorderElement"> 1347 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextSelectionHighlightColorThemeBrush}"/> 1348 </ObjectAnimationUsingKeyFrames> 1349 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PlaceholderTextContentPresenter"/> 1350 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Background" Storyboard.TargetName="BorderElement"> 1351 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxFocusedBackgroundThemeBrush}"/> 1352 </ObjectAnimationUsingKeyFrames> 1353 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.Foreground)" Storyboard.TargetName="ContentElement"> 1354 <DiscreteObjectKeyFrame KeyTime="0"> 1355 <DiscreteObjectKeyFrame.Value> 1356 <SolidColorBrush Color="Black"/> 1357 </DiscreteObjectKeyFrame.Value> 1358 </DiscreteObjectKeyFrame> 1359 </ObjectAnimationUsingKeyFrames> 1360 </Storyboard> 1361 </VisualState> 1362 </VisualStateGroup> 1363 <VisualStateGroup x:Name="ButtonStates"> 1364 <VisualState x:Name="ButtonVisible"> 1365 <Storyboard> 1366 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="RevealButton"> 1367 <DiscreteObjectKeyFrame KeyTime="0" Value="Visible"/> 1368 </ObjectAnimationUsingKeyFrames> 1369 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsChecked" Storyboard.TargetName="RevealButton"> 1370 <DiscreteObjectKeyFrame KeyTime="0" Value="False"/> 1371 </ObjectAnimationUsingKeyFrames> 1372 </Storyboard> 1373 </VisualState> 1374 <VisualState x:Name="ButtonCollapsed"> 1375 <Storyboard> 1376 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Visibility" Storyboard.TargetName="RevealButton"> 1377 <DiscreteObjectKeyFrame KeyTime="0" Value="Collapsed"/> 1378 </ObjectAnimationUsingKeyFrames> 1379 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="IsChecked" Storyboard.TargetName="RevealButton"> 1380 <DiscreteObjectKeyFrame KeyTime="0" Value="False"/> 1381 </ObjectAnimationUsingKeyFrames> 1382 </Storyboard> 1383 </VisualState> 1384 </VisualStateGroup> 1385 </VisualStateManager.VisualStateGroups> 1386 <Border x:Name="BorderElement" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" Background="{TemplateBinding Background}" Grid.Row="1"/> 1387 <ContentPresenter x:Name="HeaderContentPresenter" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Margin="{ThemeResource TextControlHeaderMarginThemeThickness}" Grid.Row="0" Style="{StaticResource HeaderContentPresenterStyle}"/> 1388 <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" Margin="{ThemeResource RichEditBoxTextThemeMargin}" MinHeight="{ThemeResource TextControlThemeMinHeight}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" HorizontalContentAlignment="Center" VerticalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center"/> 1389 <ContentControl x:Name="PlaceholderTextContentPresenter" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextBoxPlaceholderTextThemeBrush}" IsTabStop="False" Margin="{ThemeResource RichEditBoxTextThemeMargin}" Padding="{TemplateBinding Padding}" Grid.Row="1" HorizontalAlignment="Center"/> 1390 <CheckBox x:Name="RevealButton" Foreground="{ThemeResource TextBoxForegroundHeaderThemeBrush}" HorizontalAlignment="Left" IsTabStop="False" Margin="{ThemeResource PasswordBoxCheckBoxThemeMargin}" Grid.Row="2" Visibility="Collapsed" VerticalAlignment="Top"/> 1391 </Grid> 1392 </ControlTemplate> 1393 </Setter.Value> 1394 </Setter> 1395 </Style> 1396 <Style x:Key="PasswordTextBox" TargetType="TextBox"> 1397 <Setter Property="MinWidth" Value="{ThemeResource TextControlThemeMinWidth}"/> 1398 <Setter Property="MinHeight" Value="{ThemeResource TextControlThemeMinHeight}"/> 1399 <Setter Property="Foreground" Value="{ThemeResource TextBoxForegroundThemeBrush}"/> 1400 <Setter Property="SelectionHighlightColor" Value="{ThemeResource TextSelectionHighlightColorThemeBrush}"/> 1401 <Setter Property="Background" Value="{ThemeResource TextBoxBackgroundThemeBrush}"/> 1402 <Setter Property="BorderBrush" Value="{ThemeResource TextBoxBorderThemeBrush}"/> 1403 <Setter Property="BorderThickness" Value="{ThemeResource TextControlBorderThemeThickness}"/> 1404 <Setter Property="FontFamily" Value="{ThemeResource PhoneFontFamilyNormal}"/> 1405 <Setter Property="FontSize" Value="{ThemeResource ContentControlFontSize}"/> 1406 <Setter Property="TextWrapping" Value="NoWrap"/> 1407 <Setter Property="ScrollViewer.HorizontalScrollMode" Value="Auto"/> 1408 <Setter Property="ScrollViewer.VerticalScrollMode" Value="Auto"/> 1409 <Setter Property="ScrollViewer.HorizontalScrollBarVisibility" Value="Hidden"/> 1410 <Setter Property="ScrollViewer.VerticalScrollBarVisibility" Value="Hidden"/> 1411 <Setter Property="ScrollViewer.IsDeferredScrollingEnabled" Value="False"/> 1412 <Setter Property="Padding" Value="{ThemeResource TextControlThemePadding}"/> 1413 <Setter Property="Margin" Value="{ThemeResource TextControlMarginThemeThickness}"/> 1414 <Setter Property="VerticalAlignment" Value="Top"/> 1415 <Setter Property="Template"> 1416 <Setter.Value> 1417 <ControlTemplate TargetType="TextBox"> 1418 <Grid Background="Transparent"> 1419 <Grid.RowDefinitions> 1420 <RowDefinition Height="Auto"/> 1421 <RowDefinition Height="*"/> 1422 </Grid.RowDefinitions> 1423 <VisualStateManager.VisualStateGroups> 1424 <VisualStateGroup x:Name="CommonStates"> 1425 <VisualState x:Name="Disabled"> 1426 <Storyboard> 1427 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="ContentElement"> 1428 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}"/> 1429 </ObjectAnimationUsingKeyFrames> 1430 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="PlaceholderTextContentPresenter"> 1431 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledForegroundThemeBrush}"/> 1432 </ObjectAnimationUsingKeyFrames> 1433 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="Foreground" Storyboard.TargetName="HeaderContentPresenter"> 1434 <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource TextBoxDisabledHeaderForegroundThemeBrush}"/> 1435 </ObjectAnimationUsingKeyFrames> 1436 </Storyboard> 1437 </VisualState> 1438 <VisualState x:Name="Normal"> 1439 <Storyboard> 1440 <DoubleAnimation Duration="0" To="{ThemeResource TextControlBorderThemeOpacity}" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="BorderElement"/> 1441 </Storyboard> 1442 </VisualState> 1443 <VisualState x:Name="Focused"> 1444 <Storyboard> 1445 <DoubleAnimation Duration="0" To="0" Storyboard.TargetProperty="Opacity" Storyboard.TargetName="PlaceholderTextContentPresenter"/> 1446 <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="(Control.Foreground)" Storyboard.TargetName="ContentElement"> 1447 <DiscreteObjectKeyFrame KeyTime="0"> 1448 <DiscreteObjectKeyFrame.Value> 1449 <SolidColorBrush Color="Black"/> 1450 </DiscreteObjectKeyFrame.Value> 1451 </DiscreteObjectKeyFrame> 1452 </ObjectAnimationUsingKeyFrames> 1453 <ColorAnimation Duration="0:0:0.2" To="White" Storyboard.TargetProperty="(Border.Background).(SolidColorBrush.Color)" Storyboard.TargetName="BorderElement" d:IsOptimized="True"/> 1454 <ColorAnimation Duration="0:0:0.2" To="White" Storyboard.TargetProperty="(Border.BorderBrush).(SolidColorBrush.Color)" Storyboard.TargetName="BorderElement" d:IsOptimized="True"/> 1455 </Storyboard> 1456 </VisualState> 1457 </VisualStateGroup> 1458 </VisualStateManager.VisualStateGroups> 1459 <Border x:Name="BorderElement" BorderThickness="{TemplateBinding BorderThickness}" Grid.Row="1"> 1460 <Border.BorderBrush> 1461 <SolidColorBrush Color="{ThemeResource PhoneChromeColor}"/> 1462 </Border.BorderBrush> 1463 <Border.Background> 1464 <SolidColorBrush Color="{ThemeResource PhoneChromeColor}"/> 1465 </Border.Background> 1466 </Border> 1467 <ContentPresenter x:Name="HeaderContentPresenter" ContentTemplate="{TemplateBinding HeaderTemplate}" Content="{TemplateBinding Header}" Margin="{ThemeResource TextControlHeaderMarginThemeThickness}" Grid.Row="0" Style="{StaticResource HeaderContentPresenterStyle}"/> 1468 <ScrollViewer x:Name="ContentElement" AutomationProperties.AccessibilityView="Raw" HorizontalScrollMode="{TemplateBinding ScrollViewer.HorizontalScrollMode}" HorizontalScrollBarVisibility="{TemplateBinding ScrollViewer.HorizontalScrollBarVisibility}" IsTabStop="False" IsHorizontalRailEnabled="{TemplateBinding ScrollViewer.IsHorizontalRailEnabled}" IsVerticalRailEnabled="{TemplateBinding ScrollViewer.IsVerticalRailEnabled}" IsDeferredScrollingEnabled="{TemplateBinding ScrollViewer.IsDeferredScrollingEnabled}" Margin="{TemplateBinding BorderThickness}" MinHeight="{ThemeResource TextControlThemeMinHeight}" Padding="{TemplateBinding Padding}" Grid.Row="1" VerticalScrollBarVisibility="{TemplateBinding ScrollViewer.VerticalScrollBarVisibility}" VerticalScrollMode="{TemplateBinding ScrollViewer.VerticalScrollMode}" ZoomMode="Disabled" HorizontalContentAlignment="Center" VerticalContentAlignment="Center"/> 1469 <ContentControl x:Name="PlaceholderTextContentPresenter" Content="{TemplateBinding PlaceholderText}" Foreground="{ThemeResource TextBoxPlaceholderTextThemeBrush}" FontSize="{ThemeResource ContentControlFontSize}" IsTabStop="False" Margin="{TemplateBinding BorderThickness}" Padding="{TemplateBinding Padding}" Grid.Row="1" HorizontalAlignment="Center" VerticalAlignment="Center"/> 1470 </Grid> 1471 </ControlTemplate> 1472 </Setter.Value> 1473 </Setter> 1474 </Style> 1475 1476 </Application.Resources> 1477 1478 </Application>