(X) Hide this
    • Login
    • Join
      • Say No Bots Generate New Image
        By clicking 'Register' you accept the terms of use .

Windows 8 & Data Binding, Part 4 - Data Conversion

(0 votes)
0 comments   /   posted by Silverlight Show on Aug 20, 2012
Tags:   windows-8 , jesse-liberty

Read original post at Jesse Liberty's Blog

In Part 3 of this little mini-series on data binding in Windows 8 we looked at Element Binding. Today, we’ll take a look at Data Conversion.

At times the data in your business object (the source for your binding) and the target UIElement may not have an exact type match. For example, if your Employee class wants to keep track of the start date for each Employee, a sensible way to do so is with a DateTime object. However, when we display that data we’ll want to use a Text object, and we may not want the entire default conversion of a DateTime to a string.


Comments

No comments

Add Comment

Login to comment:
  *      *       

Our News on Twitter