一:添加自定义分页控件,命名为KDataPagerTwo: public class KDataPagerTwo : Control, INotifyPropertyChanged { static KDataPagerTwo() { DefaultStyleKeyProperty.OverrideMetadata(typeof(KDataPagerTwo), new FrameworkPropertyMetadata(typeof(KDataPagerTwo))); } public even
一:右键添加新建项,选择新建自定义控件,命名为:KDataPager public class KDataPager : Control { static KDataPager() { DefaultStyleKeyProperty.OverrideMetadata(typeof(KDataPager), new FrameworkPropertyMetadata(typeof(KDataPager))); } #region 变量定义 ComboBox PART_DispalyCount; L