TestValueConverter.cs 558 B

1234567891011121314151617181920
  1. using System;
  2. using System.Globalization;
  3. namespace Avalonia.Markup.Xaml.UnitTests.MarkupExtensions
  4. {
  5. public class TestValueConverter : IValueConverter
  6. {
  7. public string Append { get; set; }
  8. public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
  9. {
  10. return value.ToString() + Append;
  11. }
  12. public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
  13. {
  14. throw new NotImplementedException();
  15. }
  16. }
  17. }