摘要: 先看一下效果图:第一步:新建一个WPF应用程序,这一步的操作就这里省略了。第二步:在刚才新建的WPF应用程序中添加一个UserControl命名为:TrafficLightControl,如下图所示关键代码如下,可以直接拷贝到VS2010即可: 1: <UserControl x:Class="WPF绑定转换器.TrafficLightControl" 2: xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 3: xmlns:x="http://schema 阅读全文
posted @ 2011-03-08 16:14 小麻雀 阅读(8310) 评论(2) 推荐(7) 编辑