diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml
index 36ffa01414..6981f6f753 100644
--- a/.github/workflows/build_artifacts.yml
+++ b/.github/workflows/build_artifacts.yml
@@ -45,6 +45,9 @@ jobs:
MDIXColorsVersion: ${{ inputs.mdix-colors-version }}
MDIXMahAppsVersion: ${{ inputs.mdix-mahapps-version }}
+ - name: Generate Version File
+ run: echo ${{ inputs.mdix-version }} > src/MainDemo.Wpf/version.txt
+
- name: Test
timeout-minutes: 20
run: dotnet test ${{ env.solution }} --configuration ${{ inputs.build-configuration }} --no-build --blame-crash --logger GitHubActions
diff --git a/.github/workflows/get_versions.yml b/.github/workflows/get_versions.yml
index 40d2983838..7806292b31 100644
--- a/.github/workflows/get_versions.yml
+++ b/.github/workflows/get_versions.yml
@@ -2,7 +2,7 @@ name: Setup Versions
on:
workflow_call:
- inputs:
+ inputs:
is-full-release:
required: false
type: boolean
diff --git a/src/MahMaterialDragablzMashUp/MainWindow.xaml b/src/MahMaterialDragablzMashUp/MainWindow.xaml
index 7f88598751..c603e82ccb 100644
--- a/src/MahMaterialDragablzMashUp/MainWindow.xaml
+++ b/src/MahMaterialDragablzMashUp/MainWindow.xaml
@@ -36,6 +36,7 @@
+
diff --git a/src/MainDemo.Wpf/ColorZones.xaml b/src/MainDemo.Wpf/ColorZones.xaml
index d28193ae00..21f82378c6 100644
--- a/src/MainDemo.Wpf/ColorZones.xaml
+++ b/src/MainDemo.Wpf/ColorZones.xaml
@@ -38,6 +38,7 @@
+
diff --git a/src/MainDemo.Wpf/MainWindow.xaml b/src/MainDemo.Wpf/MainWindow.xaml
index e149ebd330..b9831ad8c1 100644
--- a/src/MainDemo.Wpf/MainWindow.xaml
+++ b/src/MainDemo.Wpf/MainWindow.xaml
@@ -185,6 +185,11 @@
+
+
+
+
+
diff --git a/src/MainDemo.Wpf/MainWindow.xaml.cs b/src/MainDemo.Wpf/MainWindow.xaml.cs
index 411e89c838..c7a3cb3ab7 100644
--- a/src/MainDemo.Wpf/MainWindow.xaml.cs
+++ b/src/MainDemo.Wpf/MainWindow.xaml.cs
@@ -12,10 +12,12 @@ public partial class MainWindow
public MainWindow()
{
InitializeComponent();
+ LoadVersion();
+
Task.Factory.StartNew(() => Thread.Sleep(2500)).ContinueWith(t =>
{
- //note you can use the message queue from any thread, but just for the demo here we
+ //note you can use the message queue from any thread, but just for the demo here we
//need to get the message queue from the snackbar, so need to be on the dispatcher
MainSnackbar.MessageQueue?.Enqueue("Welcome to Material Design In XAML Toolkit");
}, TaskScheduler.FromCurrentSynchronizationContext());
@@ -114,4 +116,24 @@ private static void ModifyTheme(bool isDarkTheme)
private void OnSelectedItemChanged(object sender, DependencyPropertyChangedEventArgs e)
=> MainScrollViewer.ScrollToHome();
+ private void LoadVersion()
+ {
+ try
+ {
+ string versionFilePath = Path.Combine(Directory.GetCurrentDirectory(), "version.txt");
+ if (File.Exists(versionFilePath))
+ {
+ string version = File.ReadAllText(versionFilePath).Trim();
+ VersionText.Text = $"Version: {version}";
+ }
+ else
+ {
+ VersionText.Text = "Version file not found";
+ }
+ }
+ catch (Exception ex)
+ {
+ VersionText.Text = $"Error reading version: {ex.Message}";
+ }
+ }
}
diff --git a/src/MainDemo.Wpf/MaterialDesignDemo.csproj b/src/MainDemo.Wpf/MaterialDesignDemo.csproj
index bcd9ee7643..c461bb71dc 100644
--- a/src/MainDemo.Wpf/MaterialDesignDemo.csproj
+++ b/src/MainDemo.Wpf/MaterialDesignDemo.csproj
@@ -49,4 +49,4 @@
-
\ No newline at end of file
+
diff --git a/yarn.lock b/yarn.lock
new file mode 100644
index 0000000000..fb57ccd13a
--- /dev/null
+++ b/yarn.lock
@@ -0,0 +1,4 @@
+# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
+# yarn lockfile v1
+
+