add ScrollViewer and Border

This commit is contained in:
Никита Онянов 2025-03-06 19:56:49 +03:00
parent d9ee95294b
commit 74d24f3946
2 changed files with 32 additions and 19 deletions

View File

@ -16,7 +16,13 @@
<TextBlock x:Name="MesDelError" Text="" Foreground="Red"/>
<TextBlock x:Name="MesDel" Text="" Foreground="Green"/>
</StackPanel>
<Border Background="Red"
CornerRadius="10"
Padding="20"
Margin="20"
Width="400"
Height="500">
<ScrollViewer>
<ListBox Name="Items" SelectionChanged="ListBox_SelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
@ -24,7 +30,7 @@
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</ScrollViewer>
</Border>
</StackPanel>
</Window>

View File

@ -17,7 +17,13 @@
<TextBlock x:Name="MesDel" Text="" Foreground="Green"/>
</StackPanel>
<Border Background="Red"
CornerRadius="10"
Padding="20"
Margin="20"
Width="400"
Height="500">
<ScrollViewer>
<ListBox Name="Items" SelectionChanged="ListBox_SelectionChanged">
<ListBox.ItemTemplate>
<DataTemplate>
@ -25,6 +31,7 @@
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
</ScrollViewer>
</Border>
</StackPanel>
</Window>