From 97c3b220987c24f18981fde006ec1f5b86f27a6e Mon Sep 17 00:00:00 2001 From: Justin Bozalina Date: Fri, 2 Nov 2018 19:57:26 -0400 Subject: [PATCH] Update ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs Checking if the mouse is outside the bounds of the DropDownButton when the PreviewMouseDownOutsideCapturedElement event tunnels through it to prevent the DropDownButton's Popup from closing if the event is caused by a child Popup --- .../DropDownButton/Implementation/DropDownButton.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs index 11b77e7a..fc01f9ff 100644 --- a/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs +++ b/ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs @@ -375,7 +375,8 @@ namespace Xceed.Wpf.Toolkit private void OnMouseDownOutsideCapturedElement( object sender, MouseButtonEventArgs e ) { - CloseDropDown( true ); + if( !IsMouseOver ) + CloseDropDown( true ); } private void DropDownButton_Click( object sender, RoutedEventArgs e )