DCSIMG
WPF crossbow - Just code - Tamir Khason

Browse by Tags

All Tags » WPF crossbow (RSS)
Please update your bookmarks, because the new url of this blog is http://khason.net/ (you have not update RSS feeds, it will be done automatically). Why I did it? Why I decided to go to “stand-alone”… Well. there are some reasons. Generally, I do not want to explain all those here, but trust me, there are some. The main reason is, that there is no responsible person in charge for this blog platform in Microsoft Israel. This why, if your blog is popular and you have a respect to your blog visitors...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/read-and-use-fm-radio-or-any-other-usb-hid-device-from-c/ ] Last time we spoke about reading and decoding RDS information from FM receivers . Also we already know how to stream sound from DirectSound compatible devices . However, before we can do it, we should be able to “speak” with such devices. So, today we’ll spoke about detection and reading information from Radio USB adapters (actually...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/pinvoke-cheat-sheet/ ] I’m working a lot with p/invoke, and know how it’s hard to produce correct signature for unmanaged method. So, today I decided to publish basic cheat sheet for methods, parameters and attributes you should use in order to invoke unmanaged methods from managed code without a lot of problems. We start with data type translations. Here the table to understand it. Data...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/the-new-version-of-wpf-performance-profiling-tool-is-available-for-download/ ] Finally, after a long time of silence, the new version of WPF Performance Profiling Tool is available for download for x32 and x64 OSs.  So, what’s new there? Ton of UI improvements for Visual Profiler New search function to quick find elements in visual tree Hot path (critical path) of CPU usage aside...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/net-35-sp1-is-rtm-and-available-for-download/ ] For all those who asked, .NET 3.5 SP1 is final and available for download. What’s inside? ASP.NET Dynamic data Core improvements for CLR A lot of performance improvements in WPF ClickOnce enhancements ADO.NET with Data Services and Entity Framework LINQ2SQL and Data Provider for SQL Server 2008, that was released last week WCF with easier...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/mastering-images-in-wpf/ ] If you are “in” WPF imaging, you, definitely, should read this post of Dwayne Need (who is SDM of WPF in Microsoft) about customizing BitmapSource. A ton of information about how to make Bitmap Source for your needs, what WIC is and how to use it. Also he has a lot of samples in CodePlex . Great work, Dwayne.
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/how-to-make-silverlight-be-air/ ] Today we’ll speak about three issues How to make Silverlight application to run as stand alone application and how to insert this application inside your application? How to escape Silverlight from it’s sand box (how to make it run in full trust mode) When first two items done, how to make Silverlight to access anyfile in your file system? Looks scary...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/using-vista-preview-handlers-in-wpf-application/ ] First of all what is Preview Handler? Preview Handler is COM object, that called when you want to display the preview of your item. Other words, Preview Handlers are lightweight, rich and read-only previews of file’s content in a reading pane. You can find preview handlers in Microsoft Outlook 2007, Windows Vista and, even sometimes...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/to-ole-from-ole-color-translator-in-wpf/ ] In GDI+ (Winforms) world, there was very handy class inside System.Drawing. It named ColorTranslator and it used to translate from OLE integer color value into GDI+ Color and vice verse. In WPF there is no such class, so if you’re working with old COM/COM+ application you have either reference System.Drawing.dll or write those two methods...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/quick-tip-how-to-open-popup-or-contextmenu-in-xbap-application/ ] If you want to use ContextMenu in XBAP application this will work, only if your XBAP is in full trust mode. Else you'll get "Request for the permission of type 'System.Security.Permissions.UIPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed". But even with...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/focus-management-and-mouse-wheel-hooking-on-winforms-by-using-wpf/ ] Someone asked very interesting question in MSDN forums. I was sure, that that's kind of "I forgot something small", however, I built small repro. public partial class Window1 : System.Windows. Window { public Window1() { InitializeComponent(); UserControl1 uc = new UserControl1 (); WindowsFormsHost wfh...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/z-order-hack-for-winforms-interop-controls-in-wpf/ ] If you ever tried to put something from WPF world over Windows Forms controls (interop), you, probably, found it impossible. After it, while searching internet, you found AirSpace article , that clearly describes the reasons and rules. Digging more will bring you to the blog of Jeremiah Morrill , who fighting with AirSpace issue about...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/transparent-wpf-control-over-unmanaged-window-handle/ ] All those, how even once tried to put opaque or transparent WPF control over Windows Forms control or, even unmanaged window found themselves within " Airspace problem ". So, what to do? How can we use transparent WPF UI over our legacy windows? This how. See the image above. As you can see, there is tarsparent XAML page...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/crossbow-supported-scenarios/ ] Very useful MSDN article about support and unsupported scenarios in WPF and Windows Forms Interop (Crossbow)
Posted by Tamir Khason
תגים: