WindowVideo.xaml 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <Window x:Class="Met_Fam.WindowVideo"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  5. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  6. xmlns:local="clr-namespace:Met_Fam"
  7. mc:Ignorable="d"
  8. Title="Metal Family" WindowState="Maximized">
  9. <Window.Resources>
  10. <Style TargetType="TextBlock" x:Key="zagolovok">
  11. <Setter Property="FontSize" Value="80"/>
  12. <Setter Property="HorizontalAlignment" Value="Center"/>
  13. <Setter Property="VerticalAlignment" Value="Center"/>
  14. <Setter Property="FontFamily" Value="Rockwell Extra Bold"/>
  15. </Style>
  16. <Style TargetType="TextBlock" x:Key="reklama">
  17. <Setter Property="FontSize" Value="30" />
  18. <Setter Property="FontFamily" Value="Rockwell Extra Bold"/>
  19. <Setter Property="HorizontalAlignment" Value="Center"/>
  20. </Style>
  21. <DataTemplate x:Key="AllGoods">
  22. <StackPanel Orientation="Vertical" Margin="400,10,0,10">
  23. <StackPanel Orientation="Horizontal" Uid="{Binding ID_Video}">
  24. <Border BorderBrush="#FF6C73E6" BorderThickness="1" Width="400" Height="300" Margin="350, 0, 20,0" >
  25. <MediaElement x:Name="video" Source="{Binding Video}" LoadedBehavior="Play" Stretch="Fill"></MediaElement>
  26. </Border>
  27. <!--<Border Grid.Row="1" BorderBrush="DarkGray" BorderThickness="1" CornerRadius="2">
  28. <Rectangle VerticalAlignment="Stretch" Stretch="Uniform">
  29. <Rectangle.Fill>
  30. <VisualBrush Visual="{Binding ElementName=video}">
  31. <VisualBrush.RelativeTransform>
  32. <ScaleTransform ScaleY="-1" CenterY="0.5"></ScaleTransform>
  33. </VisualBrush.RelativeTransform>
  34. </VisualBrush>
  35. </Rectangle.Fill>
  36. <Rectangle.OpacityMask>
  37. <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
  38. <GradientStop Color="Black" Offset="0"></GradientStop>
  39. <GradientStop Color="Transparent" Offset="0.6"></GradientStop>
  40. </LinearGradientBrush>
  41. </Rectangle.OpacityMask>
  42. </Rectangle>
  43. </Rectangle>
  44. </Border>-->
  45. </StackPanel>
  46. <StackPanel Height="3" Background="#FFA0A5F3" Margin="330,10,0,10"></StackPanel>
  47. </StackPanel>
  48. </DataTemplate>
  49. </Window.Resources>
  50. <Grid>
  51. <Grid.RowDefinitions>
  52. <RowDefinition Height="100"/>
  53. <RowDefinition Height="100"/>
  54. <RowDefinition/>
  55. </Grid.RowDefinitions>
  56. <Grid.ColumnDefinitions>
  57. <ColumnDefinition/>
  58. </Grid.ColumnDefinitions>
  59. <DockPanel LastChildFill="True">
  60. <TextBlock Text="Metal Family" Style="{StaticResource zagolovok}" />
  61. </DockPanel>
  62. <DockPanel Grid.Row="1" Background="#FFA0A5F3">
  63. <DockPanel HorizontalAlignment="Center">
  64. <Button Content="Профиль" Click="Button_Click_1" Margin="0,0,10,0" Height="50" Width="170" FontFamily="Rockwell Extra Bold" FontSize="25"></Button>
  65. <Button Click="Button_Click" Content="Магазин" Margin="0,0,10,0" Height="50" Width="170" FontFamily="Rockwell Extra Bold" FontSize="25"></Button>
  66. </DockPanel>
  67. </DockPanel>
  68. <ListView x:Name="LBAllGoods" Grid.Row="2" ItemTemplate="{StaticResource AllGoods}" ></ListView>
  69. </Grid>
  70. </Window>