07 2012 档案

摘要: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 阅读(850) 评论(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 阅读(6069) 评论(0) 推荐(0) 编辑
摘要:学习一下:使用Windows服务发布WCF服务http://hi.baidu.com/grayworm/blog/item/1d2ccdd6cc23b12506088b6b.html 阅读全文
posted @ 2012-07-09 13:34 xiaokang088 阅读(137) 评论(0) 推荐(0) 编辑
摘要:MSDN:http://msdn.microsoft.com/zh-cn/library/system.windows.shell.taskbariteminfo用户报告程序处理进度,显示window的缩略图,缩略图上的按钮处理等好玩的东西。Demo整理 阅读全文
posted @ 2012-07-03 10:28 xiaokang088 阅读(290) 评论(1) 推荐(0) 编辑
摘要:代码:/// <summary> /// Interaction logic for App.xaml /// </summary> public partial class App : Application { public App() { Debug.WriteLine("App constructor"); this.Startup += new StartupEventHandler(App_Startup); } void App_Startup(object... 阅读全文
posted @ 2012-07-02 14:00 xiaokang088 阅读(5863) 评论(0) 推荐(0) 编辑
摘要:WPF 单例启动的例子,记一下。参考 WPF Single Instance workaround关键代码:namespace 你的命名空间{ public class Startup { [STAThread] public static void Main(string[] args) { SingleInstanceApplicationWrapper wrapper = new SingleInstanceApplicationWrapper(); wrapper.Run(args); ... 阅读全文
posted @ 2012-07-02 11:30 xiaokang088 阅读(1755) 评论(0) 推荐(2) 编辑