Here is a simple example of how to use the native SaveFileDialog.