Files
NebulaLauncher/Nebula.Launcher/Views/Pages/ContentBrowserView.axaml

76 lines
3.1 KiB
Plaintext
Raw Normal View History

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"
x:DataType="viewModels:ContentBrowserViewModel"
xmlns="https://github.com/avaloniaui"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:viewModels="clr-namespace:Nebula.Launcher.ViewModels"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml">
2025-01-10 12:28:29 +03:00
<Design.DataContext>
<viewModels:ContentBrowserViewModel />
</Design.DataContext>
2025-01-11 20:39:58 +03:00
<StackPanel Margin="5">
<Border BorderThickness="2,0,0,0" CornerRadius="10">
2025-01-12 22:49:32 +03:00
<Grid ColumnDefinitions="*,2*,40,40" RowDefinitions="*">
2025-01-10 12:28:29 +03:00
<TextBox
2025-01-12 22:49:32 +03:00
Margin="0"
Text="{Binding ServerText}"
VerticalAlignment="Center"
Watermark="Server Url..." />
<TextBox
Grid.Column="1"
2025-01-10 12:28:29 +03:00
Margin="0"
Text="{Binding SearchText}"
VerticalAlignment="Center"
2025-01-11 20:39:58 +03:00
Watermark="Path..." />
2025-01-10 12:28:29 +03:00
<Button
Command="{Binding OnBackEnter}"
2025-01-12 22:49:32 +03:00
Grid.Column="2"
2025-01-10 12:28:29 +03:00
Padding="10">
2025-01-11 20:39:58 +03:00
<Image Source="/Assets/back.png" />
2025-01-10 12:28:29 +03:00
</Button>
<Button
Command="{Binding OnGoEnter}"
2025-01-12 22:49:32 +03:00
Grid.Column="3"
2025-01-10 12:28:29 +03:00
Padding="10">
2025-01-11 20:39:58 +03:00
<Image Source="/Assets/go.png" />
2025-01-10 12:28:29 +03:00
</Button>
</Grid>
</Border>
2025-01-11 20:39:58 +03:00
<ScrollViewer Margin="0,5,10,5">
<ItemsControl
Background="#00000000"
ItemsSource="{Binding Entries}"
Padding="0">
<ItemsControl.ItemTemplate>
<DataTemplate DataType="{x:Type viewModels:ContentEntry}">
<Button
Command="{Binding OnPathGo}"
CornerRadius="0"
HorizontalAlignment="Stretch">
<StackPanel Orientation="Horizontal" Spacing="15">
<Border
Background="#00000000"
BorderThickness="0,0,2,0"
CornerRadius="0">
<Image
Height="15"
Margin="10,0,10,0"
Source="{Binding IconPath}" />
</Border>
<Label>
<TextBlock Text="{Binding Name}" />
</Label>
</StackPanel>
</Button>
</DataTemplate>
</ItemsControl.ItemTemplate>
</ItemsControl>
</ScrollViewer>
2025-01-10 12:28:29 +03:00
</StackPanel>
</UserControl>