The approach to take is to first open the SaveFileDialog as a result of some user interaction like a Button click.
stackoverflow.com