Fix block items firing blocklist selectionchanged

This commit is contained in:
azakhi 2018-09-21 19:28:37 +03:00
parent dffbbf3591
commit e719f0bce0
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)