Exemplo n.º 1
0
        private void CortanaOverlay(String title, String message, String confirmation)
        {
            string             left, right;
            CortanaOverlayData data = new CortanaOverlayData();

            data.Title        = title;
            data.Message      = message;
            data.Confirmation = confirmation;
            if (!noting)
            {
                left  = "Ok";
                right = "Cancel";
            }
            else
            {
                left  = "Yes";
                right = "No";
            }

            CustomMessageBox CortanaOverlay = new CustomMessageBox()
            {
                ContentTemplate    = (DataTemplate)this.Resources["CortanaOverlay"],
                LeftButtonContent  = left,
                RightButtonContent = right,
                IsFullScreen       = false,
                Content            = data
            };

            CortanaOverlay.Dismissing += CortanaOverlay_Dismissing;
            Speech(title + "..." + message + "..." + confirmation);
            CortanaOverlay.Show();
        }
Exemplo n.º 2
0
        private void CortanaOverlay(String title, String message, String confirmation)
        {
            string left, right;
            CortanaOverlayData data = new CortanaOverlayData();
            data.Title = title;
            data.Message = message;
            data.Confirmation = confirmation;
            if (!noting)
            {
                left = "Ok";
                right = "Cancel";
            }
            else
            {
                left = "Yes";
                right = "No";
            }

            CustomMessageBox CortanaOverlay = new CustomMessageBox()
            {
                ContentTemplate = (DataTemplate)this.Resources["CortanaOverlay"],
                LeftButtonContent = left,
                RightButtonContent = right,
                IsFullScreen = false,
                Content = data
            };

            CortanaOverlay.Dismissing += CortanaOverlay_Dismissing;
            Speech(title + "..." + message + "..." + confirmation);
            CortanaOverlay.Show();
        }