This is a mirror of official site: http://jasper-net.blogspot.com/

Debugging XAML Binding with Silverlight 5

| Thursday, April 14, 2011
Well hope that you were aware of Silverlight 5 Beta release announcement today and its latest feature , if not make sure to have a look at my earlier posthere. In this post we will discuss about XAML binding debugging ,a new feature available in Silverlight5 .Be sure that you read my last line carefully its XAML Data Binding debugging  not XAML debugging .

For any data driven application with declarative data binding, with in XAML ,this brand new feature is the significant in many ways.Personally I remember most of the time i used to skip XAML way of binding as it lacked debugging feature.Now with Silverlight 5 my previous approach will surely take a back seat and will allow me to consider both ways equally.

Prerequisites
Makes sure that you have downloaded latest version Silverlight Toolkit SDK .If not download from here .Also make sure that you are running on VisualStudio SP1.

The XAML Data binding
The example demonstrated here implement basic XAML data binding with DomainDataSource control , lets look at the XAML binding of one of the controls.

image_thumb.png

Nothing fancy , simple binding.

The XAML Debugging

SETTING UP BREAKPOINT

As of now the XAML allows to apply breakpoint on Binding syntax only.Once break point applied ,it hits the breakpoint when ever push and pull triggeredfor that control.The image bellow shows the breakpoint with in XAML.

image_thumb_3.png

Read more: C# Corner

Posted via email from Jasper-net

0 comments: