Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <Style TargetType="controls:ListPickerFlyoutPresenter">
- <Setter Property="Background" Value="{ThemeResource FlyoutBackgroundThemeBrush}" />
- <Setter Property="AutomationProperties.AutomationId" Value="ListPickerFlyoutPresenter" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="controls:ListPickerFlyoutPresenter">
- <Border x:Name="Background"
- Background="{TemplateBinding Background}"
- BorderBrush="{TemplateBinding BorderBrush}"
- BorderThickness="{TemplateBinding BorderThickness}"
- FlowDirection="LeftToRight">
- <VisualStateManager.VisualStateGroups>
- <VisualStateGroup x:Name="OrientationStates">
- <VisualState x:Name="Portrait"/>
- <VisualState x:Name="Landscape">
- <Storyboard>
- <ObjectAnimationUsingKeyFrames Storyboard.TargetName="ContentPanel" Storyboard.TargetProperty="Margin">
- <DiscreteObjectKeyFrame KeyTime="0" Value="{ThemeResource PickerFlyoutContentPanelLandscapeThemeMargin}"/>
- </ObjectAnimationUsingKeyFrames>
- </Storyboard>
- </VisualState>
- </VisualStateGroup>
- </VisualStateManager.VisualStateGroups>
- <Grid x:Name="ContentPanel"
- Margin="{ThemeResource PickerFlyoutContentPanelPortraitThemeMargin}"
- FlowDirection="{TemplateBinding FlowDirection}">
- <Grid.RenderTransform>
- <TranslateTransform x:Name="ContentPanelTransform"/>
- </Grid.RenderTransform>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <TextBlock x:Name="TitlePresenter"
- Grid.Row="0" Margin="{ThemeResource PickerFlyoutTitleThemeMargin}"
- Style="{StaticResource FlyoutPickerTitleTextBlockStyle}"
- AutomationProperties.AccessibilityView="Raw"/>
- <Grid x:Name="ItemsHostPanel"
- Grid.Row="1"
- Margin="{ThemeResource FlyoutContentThemeMargin}"
- HorizontalAlignment="Stretch"
- VerticalAlignment="Top">
- </Grid>
- </Grid>
- </Border>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement