Advertisement
FrayxRulez

Untitled

Jan 12th, 2015
381
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. <Style TargetType="controls:ListPickerFlyoutPresenter">
  2. <Setter Property="Background" Value="{ThemeResource FlyoutBackgroundThemeBrush}" />
  3. <Setter Property="AutomationProperties.AutomationId" Value="ListPickerFlyoutPresenter" />
  4. <Setter Property="Template">
  5. <Setter.Value>
  6. <ControlTemplate TargetType="controls:ListPickerFlyoutPresenter">
  7. <Border x:Name="Background"
  8. Background="{TemplateBinding Background}"
  9. BorderBrush="{TemplateBinding BorderBrush}"
  10. BorderThickness="{TemplateBinding BorderThickness}"
  11. FlowDirection="LeftToRight">
  12. <VisualStateManager.VisualStateGroups>
  13. <VisualStateGroup x:Name="OrientationStates">
  14. <VisualState x:Name="Portrait"/>
  15. <VisualState x:Name="Landscape">
  16. <Storyboard>
  17. <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPanel" Storyboard.TargetProperty="Margin">
  18. <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PickerFlyoutContentPanelLandscapeThemeMargin}"/>
  19. </ObjectAnimationUsingKeyFrames>
  20. </Storyboard>
  21. </VisualState>
  22. </VisualStateGroup>
  23. </VisualStateManager.VisualStateGroups>
  24. <Grid x:Name="ContentPanel"
  25. Margin="{ThemeResource PickerFlyoutContentPanelPortraitThemeMargin}"
  26. FlowDirection="{TemplateBinding FlowDirection}">
  27. <Grid.RenderTransform>
  28. <TranslateTransform x:Name="ContentPanelTransform"/>
  29. </Grid.RenderTransform>
  30. <Grid.RowDefinitions>
  31. <RowDefinition Height="Auto" />
  32. <RowDefinition Height="*" />
  33. </Grid.RowDefinitions>
  34. <TextBlock x:Name="TitlePresenter"
  35. Grid.Row="0" Margin="{ThemeResource PickerFlyoutTitleThemeMargin}"
  36. Style="{StaticResource FlyoutPickerTitleTextBlockStyle}"
  37. AutomationProperties.AccessibilityView="Raw"/>
  38. <Grid x:Name="ItemsHostPanel"
  39. Grid.Row="1"
  40. Margin="{ThemeResource FlyoutContentThemeMargin}"
  41. HorizontalAlignment="Stretch"
  42. VerticalAlignment="Top">
  43. </Grid>
  44. </Grid>
  45. </Border>
  46. </ControlTemplate>
  47. </Setter.Value>
  48. </Setter>
  49. </Style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement