You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

76 lines
3.3 KiB
XML

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="CommanderApp.MainPage"
Title="MAUI Commander">
<Grid RowDefinitions="Auto, Auto, *, Auto" ColumnDefinitions="*, *">
<!-- Пути -->
<Label Text="{Binding LeftPath}"
Grid.Row="1" Grid.Column="0"
Padding="12,6"
FontSize="14"
FontAttributes="Bold"
BackgroundColor="#f0f0f0"
TextColor="Black"
VerticalTextAlignment="Center"
LineBreakMode="MiddleTruncation" />
<Label Text="{Binding RightPath}"
Grid.Row="1" Grid.Column="1"
Padding="12,6"
FontSize="14"
FontAttributes="Bold"
BackgroundColor="#f0f0f0"
TextColor="Black"
VerticalTextAlignment="Center"
LineBreakMode="MiddleTruncation" />
<!-- Левая панель -->
<ScrollView x:Name="LeftScrollView"
Grid.Row="2" Grid.Column="0"
BackgroundColor="White">
<VerticalStackLayout x:Name="LeftPanel" Spacing="0"/>
</ScrollView>
<!-- Правая панель -->
<ScrollView x:Name="RightScrollView"
Grid.Row="2" Grid.Column="1"
BackgroundColor="White">
<VerticalStackLayout x:Name="RightPanel" Spacing="0"/>
</ScrollView>
<!-- Визуальные индикаторы активной панели -->
<BoxView x:Name="LeftPanelIndicator"
Grid.Row="2" Grid.Column="0"
BackgroundColor="Transparent"
HeightRequest="3"
VerticalOptions="Start"/>
<BoxView x:Name="RightPanelIndicator"
Grid.Row="2" Grid.Column="1"
BackgroundColor="Transparent"
HeightRequest="3"
VerticalOptions="Start"/>
<!-- Toolbar -->
<FlexLayout x:Name="ToolbarLayout"
Grid.Row="3"
Grid.ColumnSpan="2"
Padding="10"
BackgroundColor="Transparent"
Direction="Row"
Wrap="Wrap"
JustifyContent="Center"
AlignItems="Center">
<Button x:Name="CopyButton" Text="F5 Copy" Clicked="OnCopyClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="MoveButton" Text="F6 Move" Clicked="OnMoveClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="MkdirButton" Text="F7 Mkdir" Clicked="OnMkdirClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="DeleteButton" Text="F8 Delete" Clicked="OnDeleteClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="HomeButton" Text="Home" Clicked="OnHomeClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button x:Name="ExitButton" Text="F10 Exit" Clicked="OnExitClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,0,8" />
</FlexLayout>
</Grid>
</ContentPage>