DisplayPreferencesMenu.xaml 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. <controls:BaseModalWindow x:Class="MediaBrowser.Plugins.DefaultTheme.DisplayPreferences.DisplayPreferencesMenu"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
  5. xmlns:controls="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI.Controls"
  6. Title="DisplayPreferencesMenu" Height="300" Width="300"
  7. AllowsTransparency="True"
  8. Background="Transparent"
  9. Style="{StaticResource ModalWindow}">
  10. <Grid>
  11. <Grid Style="{StaticResource ModalOverlayStyle}">
  12. </Grid>
  13. <Grid Style="{StaticResource ModalContentStyle}" HorizontalAlignment="Right" VerticalAlignment="Stretch">
  14. <Grid Margin="50 50 120 0">
  15. <Grid.RowDefinitions>
  16. <RowDefinition Height="auto"></RowDefinition>
  17. <RowDefinition Height="auto"></RowDefinition>
  18. </Grid.RowDefinitions>
  19. <controls:TransitionFrame x:Name="PageFrame" Grid.Row="0" MinWidth="400" MinHeight="550">
  20. <controls:TransitionFrame.TransitionAnimation>
  21. <DoubleAnimation Duration="0:0:0.35" >
  22. <DoubleAnimation.EasingFunction>
  23. <ExponentialEase EasingMode="EaseInOut"></ExponentialEase>
  24. </DoubleAnimation.EasingFunction>
  25. </DoubleAnimation>
  26. </controls:TransitionFrame.TransitionAnimation>
  27. <controls:TransitionFrame.TransitionType>
  28. <ee:WipeTransitionEffect WipeDirection="RightToLeft"></ee:WipeTransitionEffect>
  29. </controls:TransitionFrame.TransitionType>
  30. </controls:TransitionFrame>
  31. <controls:ExtendedButton x:Name="btnClose" Style="{StaticResource ViewMenuButton}" HorizontalAlignment="Left" Margin="0 50 0 0" Grid.Row="1">
  32. <StackPanel Orientation="Horizontal">
  33. <Image Source="..\Resources\Images\ViewMenu\Close.png" Stretch="None" />
  34. <TextBlock Style="{StaticResource TextBlockStyle}" VerticalAlignment="Center" Margin="10 0 0 0">Close</TextBlock>
  35. </StackPanel>
  36. </controls:ExtendedButton>
  37. </Grid>
  38. </Grid>
  39. <Grid.LayoutTransform>
  40. <ScaleTransform ScaleX="{Binding Path=ContentScale}" ScaleY="{Binding Path=ContentScale}" CenterX="0" CenterY="0" />
  41. </Grid.LayoutTransform>
  42. </Grid>
  43. </controls:BaseModalWindow>