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

Search

Go
 
Want better search results?  See our search tips!

Learn


  • 6 comments  /  posted by  Martin Mihaylov  on  Sep 09, 2008 (more than a year ago)
    If you're not familiar with the value converters read this. The methods generated by the VisualStudio when creating a custom class that implements System.Windows.Data.IValueConverter have several arguments. One of them is of type object and is called parameter. public class DateTimeConverter : System.Windows.Data.IValueConverter { public object Convert( object value, Type targetType, object parame ...
  • 1 comments  /  posted by  Martin Mihaylov  on  Sep 09, 2008 (more than a year ago)
    First let's explain what the converters can be used for. Imagine you bind to an object's property, but the property is not formatted to your likings. In this case you can use converters. For example we bind to the PublishDate property of a Book object and want the date to be formatted like this - "dd MMM, yyyy". Book myBook = new Book(); myBook.PublishDate = DateTime.Now; First let's create our co ...
See all 2 results


News

No items found

Books

No items found

Showcase

No items found


  • All
  • Learn
  • News
  • Forums
  • Books
  • Showcase