示例#1
0
        private void load(GameHost host)
        {
            window = host.Window;

            if (window == null)
            {
                return;
            }

            safeAreaPadding.ValueChanged += e => updatePadding(e.NewValue);
            safeAreaPadding.BindTo(window.SafeAreaPadding);
            updatePadding(window.SafeAreaPadding.Value);
        }