refer: https://www.cnblogs.com/lonelyxmas/p/7650259.html using System; using System.Collections.Generic; using System.Collections.ObjectModel; using System.Diagnostics; using System.IO; using System.Linq; using System.Runtime.InteropServices.WindowsR
1. 首先继承一个listbox,来获得按住ctrl键时,点击的item public class ListBoxEx : ListBox { public BeatTemplateWave GetAnitem() { var obj = this.AnchorItem; if (obj != null) { Type type = obj.GetType(); System.Reflection.PropertyInfo propertyInfo = type.GetProperty("Ite
一:根据数据源类型获取选中项 类: public class Region { public int REGION_ID { get; set; } public string REGION_CODE { get; set; } public string REGION_NAME { get; set; } public int PARENT_ID { get; set; } } 数据源绑定: //绑定国家 cbe_Nationality.ItemsSource = new List<Regio