In order to understand WCF Bindings in details, it’s important to understand the Channel Stack as part of the WCF runtime.
WCF binding is composed of binding elements and each binding element is corresponds to a specific channel in the Channel Stack. The Channel Stack can be categorized into two major areas i.e. Protocol Channels and Transport . . . → Read More: WCF Hosting :: Understanding WCF Bindings and Channel Stack
This is another installment in the WCF vs. WTF article series. I mentioned before that I am quite a fan of WCF but having said that, feel that there are a few areas for improvement like sending method comments with the service contract discovery and more streamlined debugging, to name a couple.
The truth is that WCF . . . → Read More: WCF Hosting :: How to Fix Error -The underlying connection was closed: An unexpected error occurred on a receive.
Why to use net.tcp binding ?
A key benefit of net.tcp binding is the performance. If you want fast Silverlight applications that communicate with your WCF service in your secure intranet environment you will probably use this binding.
This net.tcp binding for now is intended to be used in intranet environments. Because this protocol is build on top . . . → Read More: Silverlight 4 Hosting :: WCF NET.TCP Protocol in Silverlight 4
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
The PathListBox control is a cool new addition to the Blend 4 SDK, and allows the elements inside a ListBox to lay out along any Path control shape. You’ll need to install the Blend 4 SDK to get access to the PathListBox control, but note that this is available outside of Expression Blend 4 (you don’t . . . → Read More: Silverlight 4 Hosting :: PathListBox for Motion Path Animation in Silverlight 4
1. Start a new Silverlight solution, name it DataFormExample, and add a reference to System.Windows.Controls.Data.DataForm.Toolkit (from the Silverlight Toolkit). Alternatively, you can drag the DataForm from the Toolbox to the design surface.
2. Open MainPage.xaml and add a namespace import statement at the top of this fi le (in the tag) as shown in the following code. . . . → Read More: Silverlight 4 Hosting :: Working with DataForm in Microsoft Silverlight 4
MVVM (Model- View – View Model) is the WPF / Silverlight UI design Pattern code model. A certain guideline a developer should follows in order to achieve a more testable, debug gable, manageable, readable Application.
A zero code behind, yes no button click event hander in the code behind file, no form / windows load logic, no . . . → Read More: Silverlight 4 Hosting :: Silverlight 4 and MVVM pattern with ICommand
To create a solution
1. In Visual Studio, select File, New, and then Project.
The New Project dialog box appears.
2. Select the Silverlight project type.
3. Select the Silverlight Business Application template and name the application ExampleBusinessApplication.
4. Click OK.
Notice the project structure that is created. The Silverlight client project includes Silverlight pages in the Views folder. These pages enable . . . → Read More: Siverlight 4 Hosting :: Using the Silverlight Business Application Template
In this walkthrough, you will create a WCF RIA Services application that retrieves data from the AdventureWorksLT database. You will use Silverlight to create the client in the presentation tier. You will create entity classes that represent various database tables. This walkthrough serves as a starting point for other walkthroughs.
Creating a solution with a RIA Services . . . → Read More: WCF RIA Hosting :: Creating a RIA Services Solution
Use a DomainDataSource to easily connect the data
Remove the code that retrieves the data from the server. Open Views\HomePage.xaml and comment out all the code in the Page_Loaded method.
Instead of loading the data manually, add a DomainDataSource control to the page. To do this, add a reference to System.Windows.Ria.Controls.dll, and add the Xml namespace that relates . . . → Read More: WCF RIA Hosting :: Build a Simple Application with .Net RIA Services (Silverlight 3)