mirror of
https://gitee.com/handyorg/HandyControl.git
synced 2024-12-02 20:07:56 +08:00
fixed #752
This commit is contained in:
parent
0762db0fb4
commit
ad83effdfe
@ -239,7 +239,6 @@ namespace HandyControl.Controls
|
||||
}
|
||||
|
||||
_panel.Children.Clear();
|
||||
var dataContext = DataContext;
|
||||
|
||||
foreach (var item in SelectedItems)
|
||||
{
|
||||
@ -251,7 +250,7 @@ namespace HandyControl.Controls
|
||||
Tag = checkComboBoxItem
|
||||
};
|
||||
|
||||
if (dataContext != null)
|
||||
if (ItemsSource != null)
|
||||
{
|
||||
tag.SetBinding(ContentControl.ContentProperty, new Binding(DisplayMemberPath) { Source = item });
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user