rename and fix buttons

main
Stepan Pilipenko 1 month ago
parent 2abff77640
commit 55dd1d0034

@ -1,8 +1,8 @@
<?xml version = "1.0" encoding = "UTF-8" ?> <?xml version = "1.0" encoding = "UTF-8" ?>
<Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <Application xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MauiApp1" xmlns:local="clr-namespace:CommanderApp"
x:Class="MauiApp1.App"> x:Class="CommanderApp.App">
<Application.Resources> <Application.Resources>
<ResourceDictionary> <ResourceDictionary>
<ResourceDictionary.MergedDictionaries> <ResourceDictionary.MergedDictionaries>

@ -1,4 +1,4 @@
namespace MauiApp1 namespace CommanderApp
{ {
public partial class App : Application public partial class App : Application
{ {

@ -1,10 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?> <?xml version="1.0" encoding="UTF-8" ?>
<Shell <Shell
x:Class="MauiApp1.AppShell" x:Class="CommanderApp.AppShell"
xmlns="http://schemas.microsoft.com/dotnet/2021/maui" xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:local="clr-namespace:MauiApp1" xmlns:local="clr-namespace:CommanderApp"
Title="MauiApp1"> Title="MAUI Comander">
<ShellContent <ShellContent
Title="Home" Title="Home"

@ -1,4 +1,4 @@
namespace MauiApp1 namespace CommanderApp
{ {
public partial class AppShell : Shell public partial class AppShell : Shell
{ {

@ -14,14 +14,14 @@
<!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> --> <!-- For example: <RuntimeIdentifiers>maccatalyst-x64;maccatalyst-arm64</RuntimeIdentifiers> -->
<OutputType>Exe</OutputType> <OutputType>Exe</OutputType>
<RootNamespace>MauiApp1</RootNamespace> <RootNamespace>CommanderApp</RootNamespace>
<UseMaui>true</UseMaui> <UseMaui>true</UseMaui>
<SingleProject>true</SingleProject> <SingleProject>true</SingleProject>
<ImplicitUsings>enable</ImplicitUsings> <ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable> <Nullable>enable</Nullable>
<!-- Display name --> <!-- Display name -->
<ApplicationTitle>MauiApp1</ApplicationTitle> <ApplicationTitle>CommanderApp</ApplicationTitle>
<!-- App Identifier --> <!-- App Identifier -->
<ApplicationId>com.companyname.mauiapp1</ApplicationId> <ApplicationId>com.companyname.mauiapp1</ApplicationId>

@ -1,4 +1,4 @@
namespace MauiApp1 namespace CommanderApp
{ {
public class FileSystemItem public class FileSystemItem
{ {

@ -1,4 +1,4 @@
namespace MauiApp1 namespace CommanderApp
{ {
public class FileSystemService : IFileSystemService public class FileSystemService : IFileSystemService
{ {

@ -1,2 +1,2 @@
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "MauiApp1")] [assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommanderApp")]
[assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "MauiApp1.Pages")] [assembly: XmlnsDefinition("http://schemas.microsoft.com/dotnet/maui/global", "CommanderApp.Pages")]

@ -1,4 +1,4 @@
namespace MauiApp1 namespace CommanderApp
{ {
public interface IFileSystemService public interface IFileSystemService
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8" ?> <?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui" <ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="MauiApp1.MainPage" x:Class="CommanderApp.MainPage"
Title="MAUI Commander"> Title="MAUI Commander">
<Grid RowDefinitions="Auto, *, Auto" ColumnDefinitions="*, *"> <Grid RowDefinitions="Auto, *, Auto" ColumnDefinitions="*, *">
@ -79,16 +79,23 @@
</CollectionView.ItemTemplate> </CollectionView.ItemTemplate>
</CollectionView> </CollectionView>
<!-- Toolbar (Footer) --> <!-- Адаптивный Toolbar (Footer) -->
<HorizontalStackLayout Grid.Row="2" Grid.ColumnSpan="2" <FlexLayout Grid.Row="2"
Padding="10" Grid.ColumnSpan="2"
Spacing="10" Padding="10"
BackgroundColor="#e0e0e0"> BackgroundColor="#e0e0e0"
<Button Text="F5 Copy" Clicked="OnCopyClicked" /> Direction="Row"
<Button Text="F6 Move" Clicked="OnMoveClicked" /> Wrap="Wrap"
<Button Text="F7 Mkdir" Clicked="OnMkdirClicked" /> JustifyContent="Center"
<Button Text="F8 Delete" Clicked="OnDeleteClicked" /> AlignItems="Center">
<Button Text="F10 Exit" Clicked="OnExitClicked" />
</HorizontalStackLayout> <Button Text="F5 Copy" Clicked="OnCopyClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8
,8" />
<Button Text="F6 Move" Clicked="OnMoveClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button Text="F7 Mkdir" Clicked="OnMkdirClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button Text="F8 Delete" Clicked="OnDeleteClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,8,8" />
<Button Text="F10 Exit" Clicked="OnExitClicked" Padding="12,6" MinimumWidthRequest="80" Margin="0,0,0,8" />
</FlexLayout>
</Grid> </Grid>
</ContentPage> </ContentPage>

@ -2,7 +2,7 @@
using System.Collections.ObjectModel; using System.Collections.ObjectModel;
using Microsoft.Maui.Controls; using Microsoft.Maui.Controls;
namespace MauiApp1; namespace CommanderApp;
public partial class MainPage : ContentPage public partial class MainPage : ContentPage
{ {

@ -1,6 +1,6 @@
using Microsoft.Extensions.Logging; using Microsoft.Extensions.Logging;
namespace MauiApp1 namespace CommanderApp
{ {
public static class MauiProgram public static class MauiProgram
{ {

@ -2,7 +2,7 @@
using Android.Content.PM; using Android.Content.PM;
using Android.OS; using Android.OS;
namespace MauiApp1 namespace CommanderApp
{ {
[Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, LaunchMode = LaunchMode.SingleTop, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)]
public class MainActivity : MauiAppCompatActivity public class MainActivity : MauiAppCompatActivity

@ -1,7 +1,7 @@
using Android.App; using Android.App;
using Android.Runtime; using Android.Runtime;
namespace MauiApp1 namespace CommanderApp
{ {
[Application] [Application]
public class MainApplication : MauiApplication public class MainApplication : MauiApplication

@ -1,6 +1,6 @@
using Foundation; using Foundation;
namespace MauiApp1 namespace CommanderApp
{ {
[Register("AppDelegate")] [Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate public class AppDelegate : MauiUIApplicationDelegate

@ -1,7 +1,7 @@
using ObjCRuntime; using ObjCRuntime;
using UIKit; using UIKit;
namespace MauiApp1 namespace CommanderApp
{ {
public class Program public class Program
{ {

@ -2,7 +2,7 @@ using System;
using Microsoft.Maui; using Microsoft.Maui;
using Microsoft.Maui.Hosting; using Microsoft.Maui.Hosting;
namespace MauiApp1 namespace CommanderApp
{ {
internal class Program : MauiApplication internal class Program : MauiApplication
{ {

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<manifest package="maui-application-id-placeholder" version="0.0.0" api-version="9" xmlns="http://tizen.org/ns/packages"> <manifest package="maui-application-id-placeholder" version="0.0.0" api-version="9" xmlns="http://tizen.org/ns/packages">
<profile name="common" /> <profile name="common" />
<ui-application appid="maui-application-id-placeholder" exec="MauiApp1.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single"> <ui-application appid="maui-application-id-placeholder" exec="CommanderApp.dll" multiple="false" nodisplay="false" taskmanage="true" type="dotnet" launch_mode="single">
<label>maui-application-title-placeholder</label> <label>maui-application-title-placeholder</label>
<icon>maui-appicon-placeholder</icon> <icon>maui-appicon-placeholder</icon>
<metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" /> <metadata key="http://tizen.org/metadata/prefer_dotnet_aot" value="true" />

@ -1,8 +1,8 @@
<maui:MauiWinUIApplication <maui:MauiWinUIApplication
x:Class="MauiApp1.WinUI.App" x:Class="CommanderApp.WinUI.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:maui="using:Microsoft.Maui" xmlns:maui="using:Microsoft.Maui"
xmlns:local="using:MauiApp1.WinUI"> xmlns:local="using:CommanderApp.WinUI">
</maui:MauiWinUIApplication> </maui:MauiWinUIApplication>

@ -3,7 +3,7 @@
// To learn more about WinUI, the WinUI project structure, // To learn more about WinUI, the WinUI project structure,
// and more about our project templates, see: http://aka.ms/winui-project-info. // and more about our project templates, see: http://aka.ms/winui-project-info.
namespace MauiApp1.WinUI namespace CommanderApp.WinUI
{ {
/// <summary> /// <summary>
/// Provides application-specific behavior to supplement the default Application class. /// Provides application-specific behavior to supplement the default Application class.

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="utf-8"?> <?xml version="1.0" encoding="utf-8"?>
<assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1"> <assembly manifestVersion="1.0" xmlns="urn:schemas-microsoft-com:asm.v1">
<assemblyIdentity version="1.0.0.0" name="MauiApp1.WinUI.app"/> <assemblyIdentity version="1.0.0.0" name="CommanderApp.WinUI.app"/>
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings> <windowsSettings>

@ -1,6 +1,6 @@
using Foundation; using Foundation;
namespace MauiApp1 namespace CommanderApp
{ {
[Register("AppDelegate")] [Register("AppDelegate")]
public class AppDelegate : MauiUIApplicationDelegate public class AppDelegate : MauiUIApplicationDelegate

@ -1,7 +1,7 @@
using ObjCRuntime; using ObjCRuntime;
using UIKit; using UIKit;
namespace MauiApp1 namespace CommanderApp
{ {
public class Program public class Program
{ {

Loading…
Cancel
Save