-
Notifications
You must be signed in to change notification settings - Fork 0
/
MainWindow.xaml
145 lines (139 loc) · 7.57 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<Window x:Class="AuctionerMTG.MainWindow"
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:AuctionerMTG"
mc:Ignorable="d"
Title="MainWindow" Height="600" Width="800" WindowStyle="None" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
<Window.Background>
<LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
<GradientStop Color="#FFAAA9AC" Offset="0"/>
<GradientStop Color="#FFAAA9AC" Offset="1"/>
<GradientStop Color="#FFC2B3E8" Offset="0.477"/>
</LinearGradientBrush>
</Window.Background>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="75"/>
<RowDefinition Height="480"/>
<RowDefinition Height="35"/>
</Grid.RowDefinitions>
<Grid Name="Logo" Grid.Row="0" Background="Transparent" >
<Grid.ColumnDefinitions>
<ColumnDefinition/>
<ColumnDefinition Width="3*"/>
<ColumnDefinition/>
</Grid.ColumnDefinitions>
<Image Name="Logotip" Margin="5" Source="Source/LOgo.png" MouseDown="Logo_MouseDown">
</Image>
<ComboBox SelectedIndex="0" Name="AuctionList" Height="25" Width="200" Grid.Column="1" HorizontalAlignment="Left" Margin="10" SelectionChanged="AuctionList_SelectionChanged">
<TextBlock>TopDeck</TextBlock>
<TextBlock>MTGHunt</TextBlock>
<TextBlock>Mtg_auction</TextBlock>
<TextBlock>Black_Lotus</TextBlock>
<TextBlock>Hobbycards</TextBlock>
<TextBlock>MTG_KKU</TextBlock>
</ComboBox>
<Button x:Name="Start" Grid.Column="1" Height="50" Width="116"
HorizontalAlignment="Right" Margin="10" Click="Start_Click"
>
<Image>
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="Source/GetO.jpg"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=Start}" Value="True">
<Setter Property="Source" Value="Source/Get.jpg"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Button>
<Button x:Name="Clear" Grid.Column="1" Height="50" Width="116"
HorizontalAlignment="Right" Margin="10,10,136,10" Click="Clear_Click">
<Image Name="Clear_Bt">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="Source/ClearO.jpg"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=Clear}" Value="True">
<Setter Property="Source" Value="Source/Clear.jpg"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</Button>
<StackPanel Orientation="Horizontal" Grid.Column="2" HorizontalAlignment="Center">
<Image Name="About" Height="40" Width="40" Margin="5" MouseDown="AboutBtn_Msg">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="Source\About.jpg"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=About}" Value="True">
<Setter Property="Source" Value="Source\AboutC.jpg"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<Image Name="MinButton" Height="40" Width="40" Margin="5" MouseDown="MinButton_MouseUp">
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="Source\Min.jpg"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=MinButton}" Value="True">
<Setter Property="Source" Value="Source\MinC.jpg"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
<Image Name="CloseButton" Height="40" Width="40" Margin="5" MouseDown="CloseButton_MouseUp" >
<Image.Style>
<Style TargetType="{x:Type Image}">
<Setter Property="Source" Value="Source\Close.jpg"/>
<Style.Triggers>
<DataTrigger Binding="{Binding IsMouseOver, ElementName=CloseButton}" Value="True">
<Setter Property="Source" Value="Source\CloseC.jpg"/>
</DataTrigger>
</Style.Triggers>
</Style>
</Image.Style>
</Image>
</StackPanel>
</Grid>
<Grid Name="Auction" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition Height="4*"/>
<RowDefinition Height="33*"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions/>
<ListBox x:Name="AuctionView" Grid.Row="1" Margin="10">
<ListBox.ItemTemplate>
<DataTemplate>
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width ="550" />
<ColumnDefinition Width="100" />
<ColumnDefinition Width="100"/>
</Grid.ColumnDefinitions>
<TextBlock>
<Hyperlink RequestNavigate="UrlLink" NavigateUri="{Binding Path=url}">
<TextBlock Text="{Binding Name}" Grid.Column="0"/>
</Hyperlink>
</TextBlock>
<TextBlock Text="{Binding Time}" Grid.Column="1"/>
<TextBlock Text="{Binding Price}" Grid.Column="2"/>
</Grid>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Label Content="Название лота" HorizontalAlignment="Left" Margin="10,26,0,0" VerticalAlignment="Top" Height="26" Width="156"/>
<Label Content="Дата окончания аукциона" HorizontalAlignment="Left" Margin="488,26,0,0" VerticalAlignment="Top" Height="26" Width="156"/>
<Label Content="Стартовая/Текущая цена" HorizontalAlignment="Left" Margin="644,26,0,0" VerticalAlignment="Top" Height="26" Width="146"/>
</Grid>
</Grid>
</Window>