mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
General cleanup and refactor.
This commit is contained in:
@@ -30,14 +30,14 @@
|
||||
// Copyright © 2011-2022 Natalia Portillo
|
||||
// ****************************************************************************/
|
||||
|
||||
namespace Aaru.Gui;
|
||||
|
||||
using System;
|
||||
using Aaru.Gui.ViewModels;
|
||||
using Avalonia.Controls;
|
||||
using Avalonia.Controls.Templates;
|
||||
using JetBrains.Annotations;
|
||||
|
||||
namespace Aaru.Gui;
|
||||
|
||||
public sealed class ViewLocator : IDataTemplate
|
||||
{
|
||||
public bool SupportsRecycling => false;
|
||||
@@ -53,9 +53,7 @@ public sealed class ViewLocator : IDataTemplate
|
||||
var type = Type.GetType(name);
|
||||
|
||||
if(type != null)
|
||||
{
|
||||
return (Control)Activator.CreateInstance(type);
|
||||
}
|
||||
|
||||
return new TextBlock
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user