Updated packages. Migrated Avalonia UI to 12.0.
This commit is contained in:
@@ -24,7 +24,9 @@ public abstract class PlatformServiceLocator<T> : IPlatformServiceLocator<T>
|
||||
if (singleViewPlatform.MainView == null)
|
||||
return default;
|
||||
|
||||
IRenderRoot? visualRoot = singleViewPlatform.MainView.GetVisualRoot();
|
||||
//IRenderRoot? visualRoot = singleViewPlatform.MainView.GetVisualRoot();
|
||||
|
||||
Visual? visualRoot = singleViewPlatform.MainView?.GetPresentationSource()?.RootVisual;
|
||||
|
||||
if (visualRoot is TopLevel topLevel)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user