Remove generics on ADTVM.. doesnt seem to work with the view locator
MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabHelper.cs
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabHelper.cs
@@ -4,9 +4,9 @@ namespace WalletWasabi.Gui.Controls.WalletExplorer
{
public static class AdvancedDetailTabHelper
{
- public static AdvancedDetailTabViewModel<T> GenerateAdvancedDetailTab<T>(T targetVM) where T : ViewModelBase
+ public static AdvancedDetailTabViewModel GenerateAdvancedDetailTab<T>(T targetVM) where T : ViewModelBase
{
- return null;
+ return new AdvancedDetailTabViewModel("Dummy");
}
}
}
\ No newline at end of file

RENAME
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTab.xaml
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabView.xaml
xmlns:converters="clr-namespace:WalletWasabi.Gui.Converters;assembly=WalletWasabi.Gui"
xmlns:i="clr-namespace:Avalonia.Xaml.Interactivity;assembly=Avalonia.Xaml.Interactivity"
xmlns:behaviors="clr-namespace:WalletWasabi.Gui.Behaviors;assembly=WalletWasabi.Gui"
- x:Class="WalletWasabi.Gui.Controls.WalletExplorer.AdvancedDetailTab">
+ x:Class="WalletWasabi.Gui.Controls.WalletExplorer.AdvancedDetailTabView">
<UserControl.Resources>
<converters:LurkingWifeModeStringConverter x:Key="LurkingWifeModeStringConverter" />
</UserControl.Resources>

RENAME
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTab.xaml.cs
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabView.xaml.cs
@@ -7,9 +7,9 @@ using System.Reactive.Linq;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
- public class AdvancedDetailTab : UserControl
+ public class AdvancedDetailTabView : UserControl
{
- public AdvancedDetailTab()
+ public AdvancedDetailTabView()
{
InitializeComponent();
}

MODIFY
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabViewModel.cs
WalletWasabi.Gui/Controls/WalletExplorer/AdvancedDetailTabViewModel.cs
@@ -5,17 +5,14 @@ using WalletWasabi.Gui.ViewModels;
namespace WalletWasabi.Gui.Controls.WalletExplorer
{
- public class AdvancedDetailTabViewModel<TViewModel> : WasabiDocumentTabViewModel
- where TViewModel : ViewModelBase
+ public class AdvancedDetailTabViewModel : WasabiDocumentTabViewModel
{
private CompositeDisposable Disposables { get; set; }
private Global Global { get; }
- private TViewModel TargetVM { get; }
- public AdvancedDetailTabViewModel(string Title, TViewModel targetVM) : base(Title)
+ public AdvancedDetailTabViewModel(string Title) : base(Title)
{
Global = Locator.Current.GetService<Global>();
- TargetVM = targetVM;
}
public override void OnOpen()

Remove generics on ADTVM.. doesnt seem to work with the view locator