Ejemplo n.º 1
0
 public void AddDialog(DialogReference dialog)
 {
     //dialogContainer.Add(dialog.Dialog);
     CurrentUIScreen.Add(dialog.Dialog);
     Dialogs.Add(dialog);
     AdjustModal();
 }
Ejemplo n.º 2
0
        public void AddDialog(DialogReference dialog)
        {
            //dialogContainer.Add(dialog.Dialog);
            CurrentUIScreen.Add(dialog.Dialog);
            if (dialog.Controller != null)
            {
                dialog.Dialog.Controller = dialog.Controller;
            }
            if (dialog.LogicalParent != null)
            {
                dialog.Dialog.LogicalParent = dialog.LogicalParent;
            }

            Dialogs.Add(dialog);
            AdjustModal();
        }
Ejemplo n.º 3
0
        private void AdjustModal()
        {
            var topMostModal = Dialogs.LastOrDefault(x => x.Modal);

            /** Remove modal blocker **/
            if (ModalBlocker.Parent != null)
            {
                ModalBlocker.Parent.Remove(ModalBlocker);
            }

            if (topMostModal == null)
            {
            }
            else
            {
                CurrentUIScreen.AddBefore(ModalBlocker, topMostModal.Dialog);
            }
        }