Recommended

Skip Navigation LinksHome / Search

Search

 
Results Per Page

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

Page 
  • 1
  • 2
Next
Order by Publish Date   Ascending Title   Rating  

  • Control to Control Binding in WPF/Silverlight

    0 comments  /  posted by  Silverlight Show  on  May 13, 2010 (1 month ago)
    Take a look at this quick post of Paul Sheriff in which he explains how to easily connect controls together using data binding in XAML.

    In the past if you had two controls that you needed to work together, you would have to write code. For example, if you want a label control to display any text a user typed into a text box you would write code to do that. If you want turn off a set of controls when a user checks a check box, you would also have to write code. However, with XAML, these operations become very easy to do.



  • 0 comments  /  posted by  Silverlight Show  on  May 12, 2010 (1 month ago)
    In this post John Papa explains how to bind a ComboBox to a collection of objects, and then bind a property from the selected object to some other scalar property.

    The key here are the DisplayMemberPath and SelectedValuePath properties. These apply to the object that each item in the ComboBox is bound to. In other words, these properties are set to the State, not the ObservableCollection<State>. Also, notice these properties are not data bound, they are instead set to the name of the properties respectively. We do not want the values of the properties here, we want the actual name of the properties (which is why it is called DisplayMemberPath and SelectedValuePath).

  • 0 comments  /  posted by  Silverlight Show  on  May 12, 2010 (1 month ago)
    In this post Colin Eberhardt describes an update to the Silverlight MultiBinding solution he presented last year. This update includes support for Silverlight 4, attached properties and multiple bindings on a single object.

    MultiBinding is a WPF feature that allows you to bind a single property to a number of sources, with the source values being combined by a value converter. This is a feature that is missing from Silverlight. About a year ago I developed a MultiBinding solution for Silverlight, which has proven very popular! I even had an email from an Microsoft Attorney asking if they could use it in the Silverlight Facebook client (How cool is that :-) ). I was also very happy when Stefan Olson made a few updates to this code to allow multiple MultiBindings on a single object and spotted the SL4 issue. This blog post is a quick demonstration of these new features …

  • Command Binding in Silverlight 4 (Step-by-Step)

    0 comments  /  posted by  Silverlight Show  on  May 03, 2010 (1 month ago)
    Take a look at this great post of Kunal Chowdhury about command binding in Silverlight 4 published at DotNetFunda.

    Silverlight 4 now came up with the support of Command Binding. Using Command binding you can easily develop your Silverlight MVVM (Model-View-ViewModel) applications where your view will not know about data. In this article, I will describe you the Command binding feature in Silverlight 4 Step-by-Step.

  • Silverlight – About Validation When Binding to Custom Forms

    0 comments  /  posted by  Silverlight Show  on  Jan 15, 2010 (5 months ago)
    In this post, Fredrik Normén writes about the different ways to handle validations.

    I have notice that some people have problems about how to implement User Input validation when they don’t use controls like the DataForm or DataGrid  etc, and instead bind directly to a TextBox or other user input controls. In this post I will write about different ways to handle validations. In this post I will work with a simple View. I will later add a post where I will use some new Validation features in Siverlight 4 and where I also use the MVVM pattern and Commanding.

       
  • 0 comments  /  posted by  Silverlight Show  on  Aug 10, 2009 (10 months ago)
    Tags: View Models , DataContext , Binding , MVVM , WPF

    The construction of a ViewModel is often the standard technique for solving binding problems within Silverlight. However, the addition of a ViewModel adds complexity to your code. In this post Colin Eberhardt describes an alternative method where a mini-ViewModel is applied directly to the problem areas in the view, leaving the rest to use simpler binding to business objects.

    One of the features of WPF / Silverlight that appealed to me immediately when I started to learn it was the flexibility of the binding framework. The concepts of DataContext inheritence and flexibility of the value converters results in a lot less glue-code, which makes me a happy developer! However, it does not take long before you start finding examples that just dont fit with the framework and things start to get just little more complex. This blog post describes one such example.

  • SetterValueBindingHelper makes Silverlight Setters better

    0 comments  /  posted by  Silverlight Show  on  May 08, 2009 (more than a year ago)
    Tags: Binding , Styles , Setters

    David Anson will explain you why and how you should use a Setter in your Silverlight application.

    Earlier this week I wrote about the "app building" exercise my team conducted and posted my sample application, a simple organizational hierarchy viewer using many of the controls in the Silverlight Toolkit. One of the surprises I had during the process of building this application was that Silverlight (version 2 as well as the Beta for version 3) doesn't support the scenario of providing a Binding in the Value of a Setter. I bumped into this when I was trying to follow one of the "best practices" for TreeView manipulation - but I soon realized the problem has much broader reach.

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

    In a previous post Colin Eberhardt demonstrated a technique for binding a Silverlight DataGrid to dynamic data. With his next blog post Colin extends the previously described method by adding change notification.

    In my previous blog post I described a method for solving the commonly faced problem of binding a Silverlight DataGrid to dynamic data, the form of which is not know at compile time. This blog post extends on the method previously described, adding change notification, allowing the DataGrid to synchronise the UI with changes to the bound data and to allow the user to edit the DataGrid’s contents.

  • Silverlight Relay Base Class

    0 comments  /  posted by  Silverlight Show  on  Mar 10, 2009 (more than a year ago)
    Tags: Binding , XAML

    Chris Cavanagh has made a Silverlight relay base class.

     

    Silverlight 2 doesn’t support WPF’s ElementName or RelativeSource binding.  The simplest solution is to use a “relay” class and have multiple UI elements binding to it.  Alan Cobb has a great post about it here.

    If you want to write your own relay, here’s a base class that can handle the basic plumbing.

  • 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.


Page 
  • 1
  • 2
Next
Help us make SilverlightShow even better and win a free t-shirt. 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 a 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)