Esempio n. 1
0
 private void RemovePopup()
 {
     if (_Popup != null)
     {
         _Popup.IsOpen = false;
         _Popup.Child  = null;
         _CustomDialog = null;
         _Popup        = null;
     }
 }
Esempio n. 2
0
        private void CreateLoading(string text)
        {
            if (_Popup != null)
            {
                _Popup.IsOpen = false;
                _Popup.Child  = null;
                _CustomDialog = null;
                _Popup        = null;
            }

            _Popup        = new Popup();
            _CustomDialog = (_Configuration.CustomLoadingDialog != null) ? _Configuration.CustomLoadingDialog(text) : new CustomLoading();
            _Popup.Child  = (UIElement)_CustomDialog;
            ApplicationView window = ApplicationView.GetForCurrentView();

            _Popup.Width              = window.VisibleBounds.Width;
            _Popup.Height             = window.VisibleBounds.Height;
            _CustomDialog.PopupWidth  = window.VisibleBounds.Width;
            _CustomDialog.PopupHeight = window.VisibleBounds.Height;
            _CustomDialog.Message     = text;

            _Popup.IsOpen = true;
        }
Esempio n. 3
0
        private void CreateProgress(string text, float value)
        {
            if (_Popup != null)
            {
                _Popup.IsOpen = false;
                _Popup.Child  = null;
                _CustomDialog = null;
                _Popup        = null;
            }

            _Popup        = new Popup();
            _CustomDialog = new CustomProgress();
            _Popup.Child  = (UIElement)_CustomDialog;
            var window = ApplicationView.GetForCurrentView();

            _Popup.Width              = window.VisibleBounds.Width;
            _Popup.Height             = window.VisibleBounds.Height;
            _CustomDialog.PopupWidth  = window.VisibleBounds.Width;
            _CustomDialog.PopupHeight = window.VisibleBounds.Height;
            _CustomDialog.Message     = text;
            _CustomDialog.Progress    = value;

            _Popup.IsOpen = true;
        }