commit ae4fd7a8c07264b7a5fd0f97832202a76976f123 Author: CinkaFox Date: Sun Apr 12 18:05:58 2026 +0300 - init: Init diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..add57be --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +bin/ +obj/ +/packages/ +riderModule.iml +/_ReSharper.Caches/ \ No newline at end of file diff --git a/.idea/.idea.InternalSortMethods/.idea/.gitignore b/.idea/.idea.InternalSortMethods/.idea/.gitignore new file mode 100644 index 0000000..17f1ded --- /dev/null +++ b/.idea/.idea.InternalSortMethods/.idea/.gitignore @@ -0,0 +1,15 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Rider ignored files +/modules.xml +/projectSettingsUpdater.xml +/.idea.InternalSortMethods.iml +/contentModel.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Ignored default folder with query files +/queries/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/.idea.InternalSortMethods/.idea/AndroidProjectSystem.xml b/.idea/.idea.InternalSortMethods/.idea/AndroidProjectSystem.xml new file mode 100644 index 0000000..e82600c --- /dev/null +++ b/.idea/.idea.InternalSortMethods/.idea/AndroidProjectSystem.xml @@ -0,0 +1,6 @@ + + + + + \ No newline at end of file diff --git a/.idea/.idea.InternalSortMethods/.idea/encodings.xml b/.idea/.idea.InternalSortMethods/.idea/encodings.xml new file mode 100644 index 0000000..df87cf9 --- /dev/null +++ b/.idea/.idea.InternalSortMethods/.idea/encodings.xml @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/.idea/.idea.InternalSortMethods/.idea/indexLayout.xml b/.idea/.idea.InternalSortMethods/.idea/indexLayout.xml new file mode 100644 index 0000000..7b08163 --- /dev/null +++ b/.idea/.idea.InternalSortMethods/.idea/indexLayout.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.InternalSortMethods/.idea/vcs.xml b/.idea/.idea.InternalSortMethods/.idea/vcs.xml new file mode 100644 index 0000000..94a25f7 --- /dev/null +++ b/.idea/.idea.InternalSortMethods/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/Directory.Packages.props b/Directory.Packages.props new file mode 100644 index 0000000..4fcd884 --- /dev/null +++ b/Directory.Packages.props @@ -0,0 +1,22 @@ + + + + true + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/InternalSortMethods.Android/Application.cs b/InternalSortMethods.Android/Application.cs new file mode 100644 index 0000000..2ca1149 --- /dev/null +++ b/InternalSortMethods.Android/Application.cs @@ -0,0 +1,21 @@ +using Android.App; +using Android.Runtime; +using Avalonia; +using Avalonia.Android; + +namespace InternalSortMethods.Android +{ + [Application] + public class Application : AvaloniaAndroidApplication + { + protected Application(nint javaReference, JniHandleOwnership transfer) : base(javaReference, transfer) + { + } + + protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) + { + return base.CustomizeAppBuilder(builder) + .WithInterFont(); + } + } +} \ No newline at end of file diff --git a/InternalSortMethods.Android/Icon.png b/InternalSortMethods.Android/Icon.png new file mode 100644 index 0000000..3c39845 Binary files /dev/null and b/InternalSortMethods.Android/Icon.png differ diff --git a/InternalSortMethods.Android/InternalSortMethods.Android.csproj b/InternalSortMethods.Android/InternalSortMethods.Android.csproj new file mode 100644 index 0000000..c9dadf4 --- /dev/null +++ b/InternalSortMethods.Android/InternalSortMethods.Android.csproj @@ -0,0 +1,28 @@ + + + Exe + net10.0-android + 23 + enable + com.CompanyName.InternalSortMethods + 1 + 1.0 + apk + false + + + + + Resources\drawable\Icon.png + + + + + + + + + + + + diff --git a/InternalSortMethods.Android/MainActivity.cs b/InternalSortMethods.Android/MainActivity.cs new file mode 100644 index 0000000..f78cd39 --- /dev/null +++ b/InternalSortMethods.Android/MainActivity.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Content.PM; +using Avalonia; +using Avalonia.Android; + +namespace InternalSortMethods.Android; + +[Activity( + Label = "InternalSortMethods.Android", + Theme = "@style/MyTheme.NoActionBar", + Icon = "@drawable/icon", + MainLauncher = true, + ConfigurationChanges = ConfigChanges.Orientation | ConfigChanges.ScreenSize | ConfigChanges.UiMode)] +public class MainActivity : AvaloniaMainActivity +{ +} \ No newline at end of file diff --git a/InternalSortMethods.Android/Properties/AndroidManifest.xml b/InternalSortMethods.Android/Properties/AndroidManifest.xml new file mode 100644 index 0000000..4f7b3a7 --- /dev/null +++ b/InternalSortMethods.Android/Properties/AndroidManifest.xml @@ -0,0 +1,5 @@ + + + + + diff --git a/InternalSortMethods.Android/Resources/AboutResources.txt b/InternalSortMethods.Android/Resources/AboutResources.txt new file mode 100644 index 0000000..c2bca97 --- /dev/null +++ b/InternalSortMethods.Android/Resources/AboutResources.txt @@ -0,0 +1,44 @@ +Images, layout descriptions, binary blobs and string dictionaries can be included +in your application as resource files. Various Android APIs are designed to +operate on the resource IDs instead of dealing with images, strings or binary blobs +directly. + +For example, a sample Android app that contains a user interface layout (main.axml), +an internationalization string table (strings.xml) and some icons (drawable-XXX/icon.png) +would keep its resources in the "Resources" directory of the application: + +Resources/ + drawable/ + icon.png + + layout/ + main.axml + + values/ + strings.xml + +In order to get the build system to recognize Android resources, set the build action to +"AndroidResource". The native Android APIs do not operate directly with filenames, but +instead operate on resource IDs. When you compile an Android application that uses resources, +the build system will package the resources for distribution and generate a class called "R" +(this is an Android convention) that contains the tokens for each one of the resources +included. For example, for the above Resources layout, this is what the R class would expose: + +public class R { + public class drawable { + public const int icon = 0x123; + } + + public class layout { + public const int main = 0x456; + } + + public class strings { + public const int first_string = 0xabc; + public const int second_string = 0xbcd; + } +} + +You would then use R.drawable.icon to reference the drawable/icon.png file, or R.layout.main +to reference the layout/main.axml file, or R.strings.first_string to reference the first +string in the dictionary file values/strings.xml. \ No newline at end of file diff --git a/InternalSortMethods.Android/Resources/drawable-night-v31/avalonia_anim.xml b/InternalSortMethods.Android/Resources/drawable-night-v31/avalonia_anim.xml new file mode 100644 index 0000000..dde4b5a --- /dev/null +++ b/InternalSortMethods.Android/Resources/drawable-night-v31/avalonia_anim.xml @@ -0,0 +1,66 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InternalSortMethods.Android/Resources/drawable-v31/avalonia_anim.xml b/InternalSortMethods.Android/Resources/drawable-v31/avalonia_anim.xml new file mode 100644 index 0000000..94f27d9 --- /dev/null +++ b/InternalSortMethods.Android/Resources/drawable-v31/avalonia_anim.xml @@ -0,0 +1,71 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InternalSortMethods.Android/Resources/drawable/splash_screen.xml b/InternalSortMethods.Android/Resources/drawable/splash_screen.xml new file mode 100644 index 0000000..2e920b4 --- /dev/null +++ b/InternalSortMethods.Android/Resources/drawable/splash_screen.xml @@ -0,0 +1,13 @@ + + + + + + + + + + diff --git a/InternalSortMethods.Android/Resources/values-night/colors.xml b/InternalSortMethods.Android/Resources/values-night/colors.xml new file mode 100644 index 0000000..3d47b6f --- /dev/null +++ b/InternalSortMethods.Android/Resources/values-night/colors.xml @@ -0,0 +1,4 @@ + + + #212121 + diff --git a/InternalSortMethods.Android/Resources/values-v31/styles.xml b/InternalSortMethods.Android/Resources/values-v31/styles.xml new file mode 100644 index 0000000..d5ecec4 --- /dev/null +++ b/InternalSortMethods.Android/Resources/values-v31/styles.xml @@ -0,0 +1,21 @@ + + + + + + + + diff --git a/InternalSortMethods.Android/Resources/values/colors.xml b/InternalSortMethods.Android/Resources/values/colors.xml new file mode 100644 index 0000000..59279d5 --- /dev/null +++ b/InternalSortMethods.Android/Resources/values/colors.xml @@ -0,0 +1,4 @@ + + + #FFFFFF + diff --git a/InternalSortMethods.Android/Resources/values/styles.xml b/InternalSortMethods.Android/Resources/values/styles.xml new file mode 100644 index 0000000..6e534de --- /dev/null +++ b/InternalSortMethods.Android/Resources/values/styles.xml @@ -0,0 +1,12 @@ + + + + + + + diff --git a/InternalSortMethods.Browser/InternalSortMethods.Browser.csproj b/InternalSortMethods.Browser/InternalSortMethods.Browser.csproj new file mode 100644 index 0000000..5bf4b18 --- /dev/null +++ b/InternalSortMethods.Browser/InternalSortMethods.Browser.csproj @@ -0,0 +1,16 @@ + + + net10.0-browser + Exe + true + enable + + + + + + + + + + diff --git a/InternalSortMethods.Browser/Program.cs b/InternalSortMethods.Browser/Program.cs new file mode 100644 index 0000000..ab6c8cd --- /dev/null +++ b/InternalSortMethods.Browser/Program.cs @@ -0,0 +1,18 @@ +using System.Runtime.Versioning; +using System.Threading.Tasks; +using Avalonia; +using Avalonia.Browser; +using InternalSortMethods; + +internal sealed partial class Program +{ + private static Task Main(string[] args) => BuildAvaloniaApp() + .WithInterFont() +#if DEBUG + .WithDeveloperTools() +#endif + .StartBrowserAppAsync("out"); + + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure(); +} \ No newline at end of file diff --git a/InternalSortMethods.Browser/Properties/AssemblyInfo.cs b/InternalSortMethods.Browser/Properties/AssemblyInfo.cs new file mode 100644 index 0000000..f31aed8 --- /dev/null +++ b/InternalSortMethods.Browser/Properties/AssemblyInfo.cs @@ -0,0 +1 @@ +[assembly: System.Runtime.Versioning.SupportedOSPlatform("browser")] \ No newline at end of file diff --git a/InternalSortMethods.Browser/Properties/launchSettings.json b/InternalSortMethods.Browser/Properties/launchSettings.json new file mode 100644 index 0000000..6a8c454 --- /dev/null +++ b/InternalSortMethods.Browser/Properties/launchSettings.json @@ -0,0 +1,13 @@ +{ + "profiles": { + "InternalSortMethods.Browser": { + "commandName": "Project", + "launchBrowser": true, + "environmentVariables": { + "ASPNETCORE_ENVIRONMENT": "Development" + }, + "applicationUrl": "https://localhost:7169;http://localhost:5235", + "inspectUri": "{wsProtocol}://{url.hostname}:{url.port}/_framework/debug/ws-proxy?browser={browserInspectUri}" + } + } +} diff --git a/InternalSortMethods.Browser/runtimeconfig.template.json b/InternalSortMethods.Browser/runtimeconfig.template.json new file mode 100644 index 0000000..b96a943 --- /dev/null +++ b/InternalSortMethods.Browser/runtimeconfig.template.json @@ -0,0 +1,10 @@ +{ + "wasmHostProperties": { + "perHostConfig": [ + { + "name": "browser", + "host": "browser" + } + ] + } +} \ No newline at end of file diff --git a/InternalSortMethods.Browser/wwwroot/app.css b/InternalSortMethods.Browser/wwwroot/app.css new file mode 100644 index 0000000..1d6f754 --- /dev/null +++ b/InternalSortMethods.Browser/wwwroot/app.css @@ -0,0 +1,58 @@ +/* HTML styles for the splash screen */ +.avalonia-splash { + position: absolute; + height: 100%; + width: 100%; + background: white; + font-family: 'Outfit', sans-serif; + justify-content: center; + align-items: center; + display: flex; + pointer-events: none; +} + +/* Light theme styles */ +@media (prefers-color-scheme: light) { + .avalonia-splash { + background: white; + } + + .avalonia-splash h2 { + color: #1b2a4e; + } + + .avalonia-splash a { + color: #0D6EFD; + } +} + +@media (prefers-color-scheme: dark) { + .avalonia-splash { + background: #1b2a4e; + } + + .avalonia-splash h2 { + color: white; + } + + .avalonia-splash a { + color: white; + } +} + +.avalonia-splash h2 { + font-weight: 400; + font-size: 1.5rem; +} + +.avalonia-splash a { + text-decoration: none; + font-size: 2.5rem; + display: block; +} + +.avalonia-splash.splash-close { + transition: opacity 200ms, display 200ms; + display: none; + opacity: 0; +} diff --git a/InternalSortMethods.Browser/wwwroot/favicon.ico b/InternalSortMethods.Browser/wwwroot/favicon.ico new file mode 100644 index 0000000..f7da8bb Binary files /dev/null and b/InternalSortMethods.Browser/wwwroot/favicon.ico differ diff --git a/InternalSortMethods.Browser/wwwroot/index.html b/InternalSortMethods.Browser/wwwroot/index.html new file mode 100644 index 0000000..282acae --- /dev/null +++ b/InternalSortMethods.Browser/wwwroot/index.html @@ -0,0 +1,36 @@ + + + + + InternalSortMethods.Browser + + + + + + +
+
+

+ Powered by + + + + + + + + + + + + + + +

+
+
+ + + + diff --git a/InternalSortMethods.Browser/wwwroot/main.js b/InternalSortMethods.Browser/wwwroot/main.js new file mode 100644 index 0000000..bf1555e --- /dev/null +++ b/InternalSortMethods.Browser/wwwroot/main.js @@ -0,0 +1,13 @@ +import { dotnet } from './_framework/dotnet.js' + +const is_browser = typeof window != "undefined"; +if (!is_browser) throw new Error(`Expected to be running in a browser`); + +const dotnetRuntime = await dotnet + .withDiagnosticTracing(false) + .withApplicationArgumentsFromQuery() + .create(); + +const config = dotnetRuntime.getConfig(); + +await dotnetRuntime.runMain(config.mainAssemblyName, [globalThis.location.href]); diff --git a/InternalSortMethods.Desktop/InternalSortMethods.Desktop.csproj b/InternalSortMethods.Desktop/InternalSortMethods.Desktop.csproj new file mode 100644 index 0000000..edd2687 --- /dev/null +++ b/InternalSortMethods.Desktop/InternalSortMethods.Desktop.csproj @@ -0,0 +1,25 @@ + + + WinExe + + net10.0 + enable + + + + app.manifest + + + + + + None + All + + + + + + + diff --git a/InternalSortMethods.Desktop/Program.cs b/InternalSortMethods.Desktop/Program.cs new file mode 100644 index 0000000..6b7d751 --- /dev/null +++ b/InternalSortMethods.Desktop/Program.cs @@ -0,0 +1,24 @@ +using System; +using Avalonia; + +namespace InternalSortMethods.Desktop; + +sealed class Program +{ + // Initialization code. Don't use any Avalonia, third-party APIs or any + // SynchronizationContext-reliant code before AppMain is called: things aren't initialized + // yet and stuff might break. + [STAThread] + public static void Main(string[] args) => BuildAvaloniaApp() + .StartWithClassicDesktopLifetime(args); + + // Avalonia configuration, don't remove; also used by visual designer. + public static AppBuilder BuildAvaloniaApp() + => AppBuilder.Configure() + .UsePlatformDetect() +#if DEBUG + .WithDeveloperTools() +#endif + .WithInterFont() + .LogToTrace(); +} \ No newline at end of file diff --git a/InternalSortMethods.Desktop/app.manifest b/InternalSortMethods.Desktop/app.manifest new file mode 100644 index 0000000..c9fd588 --- /dev/null +++ b/InternalSortMethods.Desktop/app.manifest @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + diff --git a/InternalSortMethods.iOS/AppDelegate.cs b/InternalSortMethods.iOS/AppDelegate.cs new file mode 100644 index 0000000..266818a --- /dev/null +++ b/InternalSortMethods.iOS/AppDelegate.cs @@ -0,0 +1,23 @@ +using Foundation; +using UIKit; +using Avalonia; +using Avalonia.Controls; +using Avalonia.iOS; +using Avalonia.Media; + +namespace InternalSortMethods.iOS; + +// The UIApplicationDelegate for the application. This class is responsible for launching the +// User Interface of the application, as well as listening (and optionally responding) to +// application events from iOS. +[Register("AppDelegate")] +#pragma warning disable CA1711 // Identifiers should not have incorrect suffix +public partial class AppDelegate : AvaloniaAppDelegate +#pragma warning restore CA1711 // Identifiers should not have incorrect suffix +{ + protected override AppBuilder CustomizeAppBuilder(AppBuilder builder) + { + return base.CustomizeAppBuilder(builder) + .WithInterFont(); + } +} \ No newline at end of file diff --git a/InternalSortMethods.iOS/Entitlements.plist b/InternalSortMethods.iOS/Entitlements.plist new file mode 100644 index 0000000..0c67376 --- /dev/null +++ b/InternalSortMethods.iOS/Entitlements.plist @@ -0,0 +1,5 @@ + + + + + diff --git a/InternalSortMethods.iOS/Info.plist b/InternalSortMethods.iOS/Info.plist new file mode 100644 index 0000000..a74139e --- /dev/null +++ b/InternalSortMethods.iOS/Info.plist @@ -0,0 +1,43 @@ + + + + + CFBundleDisplayName + InternalSortMethods + CFBundleIdentifier + companyName.InternalSortMethods + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1.0 + LSRequiresIPhoneOS + + MinimumOSVersion + 13.0 + UIDeviceFamily + + 1 + 2 + + UILaunchStoryboardName + LaunchScreen + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/InternalSortMethods.iOS/InternalSortMethods.iOS.csproj b/InternalSortMethods.iOS/InternalSortMethods.iOS.csproj new file mode 100644 index 0000000..c8d20a2 --- /dev/null +++ b/InternalSortMethods.iOS/InternalSortMethods.iOS.csproj @@ -0,0 +1,16 @@ + + + Exe + net10.0-ios + 13.0 + enable + + + + + + + + + + diff --git a/InternalSortMethods.iOS/Main.cs b/InternalSortMethods.iOS/Main.cs new file mode 100644 index 0000000..c6feea5 --- /dev/null +++ b/InternalSortMethods.iOS/Main.cs @@ -0,0 +1,14 @@ +using UIKit; + +namespace InternalSortMethods.iOS; + +public class Application +{ + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } +} \ No newline at end of file diff --git a/InternalSortMethods.iOS/Resources/LaunchScreen.xib b/InternalSortMethods.iOS/Resources/LaunchScreen.xib new file mode 100644 index 0000000..b853c42 --- /dev/null +++ b/InternalSortMethods.iOS/Resources/LaunchScreen.xib @@ -0,0 +1,43 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/InternalSortMethods.slnx b/InternalSortMethods.slnx new file mode 100644 index 0000000..edd44e6 --- /dev/null +++ b/InternalSortMethods.slnx @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/InternalSortMethods/App.axaml b/InternalSortMethods/App.axaml new file mode 100644 index 0000000..4fa6825 --- /dev/null +++ b/InternalSortMethods/App.axaml @@ -0,0 +1,15 @@ + + + + + + + + + + + \ No newline at end of file diff --git a/InternalSortMethods/App.axaml.cs b/InternalSortMethods/App.axaml.cs new file mode 100644 index 0000000..8c46c09 --- /dev/null +++ b/InternalSortMethods/App.axaml.cs @@ -0,0 +1,43 @@ +using Avalonia; +using Avalonia.Controls.ApplicationLifetimes; +using Avalonia.Data.Core; +using Avalonia.Data.Core.Plugins; +using System.Linq; +using Avalonia.Markup.Xaml; +using InternalSortMethods.ViewModels; +using InternalSortMethods.Views; + +namespace InternalSortMethods; + +public partial class App : Application +{ + public override void Initialize() + { + AvaloniaXamlLoader.Load(this); + } + + public override void OnFrameworkInitializationCompleted() + { + if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop) + { + desktop.MainWindow = new MainWindow + { + DataContext = new MainViewModel() + }; + } + else if (ApplicationLifetime is IActivityApplicationLifetime singleViewFactoryApplicationLifetime) + { + singleViewFactoryApplicationLifetime.MainViewFactory = + () => new MainView { DataContext = new MainViewModel() }; + } + else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform) + { + singleViewPlatform.MainView = new MainView + { + DataContext = new MainViewModel() + }; + } + + base.OnFrameworkInitializationCompleted(); + } +} \ No newline at end of file diff --git a/InternalSortMethods/Assets/avalonia-logo.ico b/InternalSortMethods/Assets/avalonia-logo.ico new file mode 100644 index 0000000..f7da8bb Binary files /dev/null and b/InternalSortMethods/Assets/avalonia-logo.ico differ diff --git a/InternalSortMethods/InternalSortMethods.csproj b/InternalSortMethods/InternalSortMethods.csproj new file mode 100644 index 0000000..85e9b1d --- /dev/null +++ b/InternalSortMethods/InternalSortMethods.csproj @@ -0,0 +1,23 @@ + + + net10.0 + enable + latest + true + + + + + + + + + + + + None + All + + + + diff --git a/InternalSortMethods/ViewLocator.cs b/InternalSortMethods/ViewLocator.cs new file mode 100644 index 0000000..87a28cb --- /dev/null +++ b/InternalSortMethods/ViewLocator.cs @@ -0,0 +1,37 @@ +using System; +using System.Diagnostics.CodeAnalysis; +using Avalonia.Controls; +using Avalonia.Controls.Templates; +using InternalSortMethods.ViewModels; + +namespace InternalSortMethods; + +/// +/// Given a view model, returns the corresponding view if possible. +/// +[RequiresUnreferencedCode( + "Default implementation of ViewLocator involves reflection which may be trimmed away.", + Url = "https://docs.avaloniaui.net/docs/concepts/view-locator")] +public class ViewLocator : IDataTemplate +{ + public Control? Build(object? param) + { + if (param is null) + return null; + + var name = param.GetType().FullName!.Replace("ViewModel", "View", StringComparison.Ordinal); + var type = Type.GetType(name); + + if (type != null) + { + return (Control)Activator.CreateInstance(type)!; + } + + return new TextBlock { Text = "Not Found: " + name }; + } + + public bool Match(object? data) + { + return data is ViewModelBase; + } +} \ No newline at end of file diff --git a/InternalSortMethods/ViewModels/MainViewModel.cs b/InternalSortMethods/ViewModels/MainViewModel.cs new file mode 100644 index 0000000..a93e42b --- /dev/null +++ b/InternalSortMethods/ViewModels/MainViewModel.cs @@ -0,0 +1,8 @@ +using CommunityToolkit.Mvvm.ComponentModel; + +namespace InternalSortMethods.ViewModels; + +public partial class MainViewModel : ViewModelBase +{ + [ObservableProperty] private string _greeting = "Welcome to Avalonia!"; +} \ No newline at end of file diff --git a/InternalSortMethods/ViewModels/ViewModelBase.cs b/InternalSortMethods/ViewModels/ViewModelBase.cs new file mode 100644 index 0000000..3cc3b71 --- /dev/null +++ b/InternalSortMethods/ViewModels/ViewModelBase.cs @@ -0,0 +1,7 @@ +using CommunityToolkit.Mvvm.ComponentModel; + +namespace InternalSortMethods.ViewModels; + +public abstract class ViewModelBase : ObservableObject +{ +} \ No newline at end of file diff --git a/InternalSortMethods/Views/MainView.axaml b/InternalSortMethods/Views/MainView.axaml new file mode 100644 index 0000000..9358c78 --- /dev/null +++ b/InternalSortMethods/Views/MainView.axaml @@ -0,0 +1,16 @@ + + + + + + + + diff --git a/InternalSortMethods/Views/MainView.axaml.cs b/InternalSortMethods/Views/MainView.axaml.cs new file mode 100644 index 0000000..3640324 --- /dev/null +++ b/InternalSortMethods/Views/MainView.axaml.cs @@ -0,0 +1,11 @@ +using Avalonia.Controls; + +namespace InternalSortMethods.Views; + +public partial class MainView : UserControl +{ + public MainView() + { + InitializeComponent(); + } +} \ No newline at end of file diff --git a/InternalSortMethods/Views/MainWindow.axaml b/InternalSortMethods/Views/MainWindow.axaml new file mode 100644 index 0000000..9e3a684 --- /dev/null +++ b/InternalSortMethods/Views/MainWindow.axaml @@ -0,0 +1,12 @@ + + + diff --git a/InternalSortMethods/Views/MainWindow.axaml.cs b/InternalSortMethods/Views/MainWindow.axaml.cs new file mode 100644 index 0000000..35b0aa6 --- /dev/null +++ b/InternalSortMethods/Views/MainWindow.axaml.cs @@ -0,0 +1,11 @@ +using Avalonia.Controls; + +namespace InternalSortMethods.Views; + +public partial class MainWindow : Window +{ + public MainWindow() + { + InitializeComponent(); + } +} \ No newline at end of file