コード例 #1
0
        private void Apply()
        {
            var statusBar = StatusBar;

            statusBar.ForegroundColor   = this.ForegroundColor;
            statusBar.BackgroundColor   = this.BackgroundColor;
            statusBar.BackgroundOpacity = this.BackgroundOpacity;
            _owner = this;
        }
コード例 #2
0
        private void Unapply()
        {
            if (_owner != this)
            {
                return;
            }
            _owner = null;

            var statusBar = StatusBar;

            statusBar.ForegroundColor   = null;
            statusBar.BackgroundColor   = null;
            statusBar.BackgroundOpacity = 1.0;
        }