Merge pull request #84 from azakhi/bugfix/fix-child-firing-block-selection-event

Fix block items firing blocklist selectionchanged
This commit is contained in:
Ben Wallis 2018-09-21 17:43:07 +01:00 committed by GitHub
commit 2f30eade7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -37,6 +37,10 @@ namespace Filtration.Views.AttachedProperties
listbox.SelectionChanged += (s, ev) =>
{
// TODO: Temporary solution. If a block item uses AutoScrollingListBox, it may create problems.
if (!(ev.OriginalSource is UserControls.AutoScrollingListBox))
return;
if (null != ev.RemovedItems)
{
foreach (var item in ev.RemovedItems)