Exemple #1
0
 public static void HideDesignOverlay()
 {
     if (designOverlay != null)
     {
         designOverlay.OverlayVisible = false;
         designOverlay.Hide();
         designOverlay.Close();
         designOverlay = null;
     }
 }
Exemple #2
0
        public static void ShowDesignOverlay()
        {
            if (designOverlay == null)
            {
                designOverlay = CreateDesignOverlay();
            }

            designOverlay.Show();
            designOverlay.OverlayVisible = true;
        }
Exemple #3
0
        private static TimelineImageNoticeOverlay CreateDesignOverlay()
        {
            var overlay = new TimelineImageNoticeOverlay()
            {
                DummyMode = true,
                Model     = TimelineImageNoticeModel.DummyNotice,
            };

            overlay.WindowStartupLocation = overlay.Model.StartupLocation;

            // これがないとTextBoxに半角が入力できない
            ElementHost.EnableModelessKeyboardInterop(overlay);

            return(overlay);
        }