-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
57 lines (51 loc) · 2.58 KB
/
MainWindow.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
<Window x:Class="FIRST.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="MainWindow" Height="350" Width="525" Name="Main" Loaded="Main_Loaded" >
<Window.Resources>
<Storyboard x:Key="ItemAnimation" >
<DoubleAnimation From="1.0" To="0.0" Duration="0:0:0.5" Storyboard.TargetProperty="Scale" Storyboard.TargetName="Main" />
<DoubleAnimation From="0.0" To="1.0" Duration="0:0:0.5" BeginTime="0:0:0.5" Storyboard.TargetProperty="Scale" Storyboard.TargetName="Main"/>
<DoubleAnimation From="1.0" To="0.0" Duration="0:0:0.5" Storyboard.TargetProperty="Fade" Storyboard.TargetName="Main"/>
<DoubleAnimation From="0.0" To="1.0" Duration="0:0:0.5" BeginTime="0:0:0.5" Storyboard.TargetProperty="Fade" Storyboard.TargetName="Main"/>
</Storyboard>
</Window.Resources>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="363*"/>
<ColumnDefinition Width="146*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="20"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Menu Grid.ColumnSpan="2" Grid.Row="0">
<MenuItem Header="Events">
<MenuItem Header="Select Event" Click="MenuItem_Click"/>
<MenuItem Header="Test Results" Click="MenuItem_Click_1"/>
</MenuItem>
<MenuItem Header="Teams">
<MenuItem Header="Team Scraper"/>
</MenuItem>
</Menu>
<!-- <TextBox />-->
<DataGrid Name="Tester" IsReadOnly="True" Grid.ColumnSpan="2" Grid.Row="1">
<DataGrid.Columns>
<DataGridTextColumn Header="Name" Binding="{Binding Name}">
</DataGridTextColumn>
</DataGrid.Columns>
<DataGrid.ItemContainerStyle>
<Style TargetType="DataGridRow">
<Style.Setters>
<Setter Property="RenderTransform">
<Setter.Value>
<ScaleTransform ScaleY="{Binding ElementName=Main, Path=Scale}"></ScaleTransform>
</Setter.Value>
</Setter>
<Setter Property="Opacity" Value="{Binding ElementName=Main, Path=Fade}"/>
</Style.Setters>
</Style>
</DataGrid.ItemContainerStyle>
</DataGrid>
</Grid>
</Window>