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

View File

@@ -37,6 +37,10 @@ namespace Filtration.Views.AttachedProperties
listbox.SelectionChanged += (s, ev) => 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) if (null != ev.RemovedItems)
{ {
foreach (var item in ev.RemovedItems) foreach (var item in ev.RemovedItems)