diff --git a/src/Directory.Packages.props b/src/Directory.Packages.props
index 6d349e4..39a989f 100644
--- a/src/Directory.Packages.props
+++ b/src/Directory.Packages.props
@@ -19,12 +19,22 @@
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/ReactiveUI.SourceGenerators.slnx b/src/ReactiveUI.SourceGenerators.slnx
index 00f856f..4adf8d0 100644
--- a/src/ReactiveUI.SourceGenerators.slnx
+++ b/src/ReactiveUI.SourceGenerators.slnx
@@ -9,7 +9,25 @@
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs b/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs
index 812c50a..8246ca0 100644
--- a/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs
+++ b/src/ReactiveUI.SourceGenerators/IViewFor/IViewForGenerator.Execute.cs
@@ -93,7 +93,7 @@ internal static CompilationUnitSyntax GetIViewForWpfWinUiUno(IViewForInfo iViewF
writer.WriteLine("DependencyProperty.Register(");
writer.WriteLine("nameof(ViewModel),");
writer.WriteLine($"typeof({iViewForInfo.ViewModelTypeName}),");
- writer.WriteLine($"typeof(IViewFor<{iViewForInfo.ViewModelTypeName}>),");
+ writer.WriteLine($"typeof({iViewForInfo.ClassName}),");
writer.WriteLine("new PropertyMetadata(null));");
writer.WriteLine();
@@ -213,6 +213,7 @@ internal static CompilationUnitSyntax GetIViewForAvalonia(IViewForInfo iViewForI
[
UsingDirective(ParseName("System")),
UsingDirective(ParseName("ReactiveUI")),
+ UsingDirective(ParseName("Avalonia")),
UsingDirective(ParseName("Avalonia.Controls")),
];
@@ -258,7 +259,7 @@ internal static CompilationUnitSyntax GetIViewForAvalonia(IViewForInfo iViewForI
writer.WriteLine($"public static readonly StyledProperty<{iViewForInfo.ViewModelTypeName}?> ViewModelProperty =");
writer.Indent++;
writer.WriteLine("AvaloniaProperty");
- writer.WriteLine($".Register, {iViewForInfo.ViewModelTypeName}?>(nameof(ViewModel));");
+ writer.WriteLine($".Register<{iViewForInfo.ClassName}, {iViewForInfo.ViewModelTypeName}?>(nameof(ViewModel));");
writer.Indent--;
writer.WriteLine("/// ");
@@ -286,28 +287,31 @@ internal static CompilationUnitSyntax GetIViewForAvalonia(IViewForInfo iViewForI
writer.Indent--;
writer.WriteLine(Token(SyntaxKind.CloseBraceToken));
writer.WriteLine();
- writer.WriteLine(@"
- protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
- {
- base.OnPropertyChanged(change);
-
- if (change.Property == DataContextProperty)
- {
- if (ReferenceEquals(change.OldValue, ViewModel)
- && change.NewValue is null or TViewModel)
- {
- SetCurrentValue(ViewModelProperty, change.NewValue);
- }
- }
- else if (change.Property == ViewModelProperty)
- {
- if (ReferenceEquals(change.OldValue, DataContext))
- {
- SetCurrentValue(DataContextProperty, change.NewValue);
- }
- }
- }
- ");
+ writer.WriteLine(
+ $$"""
+
+ protected override void OnPropertyChanged(AvaloniaPropertyChangedEventArgs change)
+ {
+ base.OnPropertyChanged(change);
+
+ if (change.Property == DataContextProperty)
+ {
+ if (ReferenceEquals(change.OldValue, ViewModel)
+ && change.NewValue is null or {{iViewForInfo.ViewModelTypeName}})
+ {
+ SetCurrentValue(ViewModelProperty, change.NewValue);
+ }
+ }
+ else if (change.Property == ViewModelProperty)
+ {
+ if (ReferenceEquals(change.OldValue, DataContext))
+ {
+ SetCurrentValue(DataContextProperty, change.NewValue);
+ }
+ }
+ }
+
+ """);
writer.Indent--;
writer.WriteLine(Token(SyntaxKind.CloseBraceToken));
writer.Indent--;
diff --git a/src/TestApps/TestAvaloniaApplication.Desktop/Program.cs b/src/TestApps/TestAvaloniaApplication.Desktop/Program.cs
new file mode 100644
index 0000000..a433497
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication.Desktop/Program.cs
@@ -0,0 +1,32 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using System;
+
+using Avalonia;
+using Avalonia.ReactiveUI;
+
+namespace AvaloniaApplication1.Desktop;
+
+///
+/// Program.
+///
+internal static 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()
+ .WithInterFont()
+ .LogToTrace()
+ .UseReactiveUI();
+}
diff --git a/src/TestApps/TestAvaloniaApplication.Desktop/TestAvaloniaApplication.Desktop.csproj b/src/TestApps/TestAvaloniaApplication.Desktop/TestAvaloniaApplication.Desktop.csproj
new file mode 100644
index 0000000..2556b19
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication.Desktop/TestAvaloniaApplication.Desktop.csproj
@@ -0,0 +1,20 @@
+
+
+ WinExe
+
+ net8.0
+ enable
+ true
+ app.manifest
+ false
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication.Desktop/app.manifest b/src/TestApps/TestAvaloniaApplication.Desktop/app.manifest
new file mode 100644
index 0000000..e0ce8d0
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication.Desktop/app.manifest
@@ -0,0 +1,18 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication/App.axaml b/src/TestApps/TestAvaloniaApplication/App.axaml
new file mode 100644
index 0000000..9cbf330
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/App.axaml
@@ -0,0 +1,10 @@
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication/App.axaml.cs b/src/TestApps/TestAvaloniaApplication/App.axaml.cs
new file mode 100644
index 0000000..7b3403b
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/App.axaml.cs
@@ -0,0 +1,51 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Avalonia;
+using Avalonia.Controls.ApplicationLifetimes;
+using Avalonia.Markup.Xaml;
+
+using AvaloniaApplication1.ViewModels;
+using AvaloniaApplication1.Views;
+
+namespace AvaloniaApplication1;
+
+///
+/// App.
+///
+///
+public partial class App : Application
+{
+ ///
+ /// Initializes the application by loading XAML etc.
+ ///
+ public override void Initialize()
+ {
+ AvaloniaXamlLoader.Load(this);
+ }
+
+ ///
+ /// Called when [framework initialization completed].
+ ///
+ public override void OnFrameworkInitializationCompleted()
+ {
+ if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktop)
+ {
+ desktop.MainWindow = new MainWindow
+ {
+ DataContext = new MainViewModel()
+ };
+ }
+ else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewPlatform)
+ {
+ singleViewPlatform.MainView = new MainView
+ {
+ DataContext = new MainViewModel()
+ };
+ }
+
+ base.OnFrameworkInitializationCompleted();
+ }
+}
diff --git a/src/TestApps/TestAvaloniaApplication/Assets/avalonia-logo.ico b/src/TestApps/TestAvaloniaApplication/Assets/avalonia-logo.ico
new file mode 100644
index 0000000..da8d49f
Binary files /dev/null and b/src/TestApps/TestAvaloniaApplication/Assets/avalonia-logo.ico differ
diff --git a/src/TestApps/TestAvaloniaApplication/TestAvaloniaApplication.csproj b/src/TestApps/TestAvaloniaApplication/TestAvaloniaApplication.csproj
new file mode 100644
index 0000000..ddad94e
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/TestAvaloniaApplication.csproj
@@ -0,0 +1,25 @@
+
+
+ net8.0
+ enable
+ latest
+ false
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication/ViewModels/MainViewModel.cs b/src/TestApps/TestAvaloniaApplication/ViewModels/MainViewModel.cs
new file mode 100644
index 0000000..bc7a7e0
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/ViewModels/MainViewModel.cs
@@ -0,0 +1,23 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace AvaloniaApplication1.ViewModels;
+
+///
+/// MainViewModel.
+///
+///
+public class MainViewModel : ViewModelBase
+{
+ ///
+ /// Gets the greeting.
+ ///
+ ///
+ /// The greeting.
+ ///
+#pragma warning disable CA1822 // Mark members as static
+ public string Greeting => "Welcome to Avalonia!";
+#pragma warning restore CA1822 // Mark members as static
+}
diff --git a/src/TestApps/TestAvaloniaApplication/ViewModels/ViewModelBase.cs b/src/TestApps/TestAvaloniaApplication/ViewModels/ViewModelBase.cs
new file mode 100644
index 0000000..dd371b7
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/ViewModels/ViewModelBase.cs
@@ -0,0 +1,16 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using ReactiveUI;
+
+namespace AvaloniaApplication1.ViewModels;
+
+///
+/// ViewModelBase.
+///
+///
+public class ViewModelBase : ReactiveObject
+{
+}
diff --git a/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml b/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml
new file mode 100644
index 0000000..b1d11e0
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml
@@ -0,0 +1,16 @@
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml.cs b/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml.cs
new file mode 100644
index 0000000..2042338
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/Views/MainView.axaml.cs
@@ -0,0 +1,25 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Avalonia.Controls;
+
+namespace AvaloniaApplication1.Views;
+
+///
+/// MainView.
+///
+///
+[ReactiveUI.SourceGenerators.IViewFor]
+public partial class MainView : UserControl
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public MainView()
+ {
+ InitializeComponent();
+ ViewModel = new ViewModels.MainViewModel();
+ }
+}
diff --git a/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml b/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml
new file mode 100644
index 0000000..87e8725
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml
@@ -0,0 +1,12 @@
+
+
+
diff --git a/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml.cs b/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml.cs
new file mode 100644
index 0000000..3f81182
--- /dev/null
+++ b/src/TestApps/TestAvaloniaApplication/Views/MainWindow.axaml.cs
@@ -0,0 +1,23 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Avalonia.Controls;
+
+namespace AvaloniaApplication1.Views;
+
+///
+/// MainWindow.
+///
+///
+public partial class MainWindow : Window
+{
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public MainWindow()
+ {
+ InitializeComponent();
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/App.xaml b/src/TestApps/TestMauiApplication/App.xaml
new file mode 100644
index 0000000..8fb5f38
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/App.xaml
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/App.xaml.cs b/src/TestApps/TestMauiApplication/App.xaml.cs
new file mode 100644
index 0000000..79782f9
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/App.xaml.cs
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace MauiApp1
+{
+ ///
+ /// App.
+ ///
+ ///
+ public partial class App : Application
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// To be added.
+ ///
+ public App()
+ {
+ InitializeComponent();
+ MainPage = new AppShell();
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/AppShell.xaml b/src/TestApps/TestMauiApplication/AppShell.xaml
new file mode 100644
index 0000000..5dd865e
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/AppShell.xaml
@@ -0,0 +1,15 @@
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/AppShell.xaml.cs b/src/TestApps/TestMauiApplication/AppShell.xaml.cs
new file mode 100644
index 0000000..f115914
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/AppShell.xaml.cs
@@ -0,0 +1,25 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace MauiApp1
+{
+ ///
+ /// AppShell.
+ ///
+ ///
+ public partial class AppShell : Shell
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ ///
+ /// To be added.
+ ///
+ public AppShell()
+ {
+ InitializeComponent();
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/MainPage.xaml b/src/TestApps/TestMauiApplication/MainPage.xaml
new file mode 100644
index 0000000..4ff41e1
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/MainPage.xaml
@@ -0,0 +1,36 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/MainPage.xaml.cs b/src/TestApps/TestMauiApplication/MainPage.xaml.cs
new file mode 100644
index 0000000..36d7f47
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/MainPage.xaml.cs
@@ -0,0 +1,42 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace MauiApp1
+{
+ ///
+ /// MainPage.
+ ///
+ ///
+ [ReactiveUI.SourceGenerators.IViewFor]
+ public partial class MainPage : ContentPage
+ {
+ private int _count;
+
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public MainPage()
+ {
+ InitializeComponent();
+ ViewModel = new MainViewModel();
+ }
+
+ private void OnCounterClicked(object sender, EventArgs e)
+ {
+ _count++;
+
+ if (_count == 1)
+ {
+ CounterBtn.Text = $"Clicked {_count} time";
+ }
+ else
+ {
+ CounterBtn.Text = $"Clicked {_count} times";
+ }
+
+ SemanticScreenReader.Announce(CounterBtn.Text);
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/MainViewModel.cs b/src/TestApps/TestMauiApplication/MainViewModel.cs
new file mode 100644
index 0000000..0d77f5f
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/MainViewModel.cs
@@ -0,0 +1,13 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace MauiApp1
+{
+ ///
+ /// MainViewModel.
+ ///
+ ///
+ public class MainViewModel : ReactiveUI.ReactiveObject;
+}
diff --git a/src/TestApps/TestMauiApplication/MauiProgram.cs b/src/TestApps/TestMauiApplication/MauiProgram.cs
new file mode 100644
index 0000000..ee5bb64
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/MauiProgram.cs
@@ -0,0 +1,37 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Microsoft.Extensions.Logging;
+
+namespace MauiApp1
+{
+ ///
+ /// MauiProgram.
+ ///
+ public static class MauiProgram
+ {
+ ///
+ /// Creates the maui application.
+ ///
+ /// MauiApp.
+ public static MauiApp CreateMauiApp()
+ {
+ var builder = MauiApp.CreateBuilder();
+ builder
+ .UseMauiApp()
+ .ConfigureFonts(fonts =>
+ {
+ fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
+ fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
+ });
+
+#if DEBUG
+ builder.Logging.AddDebug();
+#endif
+
+ return builder.Build();
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Android/AndroidManifest.xml b/src/TestApps/TestMauiApplication/Platforms/Android/AndroidManifest.xml
new file mode 100644
index 0000000..e9937ad
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Android/AndroidManifest.xml
@@ -0,0 +1,6 @@
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Platforms/Android/MainActivity.cs b/src/TestApps/TestMauiApplication/Platforms/Android/MainActivity.cs
new file mode 100644
index 0000000..67b44bf
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Android/MainActivity.cs
@@ -0,0 +1,17 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Android.App;
+using Android.Content.PM;
+
+namespace MauiApp1
+{
+ ///
+ /// MainActivity.
+ ///
+ ///
+ [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;
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Android/MainApplication.cs b/src/TestApps/TestMauiApplication/Platforms/Android/MainApplication.cs
new file mode 100644
index 0000000..69155d0
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Android/MainApplication.cs
@@ -0,0 +1,38 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Android.App;
+using Android.Runtime;
+
+namespace MauiApp1
+{
+ ///
+ /// MainApplication.
+ ///
+ ///
+ [Application]
+ public class MainApplication : MauiApplication
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ /// The handle.
+ /// The ownership.
+ public MainApplication(IntPtr handle, JniHandleOwnership ownership)
+ : base(handle, ownership)
+ {
+ }
+
+ ///
+ /// When overridden in a derived class, creates the to be used in this application.
+ /// Typically a is created by calling , configuring
+ /// the returned , and returning the built app by calling .
+ ///
+ ///
+ /// The built .
+ ///
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Android/Resources/values/colors.xml b/src/TestApps/TestMauiApplication/Platforms/Android/Resources/values/colors.xml
new file mode 100644
index 0000000..c04d749
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Android/Resources/values/colors.xml
@@ -0,0 +1,6 @@
+
+
+ #512BD4
+ #2B0B98
+ #2B0B98
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/AppDelegate.cs b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/AppDelegate.cs
new file mode 100644
index 0000000..574d40a
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/AppDelegate.cs
@@ -0,0 +1,22 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Foundation;
+
+namespace MauiApp1
+{
+ ///
+ /// AppDelegate.
+ ///
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ ///
+ /// Creates the maui application.
+ ///
+ /// MauiApp.
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Entitlements.plist b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Entitlements.plist
new file mode 100644
index 0000000..de4adc9
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Entitlements.plist
@@ -0,0 +1,14 @@
+
+
+
+
+
+
+ com.apple.security.app-sandbox
+
+
+ com.apple.security.network.client
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Info.plist b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Info.plist
new file mode 100644
index 0000000..7268977
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Info.plist
@@ -0,0 +1,38 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ UIDeviceFamily
+
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Program.cs b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Program.cs
new file mode 100644
index 0000000..888d1fe
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/MacCatalyst/Program.cs
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using UIKit;
+
+namespace MauiApp1
+{
+ ///
+ /// Program.
+ ///
+ public static class Program
+ {
+ ///
+ /// Defines the entry point of the application.
+ ///
+ /// The arguments.
+ private 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));
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Tizen/Main.cs b/src/TestApps/TestMauiApplication/Platforms/Tizen/Main.cs
new file mode 100644
index 0000000..38b536a
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Tizen/Main.cs
@@ -0,0 +1,17 @@
+using Microsoft.Maui;
+using Microsoft.Maui.Hosting;
+using System;
+
+namespace MauiApp1
+{
+ internal class Program : MauiApplication
+ {
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+
+ static void Main(string[] args)
+ {
+ var app = new Program();
+ app.Run(args);
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Tizen/tizen-manifest.xml b/src/TestApps/TestMauiApplication/Platforms/Tizen/tizen-manifest.xml
new file mode 100644
index 0000000..16035f2
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Tizen/tizen-manifest.xml
@@ -0,0 +1,15 @@
+
+
+
+
+
+ maui-appicon-placeholder
+
+
+
+
+ http://tizen.org/privilege/internet
+
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml b/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml
new file mode 100644
index 0000000..4cf2244
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml
@@ -0,0 +1,8 @@
+
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml.cs b/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml.cs
new file mode 100644
index 0000000..c5da943
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Windows/App.xaml.cs
@@ -0,0 +1,27 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace MauiApp1.WinUI
+{
+ ///
+ /// Provides application-specific behavior to supplement the default Application class.
+ ///
+ public partial class App : MauiWinUIApplication
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public App()
+ {
+ InitializeComponent();
+ }
+
+ ///
+ /// Creates the maui application.
+ ///
+ /// MauiApp.
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/Windows/Package.appxmanifest b/src/TestApps/TestMauiApplication/Platforms/Windows/Package.appxmanifest
new file mode 100644
index 0000000..361114d
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Windows/Package.appxmanifest
@@ -0,0 +1,46 @@
+
+
+
+
+
+
+
+
+ $placeholder$
+ User Name
+ $placeholder$.png
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/Windows/app.manifest b/src/TestApps/TestMauiApplication/Platforms/Windows/app.manifest
new file mode 100644
index 0000000..2da12c4
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/Windows/app.manifest
@@ -0,0 +1,15 @@
+
+
+
+
+
+
+
+ true/PM
+ PerMonitorV2, PerMonitor
+
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/iOS/AppDelegate.cs b/src/TestApps/TestMauiApplication/Platforms/iOS/AppDelegate.cs
new file mode 100644
index 0000000..574d40a
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/iOS/AppDelegate.cs
@@ -0,0 +1,22 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using Foundation;
+
+namespace MauiApp1
+{
+ ///
+ /// AppDelegate.
+ ///
+ [Register("AppDelegate")]
+ public class AppDelegate : MauiUIApplicationDelegate
+ {
+ ///
+ /// Creates the maui application.
+ ///
+ /// MauiApp.
+ protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp();
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/iOS/Info.plist b/src/TestApps/TestMauiApplication/Platforms/iOS/Info.plist
new file mode 100644
index 0000000..0004a4f
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/iOS/Info.plist
@@ -0,0 +1,32 @@
+
+
+
+
+ LSRequiresIPhoneOS
+
+ UIDeviceFamily
+
+ 1
+ 2
+
+ UIRequiredDeviceCapabilities
+
+ arm64
+
+ UISupportedInterfaceOrientations
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ UISupportedInterfaceOrientations~ipad
+
+ UIInterfaceOrientationPortrait
+ UIInterfaceOrientationPortraitUpsideDown
+ UIInterfaceOrientationLandscapeLeft
+ UIInterfaceOrientationLandscapeRight
+
+ XSAppIconAssets
+ Assets.xcassets/appicon.appiconset
+
+
diff --git a/src/TestApps/TestMauiApplication/Platforms/iOS/Program.cs b/src/TestApps/TestMauiApplication/Platforms/iOS/Program.cs
new file mode 100644
index 0000000..888d1fe
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/iOS/Program.cs
@@ -0,0 +1,26 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using UIKit;
+
+namespace MauiApp1
+{
+ ///
+ /// Program.
+ ///
+ public static class Program
+ {
+ ///
+ /// Defines the entry point of the application.
+ ///
+ /// The arguments.
+ private 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));
+ }
+ }
+}
diff --git a/src/TestApps/TestMauiApplication/Platforms/iOS/Resources/PrivacyInfo.xcprivacy b/src/TestApps/TestMauiApplication/Platforms/iOS/Resources/PrivacyInfo.xcprivacy
new file mode 100644
index 0000000..24ab3b4
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Platforms/iOS/Resources/PrivacyInfo.xcprivacy
@@ -0,0 +1,51 @@
+
+
+
+
+
+ NSPrivacyAccessedAPITypes
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryFileTimestamp
+ NSPrivacyAccessedAPITypeReasons
+
+ C617.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategorySystemBootTime
+ NSPrivacyAccessedAPITypeReasons
+
+ 35F9.1
+
+
+
+ NSPrivacyAccessedAPIType
+ NSPrivacyAccessedAPICategoryDiskSpace
+ NSPrivacyAccessedAPITypeReasons
+
+ E174.1
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/Properties/launchSettings.json b/src/TestApps/TestMauiApplication/Properties/launchSettings.json
new file mode 100644
index 0000000..edf8aad
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Properties/launchSettings.json
@@ -0,0 +1,8 @@
+{
+ "profiles": {
+ "Windows Machine": {
+ "commandName": "MsixPackage",
+ "nativeDebugging": false
+ }
+ }
+}
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Resources/AppIcon/appicon.svg b/src/TestApps/TestMauiApplication/Resources/AppIcon/appicon.svg
new file mode 100644
index 0000000..9d63b65
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/AppIcon/appicon.svg
@@ -0,0 +1,4 @@
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Resources/AppIcon/appiconfg.svg b/src/TestApps/TestMauiApplication/Resources/AppIcon/appiconfg.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/AppIcon/appiconfg.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Regular.ttf b/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Regular.ttf
new file mode 100644
index 0000000..2291fcb
Binary files /dev/null and b/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Regular.ttf differ
diff --git a/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Semibold.ttf b/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Semibold.ttf
new file mode 100644
index 0000000..3cbe2f8
Binary files /dev/null and b/src/TestApps/TestMauiApplication/Resources/Fonts/OpenSans-Semibold.ttf differ
diff --git a/src/TestApps/TestMauiApplication/Resources/Images/dotnet_bot.png b/src/TestApps/TestMauiApplication/Resources/Images/dotnet_bot.png
new file mode 100644
index 0000000..f93ce02
Binary files /dev/null and b/src/TestApps/TestMauiApplication/Resources/Images/dotnet_bot.png differ
diff --git a/src/TestApps/TestMauiApplication/Resources/Raw/AboutAssets.txt b/src/TestApps/TestMauiApplication/Resources/Raw/AboutAssets.txt
new file mode 100644
index 0000000..89dc758
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/Raw/AboutAssets.txt
@@ -0,0 +1,15 @@
+Any raw assets you want to be deployed with your application can be placed in
+this directory (and child directories). Deployment of the asset to your application
+is automatically handled by the following `MauiAsset` Build Action within your `.csproj`.
+
+
+
+These files will be deployed with your package and will be accessible using Essentials:
+
+ async Task LoadMauiAsset()
+ {
+ using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt");
+ using var reader = new StreamReader(stream);
+
+ var contents = reader.ReadToEnd();
+ }
diff --git a/src/TestApps/TestMauiApplication/Resources/Splash/splash.svg b/src/TestApps/TestMauiApplication/Resources/Splash/splash.svg
new file mode 100644
index 0000000..21dfb25
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/Splash/splash.svg
@@ -0,0 +1,8 @@
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Resources/Styles/Colors.xaml b/src/TestApps/TestMauiApplication/Resources/Styles/Colors.xaml
new file mode 100644
index 0000000..30307a5
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/Styles/Colors.xaml
@@ -0,0 +1,45 @@
+
+
+
+
+
+
+ #512BD4
+ #ac99ea
+ #242424
+ #DFD8F7
+ #9880e5
+ #2B0B98
+
+ White
+ Black
+ #D600AA
+ #190649
+ #1f1f1f
+
+ #E1E1E1
+ #C8C8C8
+ #ACACAC
+ #919191
+ #6E6E6E
+ #404040
+ #212121
+ #141414
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestMauiApplication/Resources/Styles/Styles.xaml b/src/TestApps/TestMauiApplication/Resources/Styles/Styles.xaml
new file mode 100644
index 0000000..6641e3a
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/Resources/Styles/Styles.xaml
@@ -0,0 +1,427 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestMauiApplication/TestMauiApplication.csproj b/src/TestApps/TestMauiApplication/TestMauiApplication.csproj
new file mode 100644
index 0000000..5738d67
--- /dev/null
+++ b/src/TestApps/TestMauiApplication/TestMauiApplication.csproj
@@ -0,0 +1,70 @@
+
+
+
+ net8.0-android;net8.0-ios;net8.0-maccatalyst
+ $(TargetFrameworks);net8.0-windows10.0.19041.0
+
+
+
+
+
+
+ Exe
+ MauiApp1
+ true
+ true
+ enable
+ enable
+
+
+ MauiApp1
+
+
+ com.companyname.mauiapp1
+
+
+ 1.0
+ 1
+
+ 11.0
+ 13.1
+ 21.0
+ 10.0.17763.0
+ 10.0.17763.0
+ 6.5
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/TestApps/TestWinFormsApplication/Form1.Designer.cs b/src/TestApps/TestWinFormsApplication/Form1.Designer.cs
new file mode 100644
index 0000000..addb20f
--- /dev/null
+++ b/src/TestApps/TestWinFormsApplication/Form1.Designer.cs
@@ -0,0 +1,40 @@
+namespace WinFormsApp1
+{
+ [ReactiveUI.SourceGenerators.IViewFor]
+ partial class Form1
+ {
+ ///
+ /// Required designer variable.
+ ///
+ private System.ComponentModel.IContainer components = null;
+
+ ///
+ /// Clean up any resources being used.
+ ///
+ /// true if managed resources should be disposed; otherwise, false.
+ protected override void Dispose(bool disposing)
+ {
+ if (disposing && (components != null))
+ {
+ components.Dispose();
+ }
+ base.Dispose(disposing);
+ }
+
+ #region Windows Form Designer generated code
+
+ ///
+ /// Required method for Designer support - do not modify
+ /// the contents of this method with the code editor.
+ ///
+ private void InitializeComponent()
+ {
+ this.components = new System.ComponentModel.Container();
+ this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
+ this.ClientSize = new System.Drawing.Size(800, 450);
+ this.Text = "Form1";
+ }
+
+ #endregion
+ }
+}
diff --git a/src/TestApps/TestWinFormsApplication/Form1.cs b/src/TestApps/TestWinFormsApplication/Form1.cs
new file mode 100644
index 0000000..7556c03
--- /dev/null
+++ b/src/TestApps/TestWinFormsApplication/Form1.cs
@@ -0,0 +1,23 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace WinFormsApp1
+{
+ ///
+ /// Form1.
+ ///
+ ///
+ public partial class Form1 : Form
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public Form1()
+ {
+ InitializeComponent();
+ ViewModel = new MainViewModel();
+ }
+ }
+}
diff --git a/src/TestApps/TestWinFormsApplication/MainViewModel.cs b/src/TestApps/TestWinFormsApplication/MainViewModel.cs
new file mode 100644
index 0000000..1278676
--- /dev/null
+++ b/src/TestApps/TestWinFormsApplication/MainViewModel.cs
@@ -0,0 +1,15 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using ReactiveUI;
+
+namespace WinFormsApp1
+{
+ ///
+ /// MainViewModel.
+ ///
+ ///
+ public class MainViewModel : ReactiveObject;
+}
diff --git a/src/TestApps/TestWinFormsApplication/Program.cs b/src/TestApps/TestWinFormsApplication/Program.cs
new file mode 100644
index 0000000..9a8977e
--- /dev/null
+++ b/src/TestApps/TestWinFormsApplication/Program.cs
@@ -0,0 +1,22 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+namespace WinFormsApp1
+{
+ internal static class Program
+ {
+ ///
+ /// The main entry point for the application.
+ ///
+ [STAThread]
+ private static void Main()
+ {
+ // To customize application configuration such as set high DPI settings or default font,
+ // see https://aka.ms/applicationconfiguration.
+ ApplicationConfiguration.Initialize();
+ Application.Run(new Form1());
+ }
+ }
+}
diff --git a/src/TestApps/TestWinFormsApplication/TestWinFormsApplication.csproj b/src/TestApps/TestWinFormsApplication/TestWinFormsApplication.csproj
new file mode 100644
index 0000000..b2389c1
--- /dev/null
+++ b/src/TestApps/TestWinFormsApplication/TestWinFormsApplication.csproj
@@ -0,0 +1,20 @@
+
+
+
+ WinExe
+ net8.0-windows
+ enable
+ true
+ enable
+ false
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/TestApps/TestWpfApplication/App.xaml b/src/TestApps/TestWpfApplication/App.xaml
new file mode 100644
index 0000000..2e70522
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/App.xaml
@@ -0,0 +1,9 @@
+
+
+
+
+
diff --git a/src/TestApps/TestWpfApplication/App.xaml.cs b/src/TestApps/TestWpfApplication/App.xaml.cs
new file mode 100644
index 0000000..11ed161
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/App.xaml.cs
@@ -0,0 +1,14 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using System.Windows;
+
+namespace WpfApp1
+{
+ ///
+ /// Interaction logic for App.xaml.
+ ///
+ public partial class App : Application;
+}
diff --git a/src/TestApps/TestWpfApplication/AssemblyInfo.cs b/src/TestApps/TestWpfApplication/AssemblyInfo.cs
new file mode 100644
index 0000000..65eca80
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/AssemblyInfo.cs
@@ -0,0 +1,8 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using System.Windows;
+
+[assembly: ThemeInfo(ResourceDictionaryLocation.None, ResourceDictionaryLocation.SourceAssembly)]
diff --git a/src/TestApps/TestWpfApplication/MainViewModel.cs b/src/TestApps/TestWpfApplication/MainViewModel.cs
new file mode 100644
index 0000000..2f1486e
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/MainViewModel.cs
@@ -0,0 +1,14 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using ReactiveUI;
+
+namespace WpfApp1
+{
+ ///
+ /// MainViewModel.
+ ///
+ public class MainViewModel : ReactiveObject;
+}
diff --git a/src/TestApps/TestWpfApplication/MainWindow.xaml b/src/TestApps/TestWpfApplication/MainWindow.xaml
new file mode 100644
index 0000000..cfada06
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/MainWindow.xaml
@@ -0,0 +1,12 @@
+
+
+
+
+
diff --git a/src/TestApps/TestWpfApplication/MainWindow.xaml.cs b/src/TestApps/TestWpfApplication/MainWindow.xaml.cs
new file mode 100644
index 0000000..4228731
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/MainWindow.xaml.cs
@@ -0,0 +1,25 @@
+// Copyright (c) 2024 .NET Foundation and Contributors. All rights reserved.
+// Licensed to the .NET Foundation under one or more agreements.
+// The .NET Foundation licenses this file to you under the MIT license.
+// See the LICENSE file in the project root for full license information.
+
+using System.Windows;
+
+namespace WpfApp1
+{
+ ///
+ /// Interaction logic for MainWindow.xaml.
+ ///
+ [ReactiveUI.SourceGenerators.IViewFor]
+ public partial class MainWindow : Window
+ {
+ ///
+ /// Initializes a new instance of the class.
+ ///
+ public MainWindow()
+ {
+ InitializeComponent();
+ DataContext = ViewModel = new MainViewModel();
+ }
+ }
+}
diff --git a/src/TestApps/TestWpfApplication/TestWpfApplication.csproj b/src/TestApps/TestWpfApplication/TestWpfApplication.csproj
new file mode 100644
index 0000000..eb2b8b6
--- /dev/null
+++ b/src/TestApps/TestWpfApplication/TestWpfApplication.csproj
@@ -0,0 +1,20 @@
+
+
+
+ WinExe
+ net8.0-windows10.0.19041.0
+ enable
+ enable
+ true
+ false
+
+
+
+
+
+
+
+
+
+
+