Change title of DocumentViewerWindow

This commit is contained in:
2023-04-16 00:26:21 +02:00
parent 9e6726ba05
commit e62126a83e
2 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@
xmlns:local="clr-namespace:Elwig.Windows"
mc:Ignorable="d"
Closed="OnClosed"
Title="PDF Ansicht"
Title="PDF Ansicht - Elwig"
MinHeight="600" MinWidth="420" Height="750" Width="525">
<Grid>
<wv2:WebView2 Name="WebView"/>

View File

@ -9,7 +9,7 @@ namespace Elwig.Windows {
public DocumentViewerWindow(string title, string path) {
InitializeComponent();
Title = Title + " - " + title;
Title = $"{title} - {Title}";
WebView.Source = new($"file://{path}#view=FitH");
}