MouseLeftButtonDown event in StackPanel and Grid don’t fire every time

Recently I have been playing with silverlight and I came into a situation where MouseLeftButtonDown event is not triggered every time.It is only triggered when I click on child control inside container. One way to fix this is to set background color of container to something.In my example I set my background color of grid […]

SqlException class does’nt have public constructor

I am currently preparing 3.5 course so I try to throw SqlException in one of my examples and realize that SqlException class is sealed and has no public constructor. I have found solution on Rido blog how to create SqlException using reflection.         public static SqlException CreateSqlException(string errorMessage, int errorNumber)         […]

How do I prism 2 videos for Silverlight

Bob and Erwin put together a series of videos that tell how to modular Silverlight Application. For more information see Bobs blog.   Creating a solution and adding a module (10 minutes) Composing views (10 minutes)   Implementing a view and using services (22 minutes)   Communicating between views (24 minutes)  

Silverlight chat application using WCF full duplex

Last week I have been started to read about full duplex wcf and his implementation in silverlight applications.I have read tons of articles on MSDN and tons of blog and forum posts. Recently I have found solution for chat application on this blog so I have little modified that application but it is basically […]

MVVM pattern in Silverlight using SLEextensions

In this  article I will explain how to implement MVVM pattern in Silverlight. I was very overjoyed when I was reading my friends article on Codeproject about MVVM pattern in WPF . You can check this article by Miroslav Popovic on I have decided to try implement same pattern in Silverlight .After reading and […]

Styling silverlight datagrid control

This article will explain you how to  modify default silverlight datagrid control look. In this example I have created new silverlight application project and add datagrid control in xaml file.I have also created small class called Person to populate test data.  public class Person { public int ID { get; set; } public string FirstName […]

Silverlight supports fullscreen mode

Silverlight 2 has build in support  for fullscreen mode.This feature can be very interested for building same online game solution or some cool video players or …When we enter to this fullscreen mode everything is hidden including browser frame. We can also resize our application to fit new changed screen size using two events in […]

1 5 6 7