Skip to content

Instantly share code, notes, and snippets.

@grimorde
Created February 19, 2020 12:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save grimorde/b45ee822503433b13db4f158035aac29 to your computer and use it in GitHub Desktop.
Save grimorde/b45ee822503433b13db4f158035aac29 to your computer and use it in GitHub Desktop.
Converter
public class MyConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
// do something to get a new value
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
// and change it back if you want to
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment