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

Quick Silverlight tip: Why my ActualWidth and ActualHeight equal 0?

יום שבת, יולי 12, 2008

If you’ll try to use ActualWidth and ActualHight of controls with explicitly set Width and Height, you’ll not see any problem, however, if your control sits inside other control, ActualWidth and ActualHeight properties will be equal to 0. Why this and how to fix it? Actually, measurement and layout pass in Silverlight run asynchronously, thus it executed with or, even after, your code. So in order to fix it, you should measure ActualWidth and Actual Height asynchronously. So, instead of:...
אין תגובות

How to handle thickness

יום שלישי, יולי 8, 2008

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 <Border BorderThickness=”6,4,3,2”/> or <Border BorderThickness=”6, 4, 3,2”/> or, even <Border BorderThickness=”6; 4; 3...
אין תגובות

Work process: How to use and build type converters

יום שני, יולי 7, 2008

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, such as converters, string utilities, exception helpers etc.   © Imaginary copyright by  Noel Hendrickson So, today I’ll public general...

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 (introduced in SL2.0 b2) First of all we should know, that Silverlight is not ready for manufacture, thus direct references might produce memory...
אין תגובות

Quick Silverlight Tip: How to access HTML DOM from Silverlight and Silverlight managed objects from HTML?

יום שלישי, יולי 1, 2008

After my session yesterday, I got number of email from people, who have a problem to access HTML DOM from Silverlight and vice verse. I want to answer to all of you by this post. Access HTML from Silverlight You have not do anything special in Silverlight to access it.  Your friend is HtmlPage.Window object. For example, if I want to execute window.open JavaScript method from Silverlight, all I have to do is to call: ...
תגובה אחת

Printouts of the slides, presented on Silverlight 2.0 open house today

יום שני, יוני 30, 2008

Thank you all, who participated today in Silverlight 2.0 for building Rich Internet Applications event. I uploaded printouts of the slides, presented during the session here. So, you can download it for reference. I’m really interesting within your feedback (leave comments) in order for me to be able to enhance it for future events. Also, I want to remind you, that due to lack of space we were unable to handle all those who want to attend, thus we...
אין תגובות

Please do not ask me. We cannot handle more…

יום חמישי, יוני 26, 2008

Monday next week, I’m making half day session about building rich internet applications with Silverlight 2.0 in ILDC. The registration is over a while ago, but during this week, I got very large amount of email, IMs and phones calls with appeal to attend. Sorry, we’re fully booked (currently about twice of available seats and it's about 200) and cannot handle any more. Only those who registered and got confirmations will allow to enter. It is for your own...
אין תגובות

Silverlight 2.0 for building Rich Internet Applications (local event)

יום שלישי, מאי 20, 2008

If you are developing rich internet applications, web sites or just want to learn what’s new in Silverlight 2.0, you are invited to attend  local (Israel) Microsoft Event 30-June 8:30 AM- 12:30 PM in ILDC (new Microsoft R&D offices in Herzliya). I’ll speak about what is Silverlight 2.0 and what are differences between SL 1.0 and SL 2.0. How to build RIA with Silverlight 2.0. What is DeepZoom and some cool parts of this new internet technology....

FindResource replacement and how to change control style more then once in Silverlight 2.0 application

יום שלישי, מרץ 25, 2008

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 application. We have one resource defined in App level <Application.Resources>         <Style TargetType="Button" x:Key="green"> ...
4 תגובות