|
|
@@ -2,9 +2,7 @@
|
|
|
// Licensed under the MIT license. See licence.md file in the project root for full license information.
|
|
|
|
|
|
using System;
|
|
|
-using System.Reflection;
|
|
|
using System.Reactive.Linq;
|
|
|
-using Avalonia;
|
|
|
using Avalonia.VisualTree;
|
|
|
using Avalonia.Controls;
|
|
|
using ReactiveUI;
|
|
|
@@ -21,7 +19,7 @@ namespace Avalonia.ReactiveUI
|
|
|
/// </summary>
|
|
|
public int GetAffinityForView(Type view)
|
|
|
{
|
|
|
- return typeof(IVisual).GetTypeInfo().IsAssignableFrom(view.GetTypeInfo()) ? 10 : 0;
|
|
|
+ return typeof(IVisual).IsAssignableFrom(view) ? 10 : 0;
|
|
|
}
|
|
|
|
|
|
/// <summary>
|