Advertisement
Guest User

Untitled

a guest
Aug 31st, 2016
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. var openFileDialog = new OpenFileDialog
  2. {
  3.      InitialFileName = "test",
  4.      Title = "Title",
  5.      Filters = new System.Collections.Generic.List<FileDialogFilter>()
  6.      {
  7.           new FileDialogFilter()
  8.           {
  9.                Extensions = new System.Collections.Generic.List<string>() {".mp3", ".avi"}
  10.           }
  11.      }
  12. };
  13. _pathButton.Content = openFileDialog.ShowAsync().Result[0];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement