mirror of
https://github.com/ryzij/AMessanger-Avalonia-Client.git
synced 2026-09-18 11:43:21 +00:00
Исправил перенос текста
This commit is contained in:
@@ -24,10 +24,20 @@
|
|||||||
<ListBox Grid.Row="0" ItemsSource="{Binding Messages}">
|
<ListBox Grid.Row="0" ItemsSource="{Binding Messages}">
|
||||||
<ListBox.ItemTemplate>
|
<ListBox.ItemTemplate>
|
||||||
<DataTemplate>
|
<DataTemplate>
|
||||||
<StackPanel Orientation="Horizontal">
|
<Grid>
|
||||||
<TextBlock Text="{Binding UserName}" Margin="5" />
|
<Grid.ColumnDefinitions>
|
||||||
<TextBlock Text="{Binding Content}" Margin="5" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</StackPanel>
|
<ColumnDefinition Width="*" />
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
|
<TextBlock Grid.Column="0"
|
||||||
|
Text="{Binding UserName}"
|
||||||
|
Margin="5" />
|
||||||
|
<TextBlock Grid.Column="1"
|
||||||
|
Text="{Binding Content}"
|
||||||
|
TextWrapping="WrapWithOverflow"
|
||||||
|
Margin="5" />
|
||||||
|
</Grid>
|
||||||
</DataTemplate>
|
</DataTemplate>
|
||||||
</ListBox.ItemTemplate>
|
</ListBox.ItemTemplate>
|
||||||
</ListBox>
|
</ListBox>
|
||||||
@@ -39,8 +49,8 @@
|
|||||||
<ColumnDefinition Width="Auto" />
|
<ColumnDefinition Width="Auto" />
|
||||||
</Grid.ColumnDefinitions>
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<TextBox Text="{Binding UserName}" />
|
<TextBox Text="{Binding UserName}" VerticalContentAlignment="Center" />
|
||||||
<TextBox Grid.Column="1" Text="{Binding Message}" />
|
<TextBox Grid.Column="1" Text="{Binding Message}" TextWrapping="WrapWithOverflow" />
|
||||||
<Button Grid.Column="2" Command="{Binding SendButtonCommand}">Send</Button>
|
<Button Grid.Column="2" Command="{Binding SendButtonCommand}">Send</Button>
|
||||||
</Grid>
|
</Grid>
|
||||||
</Grid>
|
</Grid>
|
||||||
|
|||||||
Reference in New Issue
Block a user