Browse by Tags
All Tags »
Web »
source (
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/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/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/silverlight-visual-tree-investigation/ ] Wait a moment. Silverlight has Visual and Logical Trees as well as WPF? Not exactly. The design more similar to how it was in WinForms (Parent-Child relationship). But dev team made all possible to make it syntactically similar to WPF. Let’s start Challenge : Find and hold references to all element, contains text. Solution : Recursive VisualTreeHelper...
[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-tip-how-to-set-format-and-validate-value-in-textbox/ ] Today morning I got an email from one of Microsofties, asking following question: Is there any way to set format and validation on TextBox in Silverlight 2. TextBox format: Date Format, Currency Format etc, TextBox validation: Regular date expression, should allow only numeric etc. If it’s possible out-of-box how...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/drawingbrush-and-deep-clone-in-silverlight/ ] Today, we’ll say “ They did not put it there ” as lot. And start with DrawingBrush. Yes, there is no Drawing Brush in Silverlight, thus you cannot create neither hatch brush nor pattern brush in Silverlight. But we want it to be there. What to do? To enter into deep reflection first thing to do is to look into Reflector. How they did another...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/findresource-replacement-and-how-to-change-control-style-more-then-once-in-silverlight-20-application/ ] As deeper we’re digging in Silverlight 2.0, we finding more and more WPF things and we’re really missing in Silverlight. One of such things is FindResources. In WPF I had Visual and Logical tree, so I was able to travel the tree to find resource I need. Let’s see an example of the...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/networking-raw-sockets-in-silverlight-and-wpf-messaging-in-general/ ] You, probably, know how to use raw sockets in WinForms. It's pretty the same in WPF, however it is very different (and limited) in Silverlight. Today, we'll create sample application in Silverlight, WPF and WinForm that sending and receiving updates via TCP as well as broadcasting it via UDP (singlecast and...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/building-custom-user-control-in-silverlight-20-how-to-build-code-snippet-for-vs-as-bonus/ ] Do you remember, that we have "go-live" for Silverlight 2.0 and already have build machines configured ? Now it's time to build your very own custom control. Today, we'll build Range Slider. What is range slider? Range slider is a control, that lets you input two values, typically...
[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/wbxml-support-in-c-or-lets-make-it-smaller/ ] Dear visitors, 03 01 6A 00 00 01 41 42 03 57 42 58 4D 4C 20 50 72 6F 67 72 61 6D 6D 65 72 00 01 43 03 48 65 6C 6C 6F 2C 20 57 6F 72 6C 64 21 00 01 01 . Do you know what I'm talking about? Those 45 bytes string means following 208 bytes XML <hello-world> <greeter>WBXML Programmer</greeter> <greeting>Hello, World...
[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-use-ie-authentication-dialog-window-programmatically/ ] So, there are two methods deals with credential dialog of IE CredUIPromptForCredentials – for pop it up and CredUIConfirmCredentials for persist those settings in password manager (optional). So, in order to call it explicitly, you should implement them via P/Invoke like this [DllImport("credui.dll", EntryPoint ...