Ciao,
grazie della segnalazione.
Per il primo punto ho usato la classse IValueConverter:
Per il secondo punto cerco una soluzione più "rapida"....codice:public class StringConverter : IValueConverter { public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { SchedType obj = value as SchedType; string description = obj.Description; if (description == null) return null; if (description.Length > 1) return char.ToUpper(description[0]) + description.Substring(1); return description.ToUpper(); } public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture) { throw new NotImplementedException(); } }



Rispondi quotando
