Silverlight Hosting :: Debugging a WCF Service from Silverlight

While working today I came across a requirement to debug a WCF Service from Silverlight and it took me one hour to find the solution, I had the above three assumptions met and I was not able to debug WCF Service from Silverlight.

I had the architecture of solution as below,

There is nothing unusual . . . → Read More: Silverlight Hosting :: Debugging a WCF Service from Silverlight

Silverlight 5 Hosting :: Cache System in Silverlight 5 RIA Application

In this article I will explain how I chose to implement the global caching mechanism of the application data that I put in some projects of mine developed in. NET. The scenario consists of three projects that were created in Microsoft Visual Studio 2012:

A WCF project in which I have implemented all the services and technical data . . . → Read More: Silverlight 5 Hosting :: Cache System in Silverlight 5 RIA Application

WCF 4.5 Hosting :: Windows Identity Foundation 4.5 in NET 4.5

Windows Identity Foundation 4.5 (WIF) is a framework for building identity-aware and more specifically claims-aware applications. It furthermore provides an abstraction  to the underlying protocols (ex: WS-Trust, WS-Federation, etc …) and therefore encapsulates and standardizes application security.

Developers do not need to know how to exactly implement and use those protocols anymore. . . . → Read More: WCF 4.5 Hosting :: Windows Identity Foundation 4.5 in NET 4.5

Silverlight (and WPF) Hosting: How to make items stretch horizontally in a ListBox

Sometimes we need to use controls like TextBox, TextBlock etc (that set their width automatically depending on content) in a ListBox’s ItemTemplate. If we need to draw Borders or assign Background colors to each such controls then we may end up having non-equal rows. Here’s a sample markup:

Here’s the output for the above XAML:

A quick thought . . . → Read More: Silverlight (and WPF) Hosting: How to make items stretch horizontally in a ListBox

Silverlight 4 Hosting :: How to Bind Silverlight DataGrid From IEnumerable of IDictionary by Transforming Each Dictionary Key Into a Property of Anonymous Typed Object

If you want to define the number and the type of Silverlight DataGrid columns at runtime you can use the following approach. The technique can actually be used not only for Silverlight but also anywhere where you have to transform IDictionary (for example Dictionary or Hashtable, SortedDictionary etc) into anonymous typed object with each dictionary key . . . → Read More: Silverlight 4 Hosting :: How to Bind Silverlight DataGrid From IEnumerable of IDictionary by Transforming Each Dictionary Key Into a Property of Anonymous Typed Object

Silverlight 4 Hosting :: The Advantage Using Silverlight 4 in the the ArcGIS Silverlight

Namespace prefixes

In Silverlight 3.0 you had to use multiple namespace prefixes to access classes in XAML that were located in different namespaces. This meant you often ended up with something like this in the page header:

xmlns:esri=”clr-namespace:ESRI.ArcGIS.Client;assembly=ESRI.ArcGIS.Client”
xmlns:esriSymbols=”clr-namespace:ESRI.ArcGIS.Client.Symbols;assembly=ESRI.ArcGIS.Client”
xmlns:esriGeometry=”clr-namespace:ESRI.ArcGIS.Client.Geometry;assembly=ESRI.ArcGIS.Client”
xmlns:esriToolkit=”clr-namespace:ESRI.ArcGIS.Client.Toolkit;assembly=ESRI.ArcGIS.Client.Toolkit”

In Silverlight 4 we can now map multiple namespaces to the same xmlns prefix, and the 2.0 API takes full advantage . . . → Read More: Silverlight 4 Hosting :: The Advantage Using Silverlight 4 in the the ArcGIS Silverlight

Silverlight 4 Hosting :: Using Silverlight WebClient’s Class

Silverlight provides several different networking classes that can be used to retrieve data from distributed resources such as Web services, REST APIs and even sockets. By learning to use these classes, you can access data from nearly any source without having to write a lot of custom code to do it. In this article, we’ll focus . . . → Read More: Silverlight 4 Hosting :: Using Silverlight WebClient’s Class

Silverlight 4 Hosting :: How to Solve Error Message – “Unable to start Debugging.The SilverLight Developer Runtime Not Installed. Please Install a matching version”

. . . → Read More: Silverlight 4 Hosting :: How to Solve Error Message – “Unable to start Debugging.The SilverLight Developer Runtime Not Installed. Please Install a matching version”

Silverlight 4 Hosting :: ViewBox Control in Silverlight

Adding Silverlight Toolkit Reference

Before you can use a ViewBox control, you must download the Silverlight Toolkit. After that you need to add a reference to the assembly.

To add a reference, right click the References folder of your project in Solution Explorer and select Add Reference. This action will open the Add Reference dialog as you can . . . → Read More: Silverlight 4 Hosting :: ViewBox Control in Silverlight

Silverlight 4 Hosting :: Data Validation in Silverlight 4.0

In this article, I have used ‘IDataErrorInfo’ interface which is newly provided in Silverlight 4.0 under System.ComponentModel namepsace. This interface needs to be implemented by the data entity class which helps in defining custom validations for data to be entered using Silverlight 4.0 UI controls.

Defining Data Entity class and implementing ‘IDataErrorInfo’

1. Open VS2010 and create a . . . → Read More: Silverlight 4 Hosting :: Data Validation in Silverlight 4.0

Sponsors

JaringanHosting.com

Cheap Reseller Hosting

Best Blog Hosting Provider

Best European ASP.NET 4.0 Hosting Provider