diff --git a/FinalEngine.Editor.Desktop/App.xaml.cs b/FinalEngine.Editor.Desktop/App.xaml.cs index 61e0f2ad..969747c7 100644 --- a/FinalEngine.Editor.Desktop/App.xaml.cs +++ b/FinalEngine.Editor.Desktop/App.xaml.cs @@ -7,6 +7,7 @@ namespace FinalEngine.Editor.Desktop; using System.Diagnostics; using System.IO.Abstractions; using System.Windows; +using CommunityToolkit.Mvvm.Messaging; using FinalEngine.ECS; using FinalEngine.Editor.Common.Extensions; using FinalEngine.Editor.Common.Models.Scenes; @@ -108,6 +109,8 @@ private static void ConfigureServices(HostBuilderContext context, IServiceCollec builder.AddConsole().SetMinimumLevel(Debugger.IsAttached ? LogLevel.Debug : LogLevel.Information); }); + services.AddSingleton(WeakReferenceMessenger.Default); + services.AddTransient(); services.AddSingleton(); diff --git a/FinalEngine.Editor.Desktop/Styles/Controls/TextBoxStyle.xaml b/FinalEngine.Editor.Desktop/Styles/Controls/TextBoxStyle.xaml index 2453aa97..ae5f74dd 100644 --- a/FinalEngine.Editor.Desktop/Styles/Controls/TextBoxStyle.xaml +++ b/FinalEngine.Editor.Desktop/Styles/Controls/TextBoxStyle.xaml @@ -6,6 +6,7 @@