上一页 1 2 3 4 5 6 7 ··· 20 下一页

WPF中使用ItemsControl嵌套绑定,在ItemsControl中嵌套一个ItemsControl,然后使用绑定

摘要: 阅读全文
posted @ 2012-09-13 17:38 白开水易拉罐 阅读(7852) 评论(3) 推荐(0) 编辑

一次注册system32下所有dll

摘要: For %1 in (%windir%\system32\*.dll) do regsvr32.exe /s %1 意思是说,只要在c:\windows\system32\下的dll文件,就注册一下。 阅读全文
posted @ 2012-09-06 10:10 白开水易拉罐 阅读(341) 评论(0) 推荐(1) 编辑

System.Drawing.Image data to System.Windows.Media.ImageSource (WPF)

摘要: 1. Use MemeoryStream 1 ImageBrush backBrush = new ImageBrush(); 2 BitmapImage bi = new BitmapImage(); 3 bi.BeginInit(); 4 MemoryStream ms = new MemoryStream(); 5 iMove.app.EastOnline.Properties.Resources.Background.Save(ms, ImageFormat.Bmp); // System.Drawing.Image; 6 ms.Seek(0, SeekOrigin.Begin); 7 阅读全文
posted @ 2012-06-08 16:06 白开水易拉罐 阅读(1654) 评论(0) 推荐(0) 编辑

Can't play local SWF file in Media Player

摘要: This issue is related to the Local Machine Zone Lockdown feature. Windows Media Player needs to load the Flash Player control to play SWF file.However, the Local Machine Zone Lockdown feature prevents WMP from loading the Flash player control. You can modify the following registry to resolve the iss 阅读全文
posted @ 2012-05-16 16:24 白开水易拉罐 阅读(492) 评论(0) 推荐(0) 编辑

WPF 如何在代码中使用自定义的鼠标资源

摘要: 如果想要在XAML中使用自定义鼠标很容易,直接在标签中设定 Cursor="/asserts/hand.ani" 即可,但是如果在代码中使用需要 this.Cursor = new Cursor("鼠标资源路径");此处的[鼠标资源路径]需要使用绝对路径,这就不叫麻烦了。另一种方法就是使用(本人未验证):StreamResourceInfo sri = Application.GetResourceStream(new Uri("/assets/cursor/hand.ani", UriKind.Relative));Cursor c 阅读全文
posted @ 2012-04-09 18:16 白开水易拉罐 阅读(2920) 评论(1) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 20 下一页