54 lines
2.2 KiB
XML
54 lines
2.2 KiB
XML
<UserControl xmlns="https://github.com/avaloniaui"
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
xmlns:local="clr-namespace:Valheim_Dashboard"
|
|
xmlns:vm="clr-namespace:Valheim_Dashboard.ViewModels"
|
|
xmlns:views="clr-namespace:Valheim_Dashboard.Views"
|
|
mc:Ignorable="d"
|
|
x:Name="root"
|
|
x:Class="Valheim_Dashboard.Views.FtpView"
|
|
x:DataType="vm:FtpViewModel"
|
|
>
|
|
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition Height="*"/>
|
|
</Grid.RowDefinitions>
|
|
|
|
<!-- TextBox für den aktuellen FTP-Pfad -->
|
|
<TextBox x:Name="CurrentPathTextBox"
|
|
Grid.Row="0"
|
|
HorizontalAlignment="Stretch"
|
|
VerticalAlignment="Center"
|
|
HorizontalContentAlignment="Center"
|
|
VerticalContentAlignment="Center"
|
|
IsEnabled="False"
|
|
Height="100"
|
|
Margin="50,0,50,0"
|
|
Text="{Binding CurrentPath}"/>
|
|
|
|
<!-- ScrollViewer mit ListBox -->
|
|
<ScrollViewer x:Name="ftp_ScrollVie2"
|
|
Grid.Row="1"
|
|
Background="Brown"
|
|
Margin="50,0,50,50">
|
|
<ListBox x:Name="FtpFileList" ItemsSource="{Binding Files}">
|
|
<ListBox.ItemTemplate>
|
|
<DataTemplate>
|
|
<Button
|
|
|
|
CommandParameter="{Binding}"
|
|
Background="Transparent"
|
|
BorderBrush="Transparent"
|
|
HorizontalAlignment="Stretch">
|
|
<TextBlock Text="{Binding Name}" Foreground="Green" />
|
|
</Button>
|
|
</DataTemplate>
|
|
</ListBox.ItemTemplate>
|
|
</ListBox>
|
|
</ScrollViewer>
|
|
</Grid>
|
|
</UserControl>
|