New year – new blog or how to migrate Community Server to any other engine, supports XML-RPC

יום חמישי, ינואר 1, 2009

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, you cannot host it here… Take a look...

Read and use FM radio (or any other USB HID device) from C#

יום שלישי, דצמבר 30, 2008

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 from any Human Input Devices). Let’s start. First, if you want to do it, go and buy such device. The are not a...

P/Invoke cheat sheet

יום שני, אוקטובר 20, 2008

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 type from unmanaged signature ...

The new version of WPF Performance Profiling Tool is available for download

יום שישי, ספטמבר 26, 2008

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 with CPU usage for single element Configuration of tint for overlay windows ...
5 תגובות

.NET 3.5 SP1 is RTM and available for download

יום שני, אוגוסט 11, 2008

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 DataContract serialization...

Mastering Images in WPF

יום ראשון, יוני 22, 2008

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.
2 תגובות

How to make Silverlight be AiR?

יום ראשון, אפריל 27, 2008

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? Let’s see first reasons for those “hackery” targets....

Using Vista Preview Handlers in WPF application

יום שישי, אפריל 18, 2008

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 in XP. Can we use preview handlers within your WPF application? Probably we can. Let’s see how we can do it.   Let’s...
2 תגובות

To OLE / From OLE color translator in WPF

יום ראשון, אפריל 13, 2008

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 yourself. I prefer to write it :) public static class ColorTranslator     { ...
אין תגובות

Quick tip: How to open popup or ContextMenu in XBAP application

יום שני, מרץ 3, 2008

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 Full Trust application, if you'll try to open context menu explicitly it wont. The error, you'll get will be "Cannot create a top-level child window". This is right. You cannot use layered windows without explicitely set parent inside browser sandbox. Why...
אין תגובות