Skip to content

Instantly share code, notes, and snippets.

@yaakovgamliel
Created November 2, 2014 20:13
Show Gist options
  • Save yaakovgamliel/2867835d07ca65ee3eb9 to your computer and use it in GitHub Desktop.
Save yaakovgamliel/2867835d07ca65ee3eb9 to your computer and use it in GitHub Desktop.
Aque se te parace??
public class ScenarioBindingConverter : IValueConverter
{
public object Convert(object value, Type targetType, object parameter, string language)
{
Scenario s = value as Scenario;
return (MainPage.Current.Scenarios.IndexOf(s) + 1) + ") " + s.Title;
}
public object ConvertBack(object value, Type targetType, object parameter, string language)
{
return true;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment