-
Notifications
You must be signed in to change notification settings - Fork 0
/
ModelS.xaml
79 lines (78 loc) · 5.78 KB
/
ModelS.xaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<UserControl x:Class="Teslatizator9000.ModelS"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:Teslatizator9000"
mc:Ignorable="d">
<Grid x:Name="Container" SizeChanged="Container_SizeChanged">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.Background>
<VisualBrush Stretch="UniformToFill">
<VisualBrush.Visual>
<MediaElement HorizontalAlignment="Center" VerticalAlignment="Center" Width="1920">
<MediaElement.Triggers>
<EventTrigger RoutedEvent="MediaElement.Loaded">
<EventTrigger.Actions>
<BeginStoryboard>
<Storyboard>
<MediaTimeline Source="images\Backgrounds\Info-ModelS.mp4" RepeatBehavior="Forever" />
</Storyboard>
</BeginStoryboard>
</EventTrigger.Actions>
</EventTrigger>
</MediaElement.Triggers>
</MediaElement>
</VisualBrush.Visual>
</VisualBrush>
</Grid.Background>
<UniformGrid Background="White" Rows="1">
<UniformGrid.Effect>
<DropShadowEffect ShadowDepth="15" Opacity="0.4" BlurRadius="10"/>
</UniformGrid.Effect>
<Button Click="Button_Click_Off" IsCancel="True" Background="#00000000" HorizontalContentAlignment="Center" FontFamily="Gill Sans MT" FontSize="60" VerticalContentAlignment="Center" HorizontalAlignment="Center" VerticalAlignment="Center" BorderBrush="#00707070">
<Image Source="images\icons\off.png" Width="70" Margin="0,10,0,10"/>
</Button>
<RadioButton x:Name="HomeButton" Style="{StaticResource NavButton}" Click="Button_Click_Home" Content="Home"/>
<RadioButton x:Name="MSButton" Style="{StaticResource NavButton}" Click="Button_Click_ModelS" Content="Model S"/>
<RadioButton x:Name="M3Button" Style="{StaticResource NavButton}" Click="Button_Click_Model3" Content="Model 3"/>
<RadioButton x:Name="MXButton" Style="{StaticResource NavButton}" Click="Button_Click_ModelX" Content="Model X"/>
<RadioButton x:Name="MYButton" Style="{StaticResource NavButton}" Click="Button_Click_ModelY" Content="Model Y"/>
<Button Click="Button_Click_Settings" Background="#00000000" HorizontalContentAlignment="Center" FontFamily="Gill Sans MT" FontSize="60" VerticalContentAlignment="Center" Padding="1" HorizontalAlignment="Center" VerticalAlignment="Center" BorderBrush="#00707070">
<Image Source="images\icons\rock-solid.png" Width="70" Height="70"/>
</Button>
</UniformGrid>
<Grid Grid.Row="1" Margin="0,0,0,0">
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Border x:Name="ModelSBorder1" MinWidth="340" MaxWidth="400" Padding="50" CornerRadius="30" Background="White" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="50,0,0,0">
<Border.Effect>
<DropShadowEffect ShadowDepth="15" Opacity="0.4" BlurRadius="10"/>
</Border.Effect>
<UniformGrid Columns="1" x:Name="ModelSPanel1">
<TextBlock x:Name="ModelSSub1" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="AccelerationLabel" FontWeight="Bold">Acceleration</Label><LineBreak /> <Label x:Name="AccelerationYes">3.7s 0-60 mph</Label></TextBlock>
<TextBlock x:Name="ModelSSub2" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="RangeLabel" FontWeight="Bold">Range</Label><LineBreak /><Label x:Name="Range">402 miles</Label></TextBlock>
<TextBlock x:Name="ModelSSub3" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="TrunkSpaceLabel" FontWeight="Bold">Trunk space</Label><LineBreak /><Label x:Name="TrunkSpace">793 liters</Label></TextBlock>
</UniformGrid>
</Border>
<Border Grid.Column="1" x:Name="ModelSBorder2" MaxWidth="400" Padding="50,30,50,50" CornerRadius="30" Background="White" HorizontalAlignment="Right" VerticalAlignment="Center" Margin="0,50,50,0">
<Border.Effect>
<DropShadowEffect ShadowDepth="15" Opacity="0.4" BlurRadius="10"/>
</Border.Effect>
<UniformGrid Columns="1" x:Name="ModelSPanel2">
<TextBlock x:Name="ModelSSub4" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="SeatingLabel" FontWeight="Bold">Seating</Label><LineBreak />5</TextBlock>
<TextBlock x:Name="ModelSSub5" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="WheelsLabel" FontWeight="Bold">Wheels</Label><LineBreak />19" or 21"</TextBlock>
<TextBlock x:Name="ModelSSub6" TextWrapping="Wrap" FontFamily="Gill Sans MT" FontSize="40"><Label x:Name="StartingLabel" FontWeight="Bold">Starting at</Label><LineBreak /><Label x:Name="Price">$ 69420 </Label></TextBlock>
</UniformGrid>
</Border>
</Grid>
</Grid>
</UserControl>