Skip to content

Commit

Permalink
also showing version in main window
Browse files Browse the repository at this point in the history
  • Loading branch information
tebjan committed Aug 18, 2018
1 parent 3e81ad4 commit 7659eec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion XenkoShaderExplorer/MainWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<Border Grid.Row="0">
<StackPanel Margin="8">
<StackPanel Orientation="Horizontal">
<TextBlock Text="Shader Explorer for Xenko" Foreground="White" Margin="0,0,0,4"
<TextBlock Name="Header" Text="Shader Explorer for Xenko" Foreground="White" Margin="0,0,0,4"
FontSize="18" FontFamily="Segoe UI Light"/>
<TextBox Text="{Binding Path, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged, Delay=1000}"
ToolTip="Enter the path to a Xenko installation"
Expand Down
3 changes: 2 additions & 1 deletion XenkoShaderExplorer/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using AurelienRibon.Ui.SyntaxHighlightBox;
using System.IO;
using System.Reflection;
using System.Windows;

namespace XenkoShaderExplorer
Expand All @@ -12,7 +13,7 @@ public MainWindow()
{
InitializeComponent();
DataContext = ViewModel;

this.Header.Text = "Shader Explorer for Xenko " + Assembly.GetEntryAssembly().GetName().Version;
codeView.CurrentHighlighter = HighlighterManager.Instance.Highlighters["XKSL"];
}

Expand Down

0 comments on commit 7659eec

Please sign in to comment.