随笔分类 -  WPF 控件

WPF 控件使用技巧
摘要:WPF PasswordBox 参考:https://blog.csdn.net/candy_zkn/article/details/9383007 WPF 将TextBox更改为PasswordBox样式(文字显示方式为密码) 参考:https://www.cnblogs.com/callyblo 阅读全文
posted @ 2021-05-28 16:14 microsoft-zhcn 阅读(160) 评论(0) 推荐(0) 编辑
摘要:参数 描述 Stroke 表示圆边框的颜色 Fill 表示圆内部的颜色 Data 表示路径是如何描画 StrokeThickness 表示边框粗细 Stretch 表示形状如何填充可以的区域 WPF Path 使用SVG代码 第一步:进入阿里图标官网(https://www.iconfont.cn) 阅读全文
posted @ 2021-05-28 16:11 microsoft-zhcn 阅读(517) 评论(0) 推荐(0) 编辑
摘要:WPF pack uri 参考:https://www.cnblogs.com/denghejun/p/3794670.html 阅读全文
posted @ 2021-05-28 16:09 microsoft-zhcn 阅读(45) 评论(0) 推荐(0) 编辑
摘要:使用参考: https://www.cnblogs.com/lindexi/p/12932701.html https://www.cnblogs.com/hicolin/p/8804722.html 阅读全文
posted @ 2021-05-28 16:08 microsoft-zhcn 阅读(63) 评论(0) 推荐(0) 编辑
摘要:WPF Hyperlink 参考:https://www.cnblogs.com/dino623/p/WPF_HyperlinkButton.html 阅读全文
posted @ 2021-05-28 16:02 microsoft-zhcn 阅读(56) 评论(0) 推荐(0) 编辑
摘要:WPF Template、ControlTemplate、ContentTemplate、DataTemplate、ContentControl 参考:https://www.cnblogs.com/tommy-huang/p/5911140.html 阅读全文
posted @ 2021-05-28 16:00 microsoft-zhcn 阅读(180) 评论(0) 推荐(0) 编辑
摘要:WPF ContentPresenter 参考:https://www.cnblogs.com/MyWPF/p/14262883.html 阅读全文
posted @ 2021-05-28 15:58 microsoft-zhcn 阅读(201) 评论(0) 推荐(0) 编辑
摘要:一、标准Window 窗口由两部分构成:工作区,非工作区,图中出工作区之外都是非工作区。 二、WindowChrome的基本概念 WindowChrome的作用:将客户区域扩展至整个窗体(遮住了非客户区),同时提供部分标准窗体的功能。 若要自定义窗口,同时保留其标准功能,可以使用WindowChro 阅读全文
posted @ 2021-05-28 15:41 microsoft-zhcn 阅读(640) 评论(0) 推荐(1) 编辑
摘要:一、WPF TabControl 数据绑定 WPF TabItem绑定 参考:http://cn.voidcc.com/question/p-qqyuxlvm-ex.html WPF如何绑定tabitem与列表 参考:http://cn.voidcc.com/question/p-faompnxo- 阅读全文
posted @ 2021-05-28 15:39 microsoft-zhcn 阅读(909) 评论(0) 推荐(0) 编辑
摘要:WPF Button 控件 一、WPF Button 添加图片 <Button> <Button.Content> <Image Stretch="Fill" Source="pack://application:,,,/程序集;component/images/demo.png"/> </Butt 阅读全文
posted @ 2021-05-28 15:32 microsoft-zhcn 阅读(448) 评论(0) 推荐(0) 编辑
摘要:RadioButton 示例 RadioButton Xaml <UniformGrid Columns="2"> <RadioButton GroupName="rbRole" Style="{StaticResource RadioButtonLoginRole}" IsChecked="Tru 阅读全文
posted @ 2021-05-27 14:26 microsoft-zhcn 阅读(314) 评论(0) 推荐(1) 编辑
摘要:一、取出RichTextBox值 1、取得RichTextBox 文字 TextRange documentTextRange = new TextRange(richTextBox.Document.ContentStart, richTextBox.Document.ContentEnd); s 阅读全文
posted @ 2021-05-10 09:15 microsoft-zhcn 阅读(4627) 评论(0) 推荐(0) 编辑
摘要:XAML 实现代码: <Path Width="100" Height="100" Stretch="Fill" Fill="Red" Data="M582.2 346.6c-30.4 0-58.3 10.9-80.4 29.1-22.1-18.2-50-29.1-80.4-29.1-71.3 0- 阅读全文
posted @ 2020-10-13 15:14 microsoft-zhcn 阅读(357) 评论(0) 推荐(0) 编辑

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