Browse by Tags
All Tags »
source »
Microsoft (
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/capturing-and-streaming-sound-by-using-directsound-with-c/ ] I already wrote a little about managed way to use DirectX DirectSound . Today we’ll speak about how to get sound from your microphone or any other DirectSound capturing device (such as FM receiver ) and stream it out to your PC speakers and any other DirectSound Output device. So, let’s start creating our first echo service...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/quick-silverlight-and-wpf-tip-how-to-write-program-without-xaml/ ] From the moment, 10K MIX09 contest was launched , I got more, then 20 people, asking the same question: Is it possible to have Silverlight program up and running without XAML at all? The answer is “ YES, IT IS ”. Here is how: All you need for run WPF or Silverlight application is Class inherited from System.Windows.Application...
[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-pinvoke-varargs-variable-arguments-in-c-or-hidden-junk-in-clr/ ] Recently I wrote a cheat sheet for pinvoking in .NET . Shortly after I got a question in comments about how to deal with variable arguments, when it's more, then one parameter. Also what to do if those arguments are heterogeneous? Let's say, that we have following method in C: int VarSum(int nargs, ...){ va_list...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/silverlight-bidi-controls-library-rc0-and-movement-from-beta-2-to-rc0/ ] Finally, I got free minute to convert Silverlight BiDi controls from Silverlight beta 2 to RC0 (you can download SL rc0 tools for VS2008 here ) and as usual some breaking changes (the full list is here ) Calendar and DatePicker moved from System.Windows.Controls.Extended into System.Windows.Controls – Extended namespace...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/wpf-datagrid-ctp-is-here-it%e2%80%99s-also-open-source/ ] Huge amount of people asked me about DataGrid control in WPF. There are some 3rd parties providing this control for free and not, However, I always adviced them to wait until Microsoft will release it with (or after) Arrowhead . So here comes the King. Some boys and girls from MS WPF dev team have OS initiative and released WPF...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/arabic-and-hebrew-languages-bidirectional-support-for-silverlight-20-beta-2/ ] Those days, I’m, together with guys from Microsoft Egypt and Santeon , finishing development of bidirectional input and output support for Silverlight. I want you to take part in alpha testing of this solution. Please see the test form here and try it. <noframes>Visit <a href...
[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-handle-thickness/ ] Yesterday, we spoke about type converters . We even, built simple generic enum converter. Today, we’ll create more complicated converter, that very missing in Silverlight – ThicknessConverter. During the post, I also explain about tokenizing values in Silverlight What is Thickness ? What is thickness in Silverlight? It’s <Border BorderThickness=”6”/> or...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/work-process-how-to-use-and-build-type-converters/ ] Today, I want to start new tag - “ Work process ”. Here I’m going to publish partial classes, fixes, small utilities, I’m building for myself or clients to help in work process. I’ll give an example : currently, I’m working on BiDi support for Silverlight 2.0 (beta 2 to RTM). During the work process, I need to write different classes...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/wordml-to-flowdocument-%e2%80%93-how-to-convert-docx-files-to-wpf-flowdocument/ ] Recently we spoke about converting XPS files and FixedDocuments to FlowDocuments . It works, but there are lot of problems, due to fact, that FixedDocument (or XPS/PDF document) has less information, then the original file. Those files are, actually, printout of the original document. Also we know how to...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/silverlight-20-beta-1-is-alive-how-to-use-it-now/ ] As you, probably, know, Silverlight 2.0 got "non-commercial" go-live and how you can start using it for real. But how to do it? Let try to understand. First of all, you have to remove all previous versions of Silverlight as well as remove Silverlight Alpha tools for Visual Studio. Then, install Runtime andm using chain installer...
[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-load-unmanaged-native-resources-from-managed-c-code/ ] Let's say, that you have native assembly, that holds some resources - strings, bitmaps, icons and images and you want to get them from your managed code. How to do it? First of all, let's see how those resources looks like What we can see here, that we have one PNG resources with ID 209, one REGISTRY resource...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/tafiti-goes-open-source-well-actually-shared-source-under-ms-pl/ ] All those, how want to implement data visualization in Silverlight (as Tafiti does ), can look into this CodePlex project and use it for your own. Notice, you can download, modify and, even, resell this code, due to fact, that it's under MS-PL shared source licence . Well done, Live team .
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/wpf-for-developers-from-dev-academy-2-recordings/ ] If you was unable to attend Developers Academy 2 and still want to see sessions there, you are more, then welcome to do it. Here link to the recording of my session . And here is the presentation . The quality of the recording is awful, as well as whole hosting site quality. It seemed like " Gisha Hadasha " has no QA and particle...