Exemplo n.º 1
0
        private void ShowPopupCommandOnExecuting(object sender, CancelCommandEventArgs args)
        {
            var shell = ApexBroker.GetShell();

            ViewModel.PopupResult =
                shell.ShowPopup(new SimplePopup());
        }
Exemplo n.º 2
0
 private void detector7_Click(object sender, RoutedEventArgs e)
 {
     TscData t = Utils.Utils.GetTscDataByApplicationCurrentProperties();
     //pevent(this, 1);
     Utils.Utils.SetSelectedDetector(7);
     ApexBroker.GetShell().ClosePopup(this, true);
 }
Exemplo n.º 3
0
        private void ShowFadePopupCommandOnExecuting(object sender, CancelCommandEventArgs args)
        {
            var shell = ApexBroker.GetShell();

            shell.PopupAnimationHelper = new FadeInOutPopupAnimationHelper();
            shell.ShowPopup(new CustomisedPopup());
        }
Exemplo n.º 4
0
 private void button_Cancel_Click(object sender, RoutedEventArgs e)
 {
     ApexBroker.GetShell().ClosePopup(this, false);
 }
Exemplo n.º 5
0
 private void Close_Click(object sender, RoutedEventArgs e)
 {
     ApexBroker.GetShell().ClosePopup(this, null);
 }
Exemplo n.º 6
0
 /// <summary>
 /// Handles the Executed event of the ShowPopupCommand.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="args">The <see cref="Apex.MVVM.CommandEventArgs"/> instance containing the event data.</param>
 void ShowPopupCommand_Executed(object sender, CommandEventArgs args)
 {
     //  Get the shell and show the example popup.
     ApexBroker.GetShell().ShowPopup(new ExamplePopup(), (result) => { });
 }
Exemplo n.º 7
0
        private void Button_Click(object sender, RoutedEventArgs e)
        {
            var appHost = ApexBroker.GetShell();

            appHost.ShowPopup(new SimplePopupView(), o => {});
        }