随笔分类 -  WPF

上一页 1 2
How do I sort groups of data items?(WPF)
摘要:CollectionViewSource 分组 排序 阅读全文
posted @ 2007-01-08 18:32 stswordman 阅读(1752) 评论(0) 推荐(0) 编辑
DataTemplate
摘要:DataTemplateSelector 隐示的使用DataTemplate 阅读全文
posted @ 2006-12-28 21:43 stswordman 编辑
对话框中的数据绑定(WPF)
摘要:模式对话框,Binding,BindExpression,BindingOperations UpdateSourceTrigger 阅读全文
posted @ 2006-12-28 08:35 stswordman 阅读(3519) 评论(3) 推荐(0) 编辑
{Binding}详释 (WPF)
摘要:大多数的绑定操作都设置了Source和Path属性。Source属性用于确定绑定的对象,而Path属性确定对象中的属性。 很多人遇到{Binding}时都会很困惑. {Binding} 乍看起来好像缺少可用信息。实际上不是这样的,现在我对此解释一下 如果你阅读过我的上一篇文章,你应该知道:在控件树的上层里可以设置DataContext属性,所以并不一定要设置Source属性。 现... 阅读全文
posted @ 2006-12-21 08:25 stswordman 阅读(6202) 评论(0) 推荐(1) 编辑
WPF文章收集(更新中)
摘要:SlidingListBox – Animating ListBoxItems in WPF Brief Anatomy of a ListBox Dragging Elements in a Canvas FishEyePanel/FanPanel - Examples of custom layout panels in WPF 阅读全文
posted @ 2006-11-05 22:22 stswordman 阅读(512) 评论(0) 推荐(0) 编辑
DispatcherTimer类的使用
摘要:DispatcherTimer类位于System.Windows.Threading命名空间下,类似于winform的Timer类。 { DispatcherTimer timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromSeconds(1); ... 阅读全文
posted @ 2006-11-05 18:45 stswordman 编辑
论坛问题收集(更新中)
摘要:Memory Leak problem when using bitmap image as tooltip? setting BitmapImage.UriSource from binding doesn't work(使用c#调用图片资源)TabItems displayed vertically (TabItem纵向显示,使用LayoutTransform而不是RenderTransfor... 阅读全文
posted @ 2006-10-31 14:50 stswordman 阅读(323) 评论(0) 推荐(0) 编辑
Winfx_FAQ 更新中
摘要:WPFFAQ.rar 阅读全文
posted @ 2006-10-26 18:11 stswordman 编辑
Polyline的问题
摘要:polyline可以绘制不规则线段,在使用中我发现了一个问题. 大家请看代码: 我在Canvas中使用Polyline画了两条黑色线段, 第一个Polyline对象有两个点.起始点为(20,45),终点为(100,4... 阅读全文
posted @ 2006-10-17 11:06 stswordman 阅读(3560) 评论(3) 推荐(0) 编辑
Canvas中元素的定位
摘要:Canvas,DockPanel,Grid,StackPanel,WrapPanel是WPF中的5个布局控件.每个布局控件都有不同的应用场景.如果您要对元素进行精确的定位,那么就需要使用Canvas了. 可以把Canvas比作一个坐标系,所有的元素通过设置坐标来决定其在坐标系中的位置.这个坐标系的原点并不是在中央,而是位于它的左上角.见下图 元素设置坐标的方法共有四个: l ... 阅读全文
posted @ 2006-10-17 09:42 stswordman 阅读(10046) 评论(3) 推荐(0) 编辑
两个问号
摘要:两个问号的含义... 阅读全文
posted @ 2006-09-29 13:54 stswordman 阅读(298) 评论(0) 推荐(0) 编辑
OpacityMask
摘要:This property only uses whatever the alpha channel value is for the supplied Brush. The other channels of the Brush's rendered content (e.g., Red, Green, or Blue) are ignored. The most commonly used B... 阅读全文
posted @ 2006-09-28 11:40 stswordman 阅读(543) 评论(0) 推荐(0) 编辑
BitmapEffect学习
摘要:Bitmap Effect位于System.Windows.Media.Effects 命名空间下,可以方便的实现大量的特殊效果,下面介几种BitmapEffect BevelBitmapEffect 元素表面出现倾斜的阴影效果 BlurBitmapEffect 元素表面出现模糊的效果 DropShadowBitmapEffect 元素外部... 阅读全文
posted @ 2006-09-27 16:54 stswordman 阅读(3831) 评论(2) 推荐(1) 编辑

上一页 1 2