|
@@ -1,7 +1,5 @@
|
|
using System;
|
|
using System;
|
|
using System.ComponentModel;
|
|
using System.ComponentModel;
|
|
-using System.Globalization;
|
|
|
|
-using Xamarin.Forms;
|
|
|
|
|
|
|
|
namespace InABox.Mobile
|
|
namespace InABox.Mobile
|
|
{
|
|
{
|
|
@@ -23,20 +21,4 @@ namespace InABox.Mobile
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
-
|
|
|
|
- public class StringWithDefaultValueConverter : IValueConverter
|
|
|
|
- {
|
|
|
|
-
|
|
|
|
- public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
|
|
|
- {
|
|
|
|
- return String.IsNullOrWhiteSpace(value as String)
|
|
|
|
- ? parameter
|
|
|
|
- : value;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
- public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
|
|
|
- {
|
|
|
|
- throw new NotImplementedException();
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
}
|
|
}
|