Silverlight 5 – Default file name in SaveFileDialog

25 May

A long requested feature coming with Silverlight 5 is the opportunity to set the default file name in the SaveFileDialog. In previous versions of Silverlight this missing feature have resulted in some bad user experiences, but finally it is here and it is easy to use.

To demonstrate it I have create a demo writing a text file to the computer allowing the user to set the default file name from the very beginning.


When the user clicks the Save-button the SaveFileDialog is shown and the user can save the file locally on the computer. The text from the TextBox is parsed to the SaveFileDialog as the default file name.


In the code I have set the Filter, the DefaultExt and the DefaultFileName on my SaveFileDialog instance. This provide an optimal experience for my user when saving files.


You can download the demo here.

by xamlgeek 

2 Responses to “Silverlight 5 – Default file name in SaveFileDialog”


  1. Silverlight 5 beta « xamlgeek - May 25, 2011

    […] Default file name in SaveFileDialog […]

  2. [Silverlight] Ce qu’il faut retenir de la semaine du 23/05/2011 | Aymeric's blog - May 31, 2011

    […] Mettre un nom par défaut au SaveFileDialog par XAMLGeek […]

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: