From bd833b4ccb1a504a8f9023b9e283ba55faaba630 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wies=C5=82aw=20S=CC=8Colte=CC=81s?= Date: Sun, 7 Aug 2022 12:10:51 +0200 Subject: [PATCH] Update ViewLocator.cs --- src/TraceGui.Base/ViewLocator.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/TraceGui.Base/ViewLocator.cs b/src/TraceGui.Base/ViewLocator.cs index a7dfba5..ede63b5 100644 --- a/src/TraceGui.Base/ViewLocator.cs +++ b/src/TraceGui.Base/ViewLocator.cs @@ -1,4 +1,5 @@ using System; +using System.ComponentModel; using Avalonia.Controls; using Avalonia.Controls.Templates; using TraceGui.ViewModels; @@ -24,6 +25,6 @@ public class ViewLocator : IDataTemplate public bool Match(object? data) { - return data is ViewModelBase; + return data is INotifyPropertyChanged; } }