示例#1
0
        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);
        }
示例#2
0
        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);
        }