DCSIMG
tutorial,Silverlight - Just code - Tamir Khason

Browse by Tags

All Tags » tutorial » Silverlight (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/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/programming-for-windows-7/ ] Well, Windows 7 is going to be released by the end of next year. This is great news, because it seemed, that Microsoft finally understand how to get the best of Windows Vista and make it to work not only on monster machines . It even works on new brandy my wife's pinky machine. And if it works there and my wife is happy with it, this OS going to be very...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/slides-and-desks-from-my-expert-days%e2%80%99-sessions/ ] Because of the new job , I’m bit tight in time, however, I  found a time to post slides from my sessions in Expert Days . Also, hand-on labs used for WPF beginners’  released as open source to CodePlex for your convenience. Windows Presentation Foundation for Fellow Developers [4 MB] Mastering Microsoft Silverlight 2...
[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/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-access-html-dom-from-silverlight-and-silverlight-managed-objects-from-html/ ] 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...
[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-consume-wcf-or-webservice-from-vista-sidebar-gadget-by-using-silverlight/ ] The challenge today is really simple. All we have to do is to write Silverlight   Vista Sidebar Gadget , that consumes either WCF , ASMX or REST based service. Really simple, isn’t it? Let’s start Build server side services We should start from services. This is very straight forward mission. Here...
[This blog was migrated. You will not be able to comment here. The new URL of this post is http://khason.net/blog/usercontrol-binding-to-own-property-bug-in-sliverlight-20-beta-2/ ] Today morning, I come to my office. Alex , sitting there, was very tired. His eyes were red. I asked him: “What’s going on?” and he responsed: “I think, I’m sick. Something is broken in Silverlight”. “What’s the problem?” – I asked. And he explained me, that he want to create UserControl with some properties. Let’s say...
[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-open-new-window-or-tab-by-using-hyperlinkbutton-and-ctrl-shift-modifiers/ ] Regular behavior of any HTML anchor element is to open new Window if you’re clicking the link with Shift key and new Tab, if you’re clicking with Ctrl key or middle mouse button. Unfortunately, Silverlight HyperlinkButton does not support opening new window or tab. It also does not...
[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-addrangeremoverange-in-silverlight-observablecollectiont/ ] Someone in Silverlight forum asked for interesting question: “Is there any way that I can add/remove items in bulk from an ObservableCollection object?”. The “formal” answer is: “No, AddRange RemoveRange operators are supported for List<T> only collections, thus each time you want to add or remove items from ObservableCollection...
[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/stand-alone-multiplatform-silverlight-application/ ] Recently we spoke about running Silverlight application as client side only stand alone application . I used WebBrowser, MSHTA and Silverlight OCX with a little bit interop to make it running. In comments, Laurent Bugnion show me his method, that was pretty similar to mine, except the fact, that he used managed code to access file system...
[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...
More Posts Next page »