Added AppWindow
This commit is contained in:
@@ -184,4 +184,17 @@ public static class IHostBuilderExtension
|
|||||||
|
|
||||||
return builder;
|
return builder;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static IHostBuilder UseContentRoot(this IHostBuilder hostBuilder,
|
||||||
|
string contentRoot,
|
||||||
|
bool createDirectory)
|
||||||
|
{
|
||||||
|
if (createDirectory)
|
||||||
|
{
|
||||||
|
Directory.CreateDirectory(contentRoot);
|
||||||
|
}
|
||||||
|
|
||||||
|
hostBuilder.UseContentRoot(contentRoot);
|
||||||
|
return hostBuilder;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -1,19 +0,0 @@
|
|||||||
using Microsoft.Extensions.Hosting;
|
|
||||||
|
|
||||||
namespace Toolkit.Foundation;
|
|
||||||
|
|
||||||
public static class IHostBuilderExtensions
|
|
||||||
{
|
|
||||||
public static IHostBuilder UseContentRoot(this IHostBuilder hostBuilder,
|
|
||||||
string contentRoot,
|
|
||||||
bool createDirectory)
|
|
||||||
{
|
|
||||||
if (createDirectory)
|
|
||||||
{
|
|
||||||
Directory.CreateDirectory(contentRoot);
|
|
||||||
}
|
|
||||||
|
|
||||||
hostBuilder.UseContentRoot(contentRoot);
|
|
||||||
return hostBuilder;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
namespace Toolkit.UI.Controls.Avalonia;
|
||||||
|
|
||||||
|
public class AppWindow : FluentAvalonia.UI.Windowing.AppWindow
|
||||||
|
{
|
||||||
|
protected override Type StyleKeyOverride =>
|
||||||
|
typeof(FluentAvalonia.UI.Windowing.AppWindow);
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user