17
17
<ColumnDefinition Width =" *" />
18
18
</Grid .ColumnDefinitions>
19
19
<Grid .RowDefinitions>
20
+ <RowDefinition Height =" Auto" />
20
21
<RowDefinition Height =" Auto" />
21
22
<RowDefinition Height =" *" />
22
23
</Grid .RowDefinitions>
23
- <StackPanel Orientation =" Horizontal" >
24
- <TextBlock VerticalAlignment =" Center" Margin =" 0 0 5 0" >Add Chat:</TextBlock >
25
- <TextBox Text =" {Binding TwitchChatName}" Width =" 100" />
26
- <Button IsDefault =" True" Command =" {Binding OnAddChat}" Content =" +" />
27
- </StackPanel >
24
+ <Grid Grid.Row=" 0" Grid.Column=" 0" Grid.ColumnSpan=" 2" Margin =" 0 0 0 10" >
25
+ <Grid .ColumnDefinitions>
26
+ <ColumnDefinition Width =" Auto" />
27
+ <ColumnDefinition Width =" *" />
28
+ <ColumnDefinition Width =" Auto" />
29
+ </Grid .ColumnDefinitions>
30
+ <TextBlock Grid.Column=" 0" VerticalAlignment =" Center" Margin =" 0 0 5 0" >Add Channel:</TextBlock >
31
+ <TextBox Grid.Column=" 1" Text =" {Binding TwitchChatName}" Margin =" 0 0 5 0" />
32
+ <Button Grid.Column=" 2" IsDefault =" True" Command =" {Binding OnAddChat}" Content =" +" />
33
+ </Grid >
28
34
29
- <ListBox Grid.Row=" 1" Grid.Column=" 0" ItemsSource =" {Binding ChatItems}" >
35
+ <Label Grid.Row=" 1" Grid.Column=" 0" HorizontalAlignment =" Center" >Twitch Channels</Label >
36
+ <Label Grid.Row=" 1" Grid.Column=" 1" HorizontalAlignment =" Center" >Chat Log</Label >
37
+ <ListBox Grid.Row=" 2" Grid.Column=" 0" ItemsSource =" {Binding ChatItems}" Margin =" 0 0 10 0" >
30
38
<ListBox .ItemTemplate>
31
39
<DataTemplate DataType =" {x:Type system:String}" >
32
40
<Grid Margin =" 0" >
44
52
</DataTemplate >
45
53
</ListBox .ItemTemplate>
46
54
</ListBox >
47
- <TextBox Grid.Row=" 1 " Grid.Column=" 1" Text =" {Binding TwitchChat}"
55
+ <TextBox Grid.Row=" 2 " Grid.Column=" 1" Text =" {Binding TwitchChat}"
48
56
CaretIndex =" {Binding TextBoxCursorPosition, Mode=TwoWay}" IsReadOnly =" True" />
49
57
</Grid >
50
58
</UserControl >
0 commit comments