Skip Navigation LinksHome / Search


Results Per Page

Found 9 results for extension methods.
Date between: <not defined> and <not defined>
Search in: News , Articles , Tips , Shows , Showcase , Books

Order by Publish Date   Ascending Title   Rating  

  • Helpful Extension Methods for Show / Hide Animations in Silverlight

    0 comments  /  posted by  Silverlight Show  on  Sep 28, 2009 (9 months ago)

    In this blog post Colin Eberhardt talks about a couple of very simple utility methods that he has found himself using again and again.

    The animations that Silverlight developers have at their disposal are both varied and powerful. It is easy to get carried away and cover your application with gratuitous animations, which soon become an unwanted distraction. However, animation, when used sparingly, can make the user experience (much as I hate buzzwords, this one seems to have stuck!) smoother and more fluid. One class of animation which I think adds to program fluidity is ones used for showing / hiding parts of the user interface.

  • Silverlight Logging Extension Method

    0 comments  /  posted by  Silverlight Show  on  May 24, 2009 (more than a year ago)
    Tags: Extension Methods , Logging
    Rene Schulte has posted a simple extension method, which logs an object to the console.log.

    Most of you will know that a Silverlight application runs in the Browser and Console.WriteLine() doesn’t work. During the development process you could use System.Diagnostics.Debug.WriteLine() to write messages to Visual Studio’s Output window. But what if an application is deployed and no Visual Studio is nearby and you just want simple Console output and not a logging framework like Clog, where a web service is involved?

  • 0 comments  /  posted by  Silverlight Show  on  Apr 13, 2009 (more than a year ago)
    If you need to perform very simple element-only XPath queries in Silverlight 2.0 check the extension method that Chris Cavanagh has posted.
  • Super Strongly-Typed Property Changed Notifications with Extension Methods

    0 comments  /  posted by  Silverlight Show  on  Apr 12, 2009 (more than a year ago)
    Ork Pad explains about implementing property changed notifications using extension methods.

    I just read an article by Micheal Sync about implementing property changed notifications with Expression Tree, I liked what I saw but didn't appreciate the inheritance requirement (as always). So I quickly whipped up three alternate way using extension methods.

  • Adding the ScrollIntoViewCentered method to WPF's ListBox

    0 comments  /  posted by  Silverlight Show  on  Mar 31, 2009 (more than a year ago)

    David Anson has typed a ScrollIntoViewCentered extension method that you may call to bring one of the items in a WPF ListBox into view.

    In my scenario, the user would recognize the item when he/she saw it, so my problem wasn't about setting focus or rendering a highlight; it was just about bringing the item into view so it could be seen and manipulated. I started in the obvious place: the ListBox.ScrollIntoView method. Sure enough, a call to this method scrolled the item into view just like it was supposed to - and yet I wasn't completely satisfied... :)

  • Value Converters and Extension Methods in Silverlight Binding

    0 comments  /  posted by  Silverlight Show  on  Mar 09, 2009 (more than a year ago)

    Pete Brown will show you some options of Value Converters and Extension Methods in Silverlight Binding.

    I love binding in Silverlight, but sometimes you need to do things with binding that you know how you would do in inline code, but maybe aren’t sure how to handle in binding. Nine times out of ten, a value converter can help you out.

  • 0 comments  /  posted by  Silverlight Show  on  Feb 11, 2009 (more than a year ago)

    Jesse Liberty has created this article in order to answer the question about how to create extension methods in VB.

    It turns out that the key difference is that the extension must be defined in a Module and not in a class. Thus, building on the code from the previous example, we end up with the same Page.xaml and a very similar Page.xaml.vb and a quite different Extension.vb.

  • Extension Methods – Lambda Expressions in Linq

    0 comments  /  posted by  Silverlight Show  on  Feb 11, 2009 (more than a year ago)
    Tags: extension methods , lambda expressions , LINQ

    Jesse Liberty is now ready with the second part of his articles about Extension Methods. In his previous entry on this topic Jesse demonstrated how you can use Extension methods to add what appear to be new methods to existing classes.This time he will show you how to use lambda expressions in Linq.

    In this entry I will demonstrate how Extension methods enhance Linq by adding “method queries” using lambda expressions. To see how this works, let’s set up a simple query,  with a display that will show the two ways we might execute that query using Linq.

  • Background: Extension Methods, Silverlight and Linq

    0 comments  /  posted by  Silverlight Show  on  Feb 08, 2009 (more than a year ago)

    Jesse Liberty has a mini-tutorial about Extension Methods, Silverlight and Linq.


    This mini-tutorial will attempt to fill in the details and focus on two key uses of Extension Methods:

    • To add functionality to a class you don't own
    • To enable method-based queries (using lambda expressions) in Linq


Help us make SilverlightShow even better. Whether you'd like to suggest a change in the structure, content organization, section layout or any other aspect of SilverlightShow appearance - we'd love to hear from you! Need material (article, tutorial, or other) on a specific topic? Let us know and SilverlightShow content authors will work to have that prepared for you. (hide this)