54 lines
2.0 KiB
Plaintext
54 lines
2.0 KiB
Plaintext
|
<Window xmlns="https://github.com/avaloniaui"
|
||
|
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"
|
||
|
mc:Ignorable="d" d:DesignWidth="800" d:DesignHeight="450"
|
||
|
x:Class="Chapplication.MainWindow"
|
||
|
Title="Chapplication">
|
||
|
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="*" />
|
||
|
<RowDefinition Height="Auto" />
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="*" />
|
||
|
<ColumnDefinition Width="Auto" />
|
||
|
</Grid.ColumnDefinitions>
|
||
|
|
||
|
<ListBox
|
||
|
x:Name="ChatBox"
|
||
|
Grid.Row="0"
|
||
|
Grid.ColumnSpan="2"
|
||
|
HorizontalAlignment="Stretch"
|
||
|
VerticalAlignment="Stretch"
|
||
|
Margin="10" />
|
||
|
|
||
|
<TextBox
|
||
|
x:Name="ChatInputBox"
|
||
|
Grid.Row="1"
|
||
|
Grid.Column="0"
|
||
|
Height="30"
|
||
|
HorizontalAlignment="Stretch"
|
||
|
VerticalAlignment="Top"
|
||
|
Margin="10,0,5,10"
|
||
|
TextWrapping="Wrap"
|
||
|
KeyDown="ChatInputBox_OnKeyDown"/>
|
||
|
|
||
|
<Button
|
||
|
x:Name="SendButton"
|
||
|
Grid.Row="1"
|
||
|
Grid.Column="1"
|
||
|
Content="Send"
|
||
|
Width="80"
|
||
|
Height="30"
|
||
|
HorizontalAlignment="Right"
|
||
|
VerticalAlignment="Top"
|
||
|
Margin="5,0,10,10"
|
||
|
Click="SubmitButton_OnClick"/>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
|
||
|
</Window>
|