-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Open
Labels
bugevaluation requiredItems is pending review or evaluation by the teamItems is pending review or evaluation by the team
Milestone
Description
Bug explanation
Bug detail
System.Windows.Data Error: 2 : Cannot find governing FrameworkElement or FrameworkContentElement for target element. BindingExpression:(no path); DataItem=null; target element is 'VisualBrush' (HashCode=25747420); target property is 'Visual' (type 'Visual')
Environment
.NET | MaterialDesign | |
---|---|---|
Version | 8.0 | 5.2.1 |
App.xaml
<Application
x:Class="MDTest.App"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:local="clr-namespace:MDTest"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
StartupUri="MainWindow.xaml">
<Application.Resources>
<ResourceDictionary>
<ResourceDictionary.MergedDictionaries>
<materialDesign:BundledTheme
BaseTheme="Light"
PrimaryColor="DeepPurple"
SecondaryColor="Lime" />
<ResourceDictionary Source="pack://application:,,,/MaterialDesignThemes.Wpf;component/Themes/MaterialDesign3.Defaults.xaml" />
</ResourceDictionary.MergedDictionaries>
</ResourceDictionary>
</Application.Resources>
</Application>
MainWindow.xaml
<Window
x:Class="MDTest.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:MDTest"
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
Title="MainWindow"
Width="800"
Height="450"
Style="{StaticResource MaterialDesignWindow}"
mc:Ignorable="d">
<materialDesign:DialogHost>
<Grid />
</materialDesign:DialogHost>
</Window>
Other details
Similar to bug #3228 happened in version 4.9.0
Version
5.2.1
Metadata
Metadata
Assignees
Labels
bugevaluation requiredItems is pending review or evaluation by the teamItems is pending review or evaluation by the team