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
阅读全文
摘要:绑定有两个需要注意的地方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...
阅读全文
摘要:学习一下:使用Windows服务发布WCF服务http://hi.baidu.com/grayworm/blog/item/1d2ccdd6cc23b12506088b6b.html
阅读全文
摘要:MSDN:http://msdn.microsoft.com/zh-cn/library/system.windows.shell.taskbariteminfo用户报告程序处理进度,显示window的缩略图,缩略图上的按钮处理等好玩的东西。Demo整理
阅读全文
摘要:代码:/// <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...
阅读全文
摘要:WPF 单例启动的例子,记一下。参考 WPF Single Instance workaround关键代码:namespace 你的命名空间{ public class Startup { [STAThread] public static void Main(string[] args) { SingleInstanceApplicationWrapper wrapper = new SingleInstanceApplicationWrapper(); wrapper.Run(args); ...
阅读全文