KimhillZhang  
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页

2012年4月3日

摘要: 没事写了点,记性不好容易忘记,方便以后查找,<Window x:Class="DesktopUI.形状and变换and画刷.画刷" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="画刷" Height="500" Width="900"> <Window 阅读全文
posted @ 2012-04-03 11:11 KimhillZhang 阅读(514) 评论(0) 推荐(0) 编辑

2012年3月31日

摘要: 起初对Ext.MessageBox.updateProgress的误用,导致看到很不乐观的效果,想想自己实在愚蠢啊。。。。。起先: var fun = function (p) { return function () { if (p == 20) { Ext.MessageBox.hide(); } else { Ext.MessageBox.progress("请等待", "数据处理进度..."); Ext.MessageBox.updateProgress(p / 20, '正在处理第' + p + '个,一共20个' 阅读全文
posted @ 2012-03-31 09:40 KimhillZhang 阅读(1048) 评论(0) 推荐(0) 编辑

2012年3月30日

摘要: 阅读全文
posted @ 2012-03-30 19:04 KimhillZhang 阅读(1038) 评论(2) 推荐(2) 编辑

2012年3月28日

摘要: 简单使用控件模板<Window.Resources> <ControlTemplate x:Key="buttontemplate" TargetType="{x:Type Button}"> <Border BorderBrush="Orange" BorderThickness="{TemplateBinding Button.BorderThickness}" CornerRadius="3" Background="Red" TextBl 阅读全文
posted @ 2012-03-28 23:33 KimhillZhang 阅读(193) 评论(0) 推荐(0) 编辑
 
摘要: 简单的使用控件模板<Button FontSize="15" HorizontalAlignment="Center" Content="Hello" Width="120" Height="30"> <Button.Template> <ControlTemplate> <Grid> <Rectangle Fill="Red" RadiusX="15" RadiusY="15"/& 阅读全文
posted @ 2012-03-28 23:19 KimhillZhang 阅读(233) 评论(0) 推荐(0) 编辑
 
摘要: /// <summary> /// 集合绑定.xaml 的交互逻辑 /// </summary> public partial class 集合绑定 : Window { public 集合绑定() { InitializeComponent(); AddressList address = new AddressList() { new uAddress(){ city = "福州", area = "仓山区"}, new uAddress(){ city="漳平", area="东环路" 阅读全文
posted @ 2012-03-28 09:01 KimhillZhang 阅读(1372) 评论(0) 推荐(0) 编辑

2012年3月27日

摘要: 数据报模式指的是发送端负责把消息发送给对方并且收到确认消息之后就完成交互的方式,发送端唯一确定的就是消息发送成功,但不知道消息是否到达终节点,是否已经被处理,返回结果如何一无所知;客户端实现IOutputChannel, 服务端采用实现IInputChannel发送端代码:using System.ServiceModel.Channels;using System.ServiceModel;namespace 客户端Output{ class Program { static void Main(string[] args) { BindingElement[] bindingElement 阅读全文
posted @ 2012-03-27 21:27 KimhillZhang 阅读(566) 评论(0) 推荐(0) 编辑
 
摘要: 定义一个ImageConverter,该类继续于IValueConverter这里使用ImageConverter把图片字符串的形式转成BitmapImage对象代码如下:[ValueConversion(typeof(string), typeof(BitmapImage))] public class ImageConverter : IValueConverter { /// <summary> /// 把对象转换为WPF程序中绑定目标(即控件的某个属性)可以使用的类型数据 /// </summary> /// <param name="value 阅读全文
posted @ 2012-03-27 14:09 KimhillZhang 阅读(1973) 评论(1) 推荐(1) 编辑

2012年3月26日

摘要: 1、XAML:<TextBox Name="textbox1"></TextBox>cs: public class Customer { public string Name { get;set;} } Customer customer = new Customer() { Name = "Zhangjinshan" }; Binding bind = new Binding(); bind.Source = customer; bind.Path = new PropertyPath("Name"); t 阅读全文
posted @ 2012-03-26 09:32 KimhillZhang 阅读(831) 评论(0) 推荐(0) 编辑

2012年3月23日

摘要: <Window.Resources> <Style x:Key="button"> <Setter Property="Button.FontSize" Value="30"/> </Style> </Window.Resources> <StackPanel> <Button Style="{StaticResource ResourceKey=button}" Content="HELLO"></But 阅读全文
posted @ 2012-03-23 23:03 KimhillZhang 阅读(495) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 16 下一页