Remove .Common-project
Currently of no use
This commit is contained in:
parent
232231d20d
commit
b1d3ec73c9
31 changed files with 16020 additions and 109 deletions
|
|
@ -2,6 +2,7 @@ using Avalonia;
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.ApplicationLifetimes;
|
||||
using Avalonia.Markup.Xaml;
|
||||
using Avalonia.Metadata;
|
||||
|
||||
using InkForge.Desktop.ViewModels;
|
||||
|
||||
|
|
@ -14,6 +15,11 @@ using ReactiveUI;
|
|||
using Splat;
|
||||
using Splat.Microsoft.Extensions.DependencyInjection;
|
||||
|
||||
[assembly: XmlnsPrefix("app:InkForge", "inkforge")]
|
||||
[assembly: XmlnsDefinition("app:InkForge", "InkForge.Desktop.Controls")]
|
||||
[assembly: XmlnsDefinition("app:InkForge", "InkForge.Desktop.MarkupExtensions")]
|
||||
[assembly: XmlnsDefinition("app:InkForge", "InkForge.Desktop.Services")]
|
||||
|
||||
namespace InkForge.Desktop;
|
||||
|
||||
public partial class App : Application
|
||||
|
|
@ -54,6 +60,7 @@ public partial class App : Application
|
|||
|
||||
public override void OnFrameworkInitializationCompleted()
|
||||
{
|
||||
// This kills Avalonia VSCode Previewer.
|
||||
var viewModel = ActivatorUtilities.GetServiceOrCreateInstance<AppViewModel>(ServiceProvider);
|
||||
var view = ViewLocator.Current.ResolveView(viewModel)!;
|
||||
view.ViewModel = viewModel;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue