• .NET

    Breaking the ice: RIA Services and Silverlight 3

    Implementing Line of Business applications has never been easier before. RIA services together with the rich presentation layer in Silverlight provide a powerful foundation for building n-tier application that will do the heavy lifting of your data layer. RIA Services relies on the ADO.NET Entity Framework to create an entity data model of your relational database and interpret the entities independently of their data store representation. In this way you can use the power of LINQ to Entities to implement query logic against the entities without using t-sql, and rely on the entity relationship to retrieve information for any relationship between...
  • .NET

    Using IValueConverter to format values in RadControls for Silverlight

    It’s often necessary to modify or format some of the raw data received by your data tier application or other data sources. In Silverlight, you can create your own value converter and introduce your own formatting rules. In this blog post I will create a simple value converter that formats double values, and then use it with a RadComboBox. First, let’s create a class that will represent our data source. The equivalent of this class in more realistic scenario would be a proxy class generated by your data tier application in case you use RIA services.     public class Data : List<Item>       {           public Data()           {               this.Add(new Item() { Name = "Ferrari", Price = 120000 });               this.Add(new Item() { Name = "Mercedes", Price = 100000 });...
  • .NET

    WPF Data Binding: Unraveling data templates

    Data binding in WPF in general and particularly working with data templates tends to be quite tricky some times. Here I'll present you some more advanced tips for dealing with data templates. To start with, I want to refer to an article I read a while ago. It is about the basics of data templates and I want to use it as a starting point and a foundation to build on. If you are just starting to work with WPF or you have never met with data templates, please read it first to get acquainted with the idea. I'll use ItemsControl for...
    June 17, 2008