2 references to GetOptionalPlatformWindow
Microsoft.Maui (2)
ImageSources\ImageSourceExtensions.cs (1)
52 var scale = mauiContext.GetOptionalPlatformWindow()?.GetDisplayDensity() ?? 1.0f;
Platform\ImageSourcePartLoader.cs (1)
75 var scale = handler.MauiContext?.GetOptionalPlatformWindow()?.GetDisplayDensity() ?? 1.0f;