随笔分类 -  WPF-控件

包括自定义控件与原生控件。
摘要:1. if (!TelphoneHelper2.IsTelphone(mobile) { MessageBox.Show("请录入正确的手机号!", "提示", MessageBoxButton.OK, MessageBoxImage.Information); return; } 2.Telpho 阅读全文
posted @ 2020-03-23 13:19 MrKing& 阅读(591) 评论(0) 推荐(0) 编辑
摘要:先上效果图: 这个控件其实是俩个RadioButton,通过样式就可以实现。 样式资源: 1 <Style x:Key="Tong_Yong_RadioButtonStyle" TargetType="{x:Type RadioButton}"> 2 <Setter Property="Foregr 阅读全文
posted @ 2020-02-26 14:30 MrKing& 阅读(482) 评论(0) 推荐(0) 编辑
摘要:步骤条实现的效果: 步骤条控件是在listbox的基础上实现的。 一、 xaml代码: <Window.Resources> <convert1:StepListBarWidthConverter x:Key="StepListStepWidthConverter" /> <ControlTempl 阅读全文
posted @ 2019-11-18 16:57 MrKing& 阅读(2383) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示