private void MeasureInsets(PopupWindow sender, WindowInsets insets) { Insets = new Thickness( ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetLeft), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetTop), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetRight), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetBottom) ); InsetsChanged?.Invoke(Insets); }
private void MeasureInsets(PopupWindow sender, WindowInsets insets) { #pragma warning disable 618 Insets = new Thickness( ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetLeft), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetTop), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetRight), ViewHelper.PhysicalToLogicalPixels(insets.SystemWindowInsetBottom) ); #pragma warning restore 618 InsetsChanged?.Invoke(Insets); }