source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.WinUI.Shared/SKSwapChainPanel.cs [37:56]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private int loadUnloadCounter = 0; private void Initialize() { if (designMode) return; var display = DisplayInformation.GetForCurrentView(); OnDpiChanged(display); Loaded += OnLoaded; Unloaded += OnUnloaded; SizeChanged += OnSizeChanged; var binding = new Binding { Path = new PropertyPath(nameof(Visibility)), Source = this }; SetBinding(ProxyVisibilityProperty, binding); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - source/SkiaSharp.Views.Uno/SkiaSharp.Views.Uno.WinUI.Shared/SKXamlCanvas.cs [39:58]: - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - private int loadUnloadCounter = 0; private void Initialize() { if (designMode) return; var display = DisplayInformation.GetForCurrentView(); OnDpiChanged(display); Loaded += OnLoaded; Unloaded += OnUnloaded; SizeChanged += OnSizeChanged; var binding = new Binding { Path = new PropertyPath(nameof(Visibility)), Source = this }; SetBinding(ProxyVisibilityProperty, binding); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -