2024-12-21 13:11:30 +03:00
|
|
|
<UserControl
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d"
|
2024-12-22 16:38:47 +03:00
|
|
|
x:Class="Nebula.Launcher.Views.Pages.ServerListView"
|
2025-01-14 22:10:16 +03:00
|
|
|
x:DataType="pages:ServerListViewModel"
|
2024-12-21 13:11:30 +03:00
|
|
|
xmlns="https://github.com/avaloniaui"
|
|
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
2025-01-14 22:10:16 +03:00
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
|
|
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages">
|
2024-12-22 16:38:47 +03:00
|
|
|
|
|
|
|
|
<Design.DataContext>
|
2025-01-14 22:10:16 +03:00
|
|
|
<pages:ServerListViewModel />
|
2024-12-22 16:38:47 +03:00
|
|
|
</Design.DataContext>
|
|
|
|
|
|
2025-01-11 20:39:58 +03:00
|
|
|
<Grid
|
|
|
|
|
ColumnDefinitions="*"
|
2025-01-18 18:20:11 +03:00
|
|
|
Margin="8,0,8,5"
|
2025-01-11 20:39:58 +03:00
|
|
|
RowDefinitions="*,40">
|
2025-01-15 19:47:27 +03:00
|
|
|
<ScrollViewer Margin="0,0,0,10" Padding="0,0,10,0" Grid.RowSpan="2">
|
2025-01-07 19:14:42 +03:00
|
|
|
<ItemsControl
|
2024-12-22 16:38:47 +03:00
|
|
|
Background="#00000000"
|
|
|
|
|
ItemsSource="{Binding ServerInfos}"
|
|
|
|
|
Padding="0">
|
2025-01-07 19:14:42 +03:00
|
|
|
</ItemsControl>
|
2024-12-21 13:11:30 +03:00
|
|
|
</ScrollViewer>
|
2024-12-22 16:38:47 +03:00
|
|
|
|
2024-12-21 13:11:30 +03:00
|
|
|
<Border
|
2025-01-15 19:47:27 +03:00
|
|
|
BorderThickness="2,2,2,0"
|
2024-12-21 13:11:30 +03:00
|
|
|
CornerRadius="10"
|
|
|
|
|
Grid.Row="1">
|
2025-01-15 19:47:27 +03:00
|
|
|
<Grid ColumnDefinitions="*,40,40" RowDefinitions="*" Margin="5,0,0,0">
|
2024-12-21 13:11:30 +03:00
|
|
|
<TextBox
|
|
|
|
|
Margin="0"
|
2024-12-27 19:15:33 +03:00
|
|
|
Text="{Binding SearchText}"
|
|
|
|
|
TextChanged="TextBox_OnTextChanged"
|
2024-12-21 13:11:30 +03:00
|
|
|
VerticalAlignment="Center"
|
2024-12-27 19:15:33 +03:00
|
|
|
Watermark="Server name..." />
|
|
|
|
|
<Button
|
|
|
|
|
Command="{Binding FilterRequired}"
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Padding="10">
|
2025-01-18 18:20:11 +03:00
|
|
|
<Svg Path="/Assets/svg/filter.svg"></Svg>
|
2024-12-21 13:11:30 +03:00
|
|
|
</Button>
|
2024-12-27 19:15:33 +03:00
|
|
|
<Button
|
|
|
|
|
Command="{Binding UpdateRequired}"
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Padding="10">
|
2025-01-18 18:20:11 +03:00
|
|
|
<Svg Path="/Assets/svg/refresh.svg"></Svg>
|
2024-12-27 19:15:33 +03:00
|
|
|
</Button>
|
2024-12-21 13:11:30 +03:00
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
</Grid>
|
2025-01-14 22:10:16 +03:00
|
|
|
</UserControl>
|