WPF
介绍WPF中高度自定义的复杂控件开发,三方框架的使用与解读
SDHU
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
WPF 写的ComboBoxTree 控件
cs文件:using System;using System.Collections;using System.Collections.Generic;using System.Collections.ObjectModel;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Linq;using System....原创 2021-09-26 09:22:05 · 923 阅读 · 0 评论 -
WPF写的时钟组件
写了一个WPF 时钟组件,效果如下,UI没有美化过,所以比较简陋。CS代码:using System;using System.Collections.Generic;using System.Text;using System.Timers;using System.Windows;using System.Windows.Controls;using System.Windows.Media;using System.Windows.Shapes;using Syst.原创 2021-09-24 16:29:12 · 469 阅读 · 0 评论 -
解决WPF调用Winform控件置顶问题
在WPF中通过WindowsFormsHost调用Winform控件,由于WPF控件的空域问题,会出现Winform控件始终置顶的问题。此时想要在Winform控件上层显示WPF控件是办不到的,会被Winform控件遮盖。此时的button按钮是看不到的,因为被Host容器遮盖了,即便把背景调成透明也一样看不到。要解决这个问题,可以借助一个三方库Microsoft.DwayneNeed,在WindowsFormsHost外面再包一层interop:AirspaceDecorator就可以解决这个原创 2021-04-28 10:48:39 · 2154 阅读 · 0 评论 -
一个自定义的Panel
效果如图: <ic:ExtendGrid Columns="5" Width="40" Height="40" Margin="300,0,0,0"> <Button Content="1" /> <Button Content="2" /> <Button Content="3" /> <Button Content="4" />原创 2020-09-17 13:36:39 · 243 阅读 · 0 评论 -
一个自定义的可控制的时间进度条
WPF中的常规进度条ProgressBar使用Value,Max Value来控制进度,但是有时候并不能完全满足我们的业务需求,需要自己开发一个自定义的进度条,今天带来一个可以根据设置的时间显示进度动画的进度条,并可以控制进度播放流程。下面演示一个规定在十秒内播放完毕的进度条动画:这是一个自己封装的User Control,下面展示代码。XAML:<StackPanel Width="auto" Height="37"> <Grid Height="2...原创 2020-09-04 11:05:09 · 703 阅读 · 0 评论
分享