上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页
摘要: XAML版本的:<Window x:Class="StartAnimation.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" AllowsTransparency="True" WindowStyle="None" Title="MainWindow" 阅读全文
posted @ 2012-11-16 09:44 xiaokang088 阅读(170) 评论(0) 推荐(0) 编辑
摘要: ListView的首列是checkbox,所以想固定首列,不能移动。本想找到根本的解决办法,没找到。所以弄了这个笨办法。哪位知道怎么根本解决,麻烦告知,谢谢。 var view = this.lvFiles.View as GridView; if (view != null && view.Columns != null) view.Columns.CollectionChanged += new System.Collections.Specialized.NotifyCollectionChangedEventHandler(Col... 阅读全文
posted @ 2012-11-12 16:28 xiaokang088 阅读(2815) 评论(1) 推荐(1) 编辑
摘要: /// <summary> /// if one drive broken, use [Directory.Exists] may cause 10 seconds, /// so design this function with timeout. /// </summary> /// <param name="path"></param> /// <param name="timeout"></param> /// <returns></returns> 阅读全文
posted @ 2012-11-07 14:35 xiaokang088 阅读(187) 评论(0) 推荐(0) 编辑
摘要: Task.Factory.StartNew(() => { Thread.Sleep(TimeSpan.FromSeconds(20)); string process = AppDomain.CurrentDomain.BaseDirectory + @"TargetWPF.exe"; ProcessStartInfo info = new ProcessStartInfo(process); info.WindowStyle = Process... 阅读全文
posted @ 2012-10-24 18:47 xiaokang088 阅读(323) 评论(0) 推荐(0) 编辑
摘要: class Point { double x, y; public Point(double x, double y) { this.x = x; this.y = y; } public double X { get { return this.x; } } public double Y { get { return this.y; } } } ... 阅读全文
posted @ 2012-09-14 17:11 xiaokang088 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 用户名输入框:1.没有获取焦点时, 如果输入内容为空,显示Mask文本:Please input username。如果不为空,显示文本内容。2.获取焦点后, 如果是Mask文本,清除。如果不是,保留输入的内容。这种例子很多,相信大家都熟悉。public class MaskTextBox : TextBox { #region MaskText /// <summary> /// view sort style, desc arrow /// </summary> public static readonly Dep... 阅读全文
posted @ 2012-09-05 16:01 xiaokang088 阅读(4044) 评论(9) 推荐(4) 编辑
摘要: reference:http://www.eggheadcafe.com/community/csharp/2/64575/map-network-drive.aspxProject property: platform target must be Any CPU!! Must on x64!! don't know the reason.if x86, can map success, but don't appear in windows explorer, so must set to Any CPU ,map success ,canappear in windows 阅读全文
posted @ 2012-07-27 09:24 xiaokang088 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 绑定有两个需要注意的地方1.如果绑定到 附加属性(Binding Attached Property),需要加上括号,这个比较特别,例如 <TextBox x:Name="tbUserName" Width="200" Grid.Column="0" Margin="10,10,0,0" Foreground="Gray" nasSetting:TextBoxMaskHelper.MaskText="Please input us... 阅读全文
posted @ 2012-07-25 10:04 xiaokang088 阅读(6104) 评论(0) 推荐(0) 编辑
摘要: 学习一下:使用Windows服务发布WCF服务http://hi.baidu.com/grayworm/blog/item/1d2ccdd6cc23b12506088b6b.html 阅读全文
posted @ 2012-07-09 13:34 xiaokang088 阅读(138) 评论(0) 推荐(0) 编辑
摘要: MSDN:http://msdn.microsoft.com/zh-cn/library/system.windows.shell.taskbariteminfo用户报告程序处理进度,显示window的缩略图,缩略图上的按钮处理等好玩的东西。Demo整理 阅读全文
posted @ 2012-07-03 10:28 xiaokang088 阅读(291) 评论(1) 推荐(0) 编辑
上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 23 下一页