fixed a bug of Transfer

This commit is contained in:
NaBian committed 2019-05-20 21:04:49 +08:00
1 parent 24612e0e5e
commit c2741c50ed
1 file changed
+6 -3
@@ -79,8 +79,8 @@ namespace HandyControl.Controls
{
if (_initEnumerable != null)
{
OnItemsSourceChanged(null, _itemsSourceInternal);
_itemsSourceInternal = null;
OnItemsSourceChanged(null, _initEnumerable);
_initEnumerable = null;
}
if (_initArgs != null)
@@ -89,7 +89,10 @@ namespace HandyControl.Controls
_initArgs = null;
}
Refresh();
if (_itemsOrigin.Items.Count == 0)
{
Refresh();
}
}
}