HandyControl 应用
作者:互联网
xmlns:hc="https://handyorg.github.io/handycontrol"
using HandyControl;
多选组合框
<hc:CheckComboBox x:Name="CheckComboBoxInfo" Margin="5" ShowClearButton="True" ShowSelectAllButton="True" IsEnabled="True"
Width="300" Style="{StaticResource CheckComboBoxPlus}"
ItemsSource="{Binding DemoList}"
SelectedValuePath="Key" DisplayMemberPath="Value"/>
<Button Content="Save" Command="{Binding SaveCommand}"
CommandParameter="{Binding ElementName=CheckComboBoxInfo, Path=SelectedItems}"/>
public DelegateCommand<object> SaveCommand => new DelegateCommand<object>(ExecuteSaveCommand);
void ExecuteGroupImportCommand(object obj)
{
_dependency.ShowInfo("Save");
}
标签:HandyControl,应用,DelegateCommand,ShowInfo,io,hc,Save 来源: https://www.cnblogs.com/wesson2019-blog/p/16140052.html