MainWindow.xaml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <controls2:BaseWindow x:Class="MediaBrowser.UI.MainWindow"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:controls="clr-namespace:MediaBrowser.UI.Controls"
  5. xmlns:ee="http://schemas.microsoft.com/expression/2010/effects"
  6. xmlns:controls2="clr-namespace:MediaBrowser.UI.Controls;assembly=MediaBrowser.UI.Controls"
  7. Title="Media Browser Theater"
  8. Style="{StaticResource MainWindow}"
  9. WindowStartupLocation="CenterScreen"
  10. AllowsTransparency="True"
  11. WindowStyle="None"
  12. ResizeMode="CanResizeWithGrip"
  13. KeyboardNavigation.DirectionalNavigation="Contained"
  14. MinWidth="720"
  15. MinHeight="480"
  16. Background="Transparent"
  17. ShowInTaskbar="False">
  18. <!--The window itself is a tabstop, and it can't be disabled. So this is a workaround.-->
  19. <Grid x:Name="mainGrid">
  20. <Grid x:Name="InternalPlayerContainer"></Grid>
  21. <!--This allows the user to drag the window.-->
  22. <Grid x:Name="DragBar" Style="{StaticResource DragBar}"></Grid>
  23. <!--This allows the user to drag the window.-->
  24. <controls:WindowCommands x:Name="WindowCommands" Style="{StaticResource WindowCommands}"></controls:WindowCommands>
  25. <Grid x:Name="WindowBackgroundContent" Style="{StaticResource WindowBackgroundContent}">
  26. </Grid>
  27. <controls2:TransitionControl x:Name="BackdropContainer">
  28. <controls2:TransitionControl.TransitionAnimation>
  29. <DoubleAnimation Duration="0:0:1" >
  30. <DoubleAnimation.EasingFunction>
  31. <ExponentialEase EasingMode="EaseInOut"></ExponentialEase>
  32. </DoubleAnimation.EasingFunction>
  33. </DoubleAnimation>
  34. </controls2:TransitionControl.TransitionAnimation>
  35. <controls2:TransitionControl.TransitionType>
  36. <ee:FadeTransitionEffect></ee:FadeTransitionEffect>
  37. </controls2:TransitionControl.TransitionType>
  38. </controls2:TransitionControl>
  39. <!--Themes will supply this template to outline the window structure.-->
  40. <ContentControl x:Name="PageContent" Template="{StaticResource PageContentTemplate}"></ContentControl>
  41. <controls:NavigationBar></controls:NavigationBar>
  42. <Grid.LayoutTransform>
  43. <ScaleTransform ScaleX="{Binding Path=ApplicationWindow.ContentScale}" ScaleY="{Binding Path=ApplicationWindow.ContentScale}" CenterX="0" CenterY="0" />
  44. </Grid.LayoutTransform>
  45. </Grid>
  46. </controls2:BaseWindow>