12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 |
- <Window x:Class="Met_Fam.WindowVideo"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:local="clr-namespace:Met_Fam"
- mc:Ignorable="d"
- Title="Metal Family" WindowState="Maximized">
- <Window.Resources>
- <Style TargetType="TextBlock" x:Key="zagolovok">
- <Setter Property="FontSize" Value="80"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- <Setter Property="VerticalAlignment" Value="Center"/>
- <Setter Property="FontFamily" Value="Rockwell Extra Bold"/>
- </Style>
- <Style TargetType="TextBlock" x:Key="reklama">
- <Setter Property="FontSize" Value="30" />
- <Setter Property="FontFamily" Value="Rockwell Extra Bold"/>
- <Setter Property="HorizontalAlignment" Value="Center"/>
- </Style>
- <DataTemplate x:Key="AllGoods">
- <StackPanel Orientation="Vertical" Margin="400,10,0,10">
- <StackPanel Orientation="Horizontal" Uid="{Binding ID_Video}">
- <Border BorderBrush="#FF6C73E6" BorderThickness="1" Width="400" Height="300" Margin="350, 0, 20,0" >
- <MediaElement x:Name="video" Source="{Binding Video}" LoadedBehavior="Play" Stretch="Fill"></MediaElement>
- </Border>
- <!--<Border Grid.Row="1" BorderBrush="DarkGray" BorderThickness="1" CornerRadius="2">
- <Rectangle VerticalAlignment="Stretch" Stretch="Uniform">
- <Rectangle.Fill>
- <VisualBrush Visual="{Binding ElementName=video}">
- <VisualBrush.RelativeTransform>
- <ScaleTransform ScaleY="-1" CenterY="0.5"></ScaleTransform>
- </VisualBrush.RelativeTransform>
- </VisualBrush>
- </Rectangle.Fill>
- <Rectangle.OpacityMask>
- <LinearGradientBrush StartPoint="0,0" EndPoint="0,1">
- <GradientStop Color="Black" Offset="0"></GradientStop>
- <GradientStop Color="Transparent" Offset="0.6"></GradientStop>
- </LinearGradientBrush>
- </Rectangle.OpacityMask>
- </Rectangle>
- </Rectangle>
- </Border>-->
- </StackPanel>
- <StackPanel Height="3" Background="#FFA0A5F3" Margin="330,10,0,10"></StackPanel>
- </StackPanel>
- </DataTemplate>
- </Window.Resources>
- <Grid>
- <Grid.RowDefinitions>
- <RowDefinition Height="100"/>
- <RowDefinition Height="100"/>
- <RowDefinition/>
- </Grid.RowDefinitions>
- <Grid.ColumnDefinitions>
- <ColumnDefinition/>
- </Grid.ColumnDefinitions>
- <DockPanel LastChildFill="True">
- <TextBlock Text="Metal Family" Style="{StaticResource zagolovok}" />
- </DockPanel>
- <DockPanel Grid.Row="1" Background="#FFA0A5F3">
- <DockPanel HorizontalAlignment="Center">
- <Button Content="Профиль" Click="Button_Click_1" Margin="0,0,10,0" Height="50" Width="170" FontFamily="Rockwell Extra Bold" FontSize="25"></Button>
- <Button Click="Button_Click" Content="Магазин" Margin="0,0,10,0" Height="50" Width="170" FontFamily="Rockwell Extra Bold" FontSize="25"></Button>
- </DockPanel>
- </DockPanel>
- <ListView x:Name="LBAllGoods" Grid.Row="2" ItemTemplate="{StaticResource AllGoods}" ></ListView>
- </Grid>
- </Window>
|