diff --git a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml index 9330e3e258..9041648cef 100644 --- a/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml +++ b/src/MaterialDesignThemes.Wpf/Themes/MaterialDesignTheme.PopupBox.xaml @@ -95,14 +95,40 @@ - + + + + + + + + + + + + + + + + + + + + + + diff --git a/tests/MaterialDesignThemes.UITests/Samples/PopupBox/PopupBoxWithTemplateSelector.xaml b/tests/MaterialDesignThemes.UITests/Samples/PopupBox/PopupBoxWithTemplateSelector.xaml index 06a425f517..dea8caf1f6 100644 --- a/tests/MaterialDesignThemes.UITests/Samples/PopupBox/PopupBoxWithTemplateSelector.xaml +++ b/tests/MaterialDesignThemes.UITests/Samples/PopupBox/PopupBoxWithTemplateSelector.xaml @@ -8,11 +8,11 @@ d:DesignHeight="450" d:DesignWidth="800"> - + - + (); + var border = await popupBox.GetElement("ContentBorder"); await Assert.That(await border.GetBackgroundColor()).IsEqualTo(Colors.Blue); await button.LeftClick(); await Wait.For(async () => { - border = await popupBox.GetElement(); + border = await popupBox.GetElement("ContentBorder"); await Assert.That(await border.GetBackgroundColor()).IsEqualTo(Colors.Red); });