diff --git a/.github/workflows/build_artifacts.yml b/.github/workflows/build_artifacts.yml index f3f794ffd8..dfe10e2120 100644 --- a/.github/workflows/build_artifacts.yml +++ b/.github/workflows/build_artifacts.yml @@ -72,3 +72,9 @@ jobs: with: name: DemoApp path: "src/MainDemo.Wpf/bin/${{ env.buildConfiguration }}" + + - name: Upload Demo3 App + uses: actions/upload-artifact@v4 + with: + name: Demo3App + path: "src/MaterialDesign3.Demo.Wpf/bin/${{ env.buildConfiguration }}" diff --git a/.github/workflows/pr_verification.yml b/.github/workflows/pr_verification.yml index 9b4731b22a..ce6ef63a06 100644 --- a/.github/workflows/pr_verification.yml +++ b/.github/workflows/pr_verification.yml @@ -29,4 +29,4 @@ jobs: contents: write steps: - - uses: fastify/github-action-merge-dependabot@v3.11.2 + - uses: fastify/github-action-merge-dependabot@v3.12.0 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8aa2cc6a30..88f6b7b479 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -135,9 +135,18 @@ jobs: name: DemoApp path: demo-app + - name: Download Demo3 App Artifacts + uses: actions/download-artifact@v8 + with: + name: Demo3App + path: demo3-app + - name: Zip Demo App run: zip -r DemoApp.zip demo-app/* + - name: Zip Demo3 App + run: zip -r Demo3App.zip demo3-app/* + - name: Download Release Notes uses: actions/download-artifact@v8 with: @@ -145,8 +154,8 @@ jobs: - name: Create Release run: | - # We can't use glob pattern because of this bug https://github.com/cli/cli/issues/5099 - gh release create v${{ inputs.milestone }} --repo '${{ github.repository }}' --draft --latest --title "${{ inputs.milestone }}" --notes-file ReleaseNotes.md (Get-Item '${{ github.workspace }}/nugets/*.nupkg') '${{ github.workspace }}/DemoApp.zip' + # We can't use glob pattern because of this bug https://github.com/cli/cli/issues/5099 + gh release create v${{ inputs.milestone }} --repo '${{ github.repository }}' --draft --latest --title "${{ inputs.milestone }}" --notes-file ReleaseNotes.md (Get-Item '${{ github.workspace }}/nugets/*.nupkg') '${{ github.workspace }}/DemoApp.zip' '${{ github.workspace }}/Demo3App.zip' update_wiki: needs: [create_release] diff --git a/README.md b/README.md index 414be45741..183c544cf3 100644 --- a/README.md +++ b/README.md @@ -83,6 +83,25 @@ Install-Package MaterialDesignThemes [...] > ``` +### XML Namespaces + +The toolkit exposes two XML namespaces for use in XAML: + +| Prefix | URI | Description | +|--------|-----|-------------| +| `materialDesign` | `http://materialdesigninxaml.net/winfx/xaml/themes` | Primary namespace for all public Material Design types, controls, and converters. | +| `materialDesignInternal` | `http://materialdesigninxaml.net/winfx/xaml/themes-internal` | Namespace for types in internal sub-namespaces (`MaterialDesignThemes.Wpf.Internal`, `MaterialDesignThemes.Wpf.Converters.Internal`, `MaterialDesignThemes.Wpf.Behaviors.Internal`). | + +> [!WARNING] +> Types exposed via the `materialDesignInternal` namespace are considered **internal implementation details** and are **not guaranteed to maintain backwards-compatibility between versions**. Use them at your own risk. + +To use the internal namespace in XAML: + +```xml + +``` + ## Building the source diff --git a/src/MahMaterialDragablzMashUp/MahViewModel.cs b/src/MahMaterialDragablzMashUp/MahViewModel.cs index 383829bd9c..b213e93da3 100644 --- a/src/MahMaterialDragablzMashUp/MahViewModel.cs +++ b/src/MahMaterialDragablzMashUp/MahViewModel.cs @@ -1,5 +1,6 @@ using System.Collections.ObjectModel; using System.ComponentModel; +using System.Windows.Data; namespace MahAppsDragablzDemo; diff --git a/src/MainDemo.Wpf/MenusAndToolBars.xaml b/src/MainDemo.Wpf/MenusAndToolBars.xaml index acd222f9e0..e07c19e356 100644 --- a/src/MainDemo.Wpf/MenusAndToolBars.xaml +++ b/src/MainDemo.Wpf/MenusAndToolBars.xaml @@ -378,6 +378,22 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/MaterialDesign3.Demo.Wpf/DynamicColorTool.xaml.cs b/src/MaterialDesign3.Demo.Wpf/DynamicColorTool.xaml.cs new file mode 100644 index 0000000000..685dc48086 --- /dev/null +++ b/src/MaterialDesign3.Demo.Wpf/DynamicColorTool.xaml.cs @@ -0,0 +1,12 @@ +using MaterialDesign3Demo.Domain; + +namespace MaterialDesign3Demo; + +public partial class DynamicColorTool +{ + public DynamicColorTool() + { + DataContext = new DynamicColorToolViewModel(); + InitializeComponent(); + } +} diff --git a/src/MaterialDesign3.Demo.Wpf/MaterialDesign3Demo.csproj b/src/MaterialDesign3.Demo.Wpf/MaterialDesign3Demo.csproj index 319b1a9bb7..30ed91490b 100644 --- a/src/MaterialDesign3.Demo.Wpf/MaterialDesign3Demo.csproj +++ b/src/MaterialDesign3.Demo.Wpf/MaterialDesign3Demo.csproj @@ -29,6 +29,7 @@ + @@ -62,4 +63,4 @@ Settings.Designer.cs - \ No newline at end of file + diff --git a/src/MaterialDesign3.Demo.Wpf/MenusAndToolBars.xaml b/src/MaterialDesign3.Demo.Wpf/MenusAndToolBars.xaml index f83183239c..4007081920 100644 --- a/src/MaterialDesign3.Demo.Wpf/MenusAndToolBars.xaml +++ b/src/MaterialDesign3.Demo.Wpf/MenusAndToolBars.xaml @@ -346,6 +346,24 @@ + + + +