Skip to content

Commit 7659eec

Browse files
committed
also showing version in main window
1 parent 3e81ad4 commit 7659eec

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

XenkoShaderExplorer/MainWindow.xaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<Border Grid.Row="0">
2121
<StackPanel Margin="8">
2222
<StackPanel Orientation="Horizontal">
23-
<TextBlock Text="Shader Explorer for Xenko" Foreground="White" Margin="0,0,0,4"
23+
<TextBlock Name="Header" Text="Shader Explorer for Xenko" Foreground="White" Margin="0,0,0,4"
2424
FontSize="18" FontFamily="Segoe UI Light"/>
2525
<TextBox Text="{Binding Path, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=1000}"
2626
ToolTip="Enter the path to a Xenko installation"

XenkoShaderExplorer/MainWindow.xaml.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using AurelienRibon.Ui.SyntaxHighlightBox;
22
using System.IO;
3+
using System.Reflection;
34
using System.Windows;
45

56
namespace XenkoShaderExplorer
@@ -12,7 +13,7 @@ public MainWindow()
1213
{
1314
InitializeComponent();
1415
DataContext = ViewModel;
15-
16+
this.Header.Text = "Shader Explorer for Xenko " + Assembly.GetEntryAssembly().GetName().Version;
1617
codeView.CurrentHighlighter = HighlighterManager.Instance.Highlighters["XKSL"];
1718
}
1819

0 commit comments

Comments
 (0)