Browse by Tags

All Tags » Silverlight » C# (RSS)
WCF RIA Services was (past tense) an awesome technology that allowed developers to quickly and super easily build domain classes and WCF services for Silverlight applications. In VS 2012 (and VS 2010 SP1), you could use Add | New Item and get a template...
The following are some tips when building a business object class for use by Silverlight and RIA services. NOTE: This assumes you are not using Entity Framework (EF). Use Class-Level Validation Specifying class-level validation allows you to perform validation...
Data annotation attributes are a great way to add single property validation to your Silverlight/WCF RIA application. But what if you don't want to inject attributes all over your business classes? The purpose of a metadata class is to have a place...
Resource files are a great way to manage strings, especially if you need to support multiple languages. This post demonstrates how to use a resource file with the validation attributes used by Silverlight and WCF RIA Services. NOTE: This post is part...
When you identify the validation scenarios for your application, you will find that some only require basic single property validation. Examples: Ensure that a first name is entered. Ensure that the first name is not longer than 20 characters Ensure that...
This post provides a simple Silverlight MVVM, WCF RIA Services sample application that is used to demonstrate validation techniques. The sample application is provided in this separate post so it can be readily used with any of the presented validation...
One of the biggest challenges of implementing validation in Silverlight is finding the appropriate technique based on your architecture and goals. There are lots of choices and lots of examples, but not all examples work in all scenarios. Plus many examples...
Many users want to print information from your line of business (LOB) application. This post covers the simple case where the user wants to print a copy of what they see on the screen. But instead of putting the print code in the code behind file, it...
This prior post introduced commanding in Silverlight for use with MVVM. However, the built-in Silverlight commanding only works for controls that inherit from ButtonBase, such as Button and HyperlinkButton. This post provides information on implementing...
As you build your line of business (LOB) applications, you will need to process commands. In many cases, these commands are executed when the user clicks a button. For example, when the user clicks the Save button, the code needs to process a Save "command"...
As you start to add more Views and associated View/Models to your Silverlight line of business (LOB) application, you will notice that the classes include some common and repeated code. Building a simple base class for your View/Models provides a single...
This prior post covered the details of setting up a database, defining an entity model using Entity Framework, building WCF RIA Services to access that entity model, and hooking it all up to a Silverlight DataGrid. That is all well and good. But most...
One of the challenges of building a Silverlight line of business (LOB) application is getting the data from the business database. The business database resides on a server computer and the Silverlight application resides on each user's computer....
If you built a custom theme for your application (similar to this prior post ) then you may find that your chart legend contents disappear. NOTE: This post is part of a series that starts with this prior post . The example in this post uses the application...
Data visualization is often a requirement in today's line of business (LOB) applications. Plus charts are just more fun to look at than data grids. Silverlight provides many different types of charts you can use to display the data in your LOB application...
When binding to a DataGrid, in most cases you have a fixed number of columns and a variable number of rows. This post covers the case when you have a variable number of rows AND a variable number of columns. NOTE: This post is part of a series that starts...
Model View View/Model (MVVM) is an effective pattern for building Silverlight applications. It provides many useful benefits when building business applications with Silverlight. NOTE: This post is part of a series that starts with this prior post . The...
One of the common requirements of a line of business application is to present data. This post demonstrates the basics of how to populate a DataGrid from a business object. This post is a "stepping stone" to the ultimate goal of populating the...
So, you've started building a Silverlight Line of Business (LOB) application using the Silverlight Navigation Application template ( as shown in this prior post ). This post covers how to add pages to it. NOTE: This post is part of a series that starts...
If you want to give your line of business application a nice color theme and some basic interactive styles without a lot of work, you can use the built-in themes as described in this prior post . However, as shown in that prior post you may want to adjust...
More Posts Next page »