Nikita Tsukanov 6 năm trước cách đây
mục cha
commit
3e071fc366

+ 1 - 1
samples/ControlCatalog/App.xaml.cs

@@ -15,7 +15,7 @@ namespace ControlCatalog
         {
         {
             if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime)
             if (ApplicationLifetime is IClassicDesktopStyleApplicationLifetime desktopLifetime)
                 desktopLifetime.MainWindow = new MainWindow();
                 desktopLifetime.MainWindow = new MainWindow();
-            else if (ApplicationLifetime is ISingleViewLifetime singleViewLifetime)
+            else if (ApplicationLifetime is ISingleViewApplicationLifetime singleViewLifetime)
                 singleViewLifetime.MainView = new MainView();
                 singleViewLifetime.MainView = new MainView();
             
             
             base.OnFrameworkInitializationCompleted();
             base.OnFrameworkInitializationCompleted();

+ 1 - 1
src/Avalonia.Controls/Application.cs

@@ -156,7 +156,7 @@ namespace Avalonia
         /// Application lifetime, use it for things like setting the main window and exiting the app from code
         /// Application lifetime, use it for things like setting the main window and exiting the app from code
         /// Currently supported lifetimes are:
         /// Currently supported lifetimes are:
         /// - <see cref="IClassicDesktopStyleApplicationLifetime"/>
         /// - <see cref="IClassicDesktopStyleApplicationLifetime"/>
-        /// - <see cref="ISingleViewLifetime"/>
+        /// - <see cref="ISingleViewApplicationLifetime"/>
         /// - <see cref="IControlledApplicationLifetime"/> 
         /// - <see cref="IControlledApplicationLifetime"/> 
         /// </summary>
         /// </summary>
         public IApplicationLifetime ApplicationLifetime { get; set; }
         public IApplicationLifetime ApplicationLifetime { get; set; }

+ 1 - 1
src/Avalonia.Controls/ApplicationLifetimes/ISingleViewLifetime.cs → src/Avalonia.Controls/ApplicationLifetimes/ISingleViewApplicationLifetime.cs

@@ -1,6 +1,6 @@
 namespace Avalonia.Controls.ApplicationLifetimes
 namespace Avalonia.Controls.ApplicationLifetimes
 {
 {
-    public interface ISingleViewLifetime : IApplicationLifetime
+    public interface ISingleViewApplicationLifetime : IApplicationLifetime
     {
     {
         Control MainView { get; set; }
         Control MainView { get; set; }
     }
     }

+ 1 - 1
src/Linux/Avalonia.LinuxFramebuffer/LinuxFramebufferPlatform.cs

@@ -49,7 +49,7 @@ namespace Avalonia.LinuxFramebuffer
         }
         }
     }
     }
 
 
-    class LinuxFramebufferLifetime : IControlledApplicationLifetime, ISingleViewLifetime
+    class LinuxFramebufferLifetime : IControlledApplicationLifetime, ISingleViewApplicationLifetime
     {
     {
         private readonly LinuxFramebuffer _fb;
         private readonly LinuxFramebuffer _fb;
         private TopLevel _topLevel;
         private TopLevel _topLevel;