-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathConnectionWindow.xaml
45 lines (45 loc) · 2.75 KB
/
ConnectionWindow.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
<Window x:Class="ZChat.ConnectionWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Connection" Height="Auto" Width="Auto" SizeToContent="WidthAndHeight"
Loaded="Window_Loaded" ResizeMode="NoResize"
KeyDown="Window_KeyDown">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="78"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Row="0" Grid.Column="0" Margin="2" HorizontalAlignment="Right">Channel</Label>
<TextBox Grid.Row="0" Grid.Column="1" Width="150" Name="channelBox" Height="20" Margin="2">test</TextBox>
<Label Grid.Row="1" Grid.Column="1" Foreground="Gray" >Channel names start with # or &</Label>
<Label Grid.Row="2" Grid.Column="0" Margin="2" HorizontalAlignment="Right" >Nickname</Label>
<TextBox Grid.Row="2" Grid.Column="1" Width="150" Name="nickNameBox" Height="20" Margin="2"></TextBox>
<Expander Grid.Row="3" Grid.Column="0" Grid.ColumnSpan="2" Margin="0" Padding="0" Header="Advanced">
<Grid Margin="0">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
<RowDefinition Height="Auto"/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="76"/>
<ColumnDefinition Width="Auto"/>
</Grid.ColumnDefinitions>
<Label Grid.Column="0" Margin="2" HorizontalAlignment="Right">Server</Label>
<TextBox Grid.Column="1" Width="150" Name="serverBox" Height="20" Margin="2">irc.mibbit.com</TextBox>
<Label Grid.Column="0" Grid.Row="1" Margin="2" HorizontalAlignment="Right">Server Port</Label>
<TextBox Grid.Column="1" Grid.Row="1" Width="150" Name="serverPortBox" Height="20" Margin="2">6667</TextBox>
<Label Grid.Column="0" Grid.Row="2" Margin="2" HorizontalAlignment="Right">Channel Key</Label>
<TextBox Grid.Column="1" Grid.Row="2" Width="150" Name="channelKeyBox" Height="20" Margin="2"></TextBox>
</Grid>
</Expander>
<Button Grid.Row="4" Grid.Column="0" Grid.ColumnSpan="2" HorizontalAlignment="Center" Padding="3" Margin="4" MinWidth="70" Click="Connect_Click">Connect</Button>
</Grid>
</Window>