Browse Source

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
pull/1401/head
Justin Bozalina 8 years ago
parent
commit
97c3b22098
  1. 3
      ExtendedWPFToolkitSolution/Src/Xceed.Wpf.Toolkit/DropDownButton/Implementation/DropDownButton.cs

3
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 )

Loading…
Cancel
Save