2025-01-11 20:39:58 +03:00
|
|
|
<UserControl
|
|
|
|
|
d:DesignHeight="450"
|
|
|
|
|
d:DesignWidth="800"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
x:Class="Nebula.Launcher.Views.Pages.ContentBrowserView"
|
2025-01-14 22:10:16 +03:00
|
|
|
x:DataType="pages:ContentBrowserViewModel"
|
2025-01-11 20:39:58 +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-20 16:35:48 +03:00
|
|
|
xmlns:pages="clr-namespace:Nebula.Launcher.ViewModels.Pages"
|
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
|
2025-01-10 12:28:29 +03:00
|
|
|
<Design.DataContext>
|
2025-01-14 22:10:16 +03:00
|
|
|
<pages:ContentBrowserViewModel />
|
2025-01-10 12:28:29 +03:00
|
|
|
</Design.DataContext>
|
2025-01-11 20:39:58 +03:00
|
|
|
|
2025-01-13 19:24:12 +03:00
|
|
|
<Grid
|
|
|
|
|
ColumnDefinitions="*,2*,40,40"
|
2025-01-18 18:20:11 +03:00
|
|
|
Margin="8"
|
2025-01-13 19:24:12 +03:00
|
|
|
RowDefinitions="40,*">
|
2025-01-20 16:35:48 +03:00
|
|
|
<Border CornerRadius="10,10,0,0" Grid.ColumnSpan="4" />
|
2025-01-13 19:24:12 +03:00
|
|
|
<TextBox
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Margin="5"
|
|
|
|
|
Text="{Binding ServerText}"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Watermark="Server Url..." />
|
|
|
|
|
<TextBox
|
|
|
|
|
Grid.Column="1"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Margin="5"
|
|
|
|
|
Text="{Binding SearchText}"
|
|
|
|
|
VerticalAlignment="Center"
|
|
|
|
|
Watermark="Path..." />
|
|
|
|
|
<Button
|
|
|
|
|
Command="{Binding OnBackEnter}"
|
|
|
|
|
Grid.Column="2"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Padding="10">
|
2025-01-20 16:35:48 +03:00
|
|
|
<Svg Path="/Assets/svg/undo.svg" />
|
2025-01-13 19:24:12 +03:00
|
|
|
</Button>
|
|
|
|
|
<Button
|
|
|
|
|
Command="{Binding OnGoEnter}"
|
|
|
|
|
Grid.Column="3"
|
|
|
|
|
Grid.Row="0"
|
|
|
|
|
Padding="10">
|
2025-01-20 16:35:48 +03:00
|
|
|
<Svg Path="/Assets/svg/next.svg" />
|
2025-01-13 19:24:12 +03:00
|
|
|
</Button>
|
|
|
|
|
|
|
|
|
|
<ScrollViewer
|
|
|
|
|
Grid.Column="0"
|
|
|
|
|
Grid.ColumnSpan="4"
|
|
|
|
|
Grid.Row="1"
|
|
|
|
|
Margin="0,0,0,5">
|
2025-01-20 16:35:48 +03:00
|
|
|
<ItemsControl ItemsSource="{Binding Entries}" Padding="0,0,0,0">
|
2025-01-11 20:39:58 +03:00
|
|
|
<ItemsControl.ItemTemplate>
|
2025-01-14 22:10:16 +03:00
|
|
|
<DataTemplate DataType="{x:Type pages:ContentEntry}">
|
2025-01-11 20:39:58 +03:00
|
|
|
<Button
|
|
|
|
|
Command="{Binding OnPathGo}"
|
|
|
|
|
CornerRadius="0"
|
2025-01-13 19:24:12 +03:00
|
|
|
Height="30"
|
2025-01-11 20:39:58 +03:00
|
|
|
HorizontalAlignment="Stretch">
|
|
|
|
|
<StackPanel Orientation="Horizontal" Spacing="15">
|
|
|
|
|
<Border
|
|
|
|
|
Background="#00000000"
|
|
|
|
|
BorderThickness="0,0,2,0"
|
|
|
|
|
CornerRadius="0">
|
2025-01-18 18:20:11 +03:00
|
|
|
<Svg
|
2025-01-11 20:39:58 +03:00
|
|
|
Height="15"
|
|
|
|
|
Margin="10,0,10,0"
|
2025-01-18 18:20:11 +03:00
|
|
|
Path="{Binding IconPath}" />
|
2025-01-11 20:39:58 +03:00
|
|
|
</Border>
|
|
|
|
|
<Label>
|
2025-01-13 19:24:12 +03:00
|
|
|
<TextBlock Text="{Binding Name}" VerticalAlignment="Center" />
|
2025-01-11 20:39:58 +03:00
|
|
|
</Label>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Button>
|
|
|
|
|
</DataTemplate>
|
|
|
|
|
</ItemsControl.ItemTemplate>
|
|
|
|
|
</ItemsControl>
|
|
|
|
|
</ScrollViewer>
|
2025-01-13 19:24:12 +03:00
|
|
|
</Grid>
|
2025-01-14 22:10:16 +03:00
|
|
|
</UserControl>
|