Добавил класс для представления сообщения

This commit is contained in:
2026-08-29 00:27:48 +03:00
parent a40fcca7be
commit 4d36c5242f
5 changed files with 32 additions and 17 deletions
+10 -2
View File
@@ -21,8 +21,16 @@
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ListBox Grid.Row="0"
ItemsSource="{Binding Messages}" />
<ListBox Grid.Row="0" ItemsSource="{Binding Messages}">
<ListBox.ItemTemplate>
<DataTemplate>
<StackPanel Orientation="Horizontal">
<TextBlock Text="{Binding UserName}" Margin="5" />
<TextBlock Text="{Binding Content}" Margin="5" />
</StackPanel>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
<Grid Grid.Row="1" Margin="5">
<Grid.ColumnDefinitions>