Kyle McClellan

Making Software Easier

Browse by Tags

Tagged Content List
  • Blog Post: Writing a Custom CollectionViewLoader for the DomainCollectionView and MVVM

    The question I’ve been fielding most lately is how to write a custom CollectionViewLoader . Once you see it done, it’s a pretty simple task. Without an example it’s hard to know where to start. In a previous post, I discussed how the view, loader, and source related to each other . In this post, I’ll...
  • Blog Post: MVVM Pattern for RIA Services

    At the Silverlight Firestarter ‘10 , John Papa did a great talk on MVVM Patterns for Silverlight and WP7 that featured WCF RIA Services as the data layer. For that talk, I helped him streamline the service layer abstraction to correctly work with the RIA client. However, there were a number of great...
  • Blog Post: DomainCollectionView Updates for Mix ‘11

    To correspond to the new RIA Services build we’ve released at Mix, I’ve made some updates to the DomainCollectionView . I updated select API, fixed a few bugs, and updated the sample as well. If you’re not familiar with the DCV , here’s my original post introducing it . For the sake of brevity in this...
  • Blog Post: Using RIA Services with ComboBoxes and Enums

    The other day someone asked me how to get a ComboBox working with enums and validation. It turned out to be more tricky than I had anticipated ( there’s a common theme here… ) so I figured I’d put together a quick post on it. Stumbling Points This section describes two specific traps I fell into. It...
  • Blog Post: Collection Binding Options in WCF RIA Services SP1

    One of the most common tasks when developing a RIA Services application binding to a collection of data. There are some declarative options that include binding directly to your DomainContext or DomainDataSource . These options are great for spinning up applications quickly, but don’t translate well...
  • Blog Post: Introducing An MVVM-Friendly DomainDataSource: The DomainCollectionView

    [This sample references out-of-date API. This newer post discusses the updates made for the V1 SP2 Preview and shows how to implement filtering.] There’ve been plenty of talk about an MVVM-friendly DomainDataSource . I’m pretty sure it means completely different things to different people. I even took...
  • Blog Post: Silverlight TV: RIA Services Q & A

    John and I went through four questions we see frequently on the WCF RIA Services forum . Here’s our episode and some notes to go along with it. Silverlight TV: Episode 52 How do I investigate exceptions thrown from my DomainContext? If you’ve been using RIA, you’ve undoubtedly seen this exception before...
  • Blog Post: Using the Visual Studio Async CTP with RIA Services

    I’ve been excited about this CTP for quite a while now and it’s great to finally have a chance to play with it. Way back in early RIA days we had a number of conversations with the TPL (Task Parallel Library) folks to see if we could use Task<T> with RIA. We were never quite able to sort out the...
  • Blog Post: Silverlight ComboBox Frequently Asked Questions

    I’ve wanted to do a follow up to my original ComboBox post for a while now. I answered a number of the questions throughout the comments, but I thought I’d gather all the answers up and add some nice code samples. Hope this helps. How do I use a ComboBox in a DataForm? For most of the scenarios where...
  • Blog Post: Improved binding support in EntitySet and EntityCollection

    For our WCF RIA Services V1.0 SP1 Beta release we were finally able to improve binding support for EntitySets and EntityCollections . In our V1 release, EntitySet and EntityCollection did not support adding and removing entities through the IEditableCollectionView interface when used as the ItemsSource...
  • Blog Post: My Thoughts on an MVVM-friendly DomainDataSource

    The DomainDataSource (DDS) could be a great example of an aggregate component . It has a simple public API and does a lot of awesome things at the flip of a switch. The only problem with the thought is there’s little-to-no aggregation going on. All the composition that occurs is hidden behind a wall...
  • Blog Post: What is an MVVM-friendly DomainDataSource?

    The second most requested feature on our WCF RIA Services Wish List is an MVVM-friendly DomainDataSource . The neat part about this request is that it means many different things to many different people. The challenge in addressing it is to figure out what are the most valuable changes that will satisfy...
  • Blog Post: Authorization Sample 305 – Permission-Based Authorization for Silverlight

    In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I show how to extend the authorization library to support read and write permissions . Permissions The first challenge...
  • Blog Post: Authorization Sample 304 – MVVM Authorization for Silverlight

    In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I put together an authorized form using the Model-View-ViewModel pattern . For this form, I created a simple view...
  • Blog Post: Authorization Sample 303 – Metadata-Aware Authorization

    In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I put together an authorized form that responds to metadata on the object . I started with a simple type with AuthorizationAttributes...
  • Blog Post: Authorization Sample 302 – Site Map Navigation

    In Authorization Sample 301 I explained the ins-and-outs of the authorization sample and offered a few hints as to how it could be used. In this post, I will show a specific example where I put together a Site Map in Silverlight . I wanted to stay fairly close to the design David Poll used in his post...
  • Blog Post: I want my Silverlight app to look like the Zune client (part 2)

    Ever since Deepesh posted this awesome article a couple months back, we’ve wanted to give you a template for creating a Silverlight Business Application that looks the Zune client. We started with the Cosmopolitan Theme , applied the tweaks he listed in his post, and added a few more for good measure...
  • Blog Post: Mocking RIA Services Authentication and Authorization

    I’m about to embark on a series of Silverlight Authorization-related posts using a shared sample project. I use this base project as a template to share functionality and visual consistency to my sample applications. Most of the template is pretty straightforward. I have a MasterPage that imports (using...
  • Blog Post: Authorization Sample 301

    In Authorization Sample 201 , I touched on some of the extensibility options for custom authorization. These include applying custom rules or setting target properties for custom bindings in xaml. I avoided the bigger picture, however, by neglecting to explain how it all works. In this section, I’ll...
  • Blog Post: Silverlight ComboBox Sample for RIA Services

    I’ve been intending to write a sample using the ComboBox for a while. The more familiar you get with Silverlight, the more you realize the ComboBox causes all sorts of problems. I have mixed feelings about the proliferation of posts I’ve seen on this topic; on one hand, it’s great to see everyone getting...
  • Blog Post: RIA Services using https

    Support for https has been part of WCF RIA Services for a while now, but most of the early posts we did have been lost. In celebration of the V1 release, I’m resurrecting a guide on using https. In short, you have two options using https. On one hand, you can expose your application only on https. This...
  • Blog Post: RIA Services and Windows Live ID

    There is a new Authentication Sample that shows how to use RIA Services with Windows Live ID (WLID). It’s a little more complex than the others, so I thought it was worth discussing some of the interesting features. First, the sample opens another window to prompt for WLID credentials. In some scenarios...
  • Blog Post: RIA Services Authentication Out-Of-Browser

    RIA Services does not support Out-Of-Browser (OOB) Forms authentication using the Client networking stack out of the box. The Client stack is often recommend for OOB scenarios as it provides a greater level of control over requests. The reason authentication does not work on the Client networking stack...
  • Blog Post: Using ASP.NET Membership in Silverlight

    The Authentication support in RIA Services uses ASP.NET Membership, Roles, and Profile support by default. While this provides a lot of power, flexibility, and interoperability, it may also leave you wondering “How do I use ASP.NET Membership in Silverlight?” The answer (and I hope it doesn’t surprise...
  • Blog Post: Authorization Sample 201

    The attached properties described in Authorization 101 will get you going. It may even be a long time before you need more. If you find yourself chafing at the limits, though, then this section is for you. It works through some of first customization steps most applications will find useful. Custom Authorization...
Page 1 of 2 (28 items) 12