Skip to content

Commit 3ee3858

Browse files
committed
Fixed issue where FlyoutAssist could not be used from XAML
1 parent 331ec1b commit 3ee3858

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

MahMaterialDragablzMashUp/MainWindow.xaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
xmlns:mahMaterialDragablzMashUp="clr-namespace:MahMaterialDragablzMashUp"
77
xmlns:dockablz="clr-namespace:Dragablz.Dockablz;assembly=Dragablz"
88
xmlns:wpf="http://materialdesigninxaml.net/winfx/xaml/themes"
9+
910
WindowTransitionsEnabled="False"
1011
TextElement.Foreground="{DynamicResource MaterialDesignBody}"
1112
Background="{DynamicResource MaterialDesignPaper}"
@@ -14,7 +15,7 @@
1415
Title="Material-MahApps-Dragablz Mash Up" Height="640" Width="800">
1516
<controls:MetroWindow.Flyouts>
1617
<controls:FlyoutsControl>
17-
<controls:Flyout x:Name="LeftFlyout" Position="Left" Header="Settings">
18+
<controls:Flyout x:Name="LeftFlyout" Position="Left" Header="Settings" wpf:FlyoutAssist.HeaderColorMode="Accent">
1819
<mahMaterialDragablzMashUp:FlyoutContent />
1920
</controls:Flyout>
2021
</controls:FlyoutsControl>

MaterialDesignThemes.MahApps/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using System.Runtime.CompilerServices;
44
using System.Runtime.InteropServices;
55
using System.Windows;
6+
using System.Windows.Markup;
67

78
// General Information about an assembly is controlled through the following
89
// set of attributes. Change these attribute values to modify the information
@@ -53,3 +54,4 @@
5354
// [assembly: AssemblyVersion("1.0.*")]
5455
[assembly: AssemblyVersion("0.0.6")]
5556
[assembly: AssemblyFileVersion("0.0.6")]
57+
[assembly: XmlnsDefinition("http://materialdesigninxaml.net/winfx/xaml/themes", "MaterialDesignThemes.MahApps")]

0 commit comments

Comments
 (0)