private void btnView_Clicked(object sender, RoutedEventArgs e) { ViewAdditionalFileWindow viewAdditionalFileWindow = new ViewAdditionalFileWindow(); viewAdditionalFileWindow.AdditionalFile = this.AssociatedFile; viewAdditionalFileWindow.ShowDialog(Window.GetWindow(this)); }