Change title of DocumentViewerWindow
This commit is contained in:
@ -7,7 +7,7 @@
|
|||||||
xmlns:local="clr-namespace:Elwig.Windows"
|
xmlns:local="clr-namespace:Elwig.Windows"
|
||||||
mc:Ignorable="d"
|
mc:Ignorable="d"
|
||||||
Closed="OnClosed"
|
Closed="OnClosed"
|
||||||
Title="PDF Ansicht"
|
Title="PDF Ansicht - Elwig"
|
||||||
MinHeight="600" MinWidth="420" Height="750" Width="525">
|
MinHeight="600" MinWidth="420" Height="750" Width="525">
|
||||||
<Grid>
|
<Grid>
|
||||||
<wv2:WebView2 Name="WebView"/>
|
<wv2:WebView2 Name="WebView"/>
|
||||||
|
@ -9,7 +9,7 @@ namespace Elwig.Windows {
|
|||||||
|
|
||||||
public DocumentViewerWindow(string title, string path) {
|
public DocumentViewerWindow(string title, string path) {
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
Title = Title + " - " + title;
|
Title = $"{title} - {Title}";
|
||||||
WebView.Source = new($"file://{path}#view=FitH");
|
WebView.Source = new($"file://{path}#view=FitH");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user