Skip to content

Commit 3e81ad4

Browse files
committed
showing version in info window
1 parent c8cdf27 commit 3e81ad4

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

XenkoShaderExplorer/InfoWindow.xaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,11 @@
99
Foreground="White"
1010
Title="Info" Height="200" Width="300"
1111
ResizeMode="NoResize">
12-
1312
<Border Background="#FF434343" Padding="12">
1413
<Grid>
1514
<StackPanel>
1615

17-
<TextBlock Text="Shader Explorer for Xenko"
16+
<TextBlock Name="InfoHeaderBlock" Text="{Binding InfoHeader}"
1817
FontWeight="SemiBold"/>
1918

2019
<TextBlock Text="This program uses open source software:" Margin="0,12,0,4"/>

XenkoShaderExplorer/InfoWindow.xaml.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System.Windows;
1+
using System.Reflection;
2+
using System.Windows;
23

34
namespace XenkoShaderExplorer
45
{
@@ -7,6 +8,7 @@ public partial class InfoWindow : Window
78
public InfoWindow()
89
{
910
InitializeComponent();
11+
InfoHeaderBlock.Text = "Shader Explorer for Xenko " + Assembly.GetEntryAssembly().GetName().Version;
1012
}
1113

1214
private void OnCloseButtonClick(object sender, RoutedEventArgs e) => Close();

0 commit comments

Comments
 (0)