public static void PopupInit(IAppPopup popup)
        {
            var view = popup as UIElement;

            popup._popup       = new Popup();
            popup._popupId     = Guid.NewGuid();
            popup._popup.Child = view;
        }
Example #2
0
 public static void PopupShow(IAppPopup popup, Action changeAction = null)
 {
     App.AppViewModel.WindowsSizeChangedNotify.Add(new Tuple <Guid, Action <Size> >(popup._popupId, (rect) =>
     {
         popup.Width  = rect.Width;
         popup.Height = rect.Height;
         changeAction?.Invoke();
     }));
     popup.Width         = Window.Current.Bounds.Width;
     popup.Height        = Window.Current.Bounds.Height;
     popup._popup.IsOpen = true;
 }
 public static void PopupShow(IAppPopup popup, Action changeAction = null)
 {
     //App.AppViewModel.WindowsSizeChangedNotify.Add(new Tuple<Guid, Action<Size>>(popup._popupId, (rect) =>
     //{
     //    popup.Width = rect.Width;
     //    popup.Height = rect.Height;
     //    changeAction?.Invoke();
     //}));
     popup.Width  = Window.Current.Bounds.Width;
     popup.Height = Window.Current.Bounds.Height;
     //var view = popup as UIElement;
     //popup._popup.XamlRoot = xamlRoot;
     popup._popup.IsOpen = true;
 }
 public static void PopupShow(this IAppPopup popup)
 {
     popup.Width         = Window.Current.Bounds.Width;
     popup.Height        = Window.Current.Bounds.Height;
     popup._popup.IsOpen = true;
 }
 public static void PopupInit(this IAppPopup popup)
 {
     popup._popup       = new Popup();
     popup._popupId     = Guid.NewGuid();
     popup._popup.Child = popup as UIElement;
 }