locked
Close Screen RRS feed

  • Question

  • As it appears that a Screen in Sketchflow is defined as a usercontrol how would you go about closing the screen when a button click event is raised?

    Window.Close()  or Me.Close() is not available. 

    Neither is Application.Shutdown.

    I have a close button on my application screen and I want to end the application when it is clicked.


    Jeff Davis

    Wednesday, March 20, 2013 3:04 AM

All replies

  • Hello Jeff.

    For WPF Sketchflow you could do something like this...

    private void Button_Click(object sender, System.Windows.RoutedEventArgs e)
    {
    	Application.Current.Shutdown();
    }

    It will shut down the entire SketchFlow application.

    ~Christine

    Wednesday, March 20, 2013 3:27 AM
  • Thanks for the tip. That works great!


    Jeff Davis

    Wednesday, March 20, 2013 3:47 PM