|
|
|
@ -29,22 +29,6 @@ namespace ControlCatalog |
|
|
|
}; |
|
|
|
|
|
|
|
DataContext = new MainWindowViewModel(_notificationArea); |
|
|
|
|
|
|
|
Dispatcher.UIThread.Post(() => |
|
|
|
{ |
|
|
|
new OpenFileDialog() |
|
|
|
{ |
|
|
|
Filters = new List<FileDialogFilter> |
|
|
|
{ |
|
|
|
new FileDialogFilter {Name = "All files", Extensions = {"*"}}, |
|
|
|
new FileDialogFilter {Name = "Image files", Extensions = {"jpg", "png", "gif"}} |
|
|
|
}, |
|
|
|
Directory = Environment.GetFolderPath(Environment.SpecialFolder.Desktop), |
|
|
|
Title = "My dialog", |
|
|
|
InitialFileName = "config.local.json", |
|
|
|
AllowMultiple = true |
|
|
|
}.ShowAsync(this); |
|
|
|
}); |
|
|
|
} |
|
|
|
|
|
|
|
private void InitializeComponent() |
|
|
|
|