Merge branch 'master' of http://www.scserverddns.top:13000/sc/SunlightAggregationTerminal
This commit is contained in:
commit
2c164c1aa0
1 file changed
+2
-2
@@ -8,7 +8,7 @@ namespace SunlightAggregationTerminal.Converters
|
||||
{
|
||||
public class StringToImageConverter: IValueConverter
|
||||
{
|
||||
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
public object Convert(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
if (value !=null)
|
||||
{
|
||||
@@ -29,7 +29,7 @@ namespace SunlightAggregationTerminal.Converters
|
||||
return ImageSource.FromFile("sunlightlogo.png");
|
||||
}
|
||||
|
||||
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
|
||||
public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture)
|
||||
{
|
||||
// 通常图片转回字符串在 UI 上很少用到,可以抛出异常或留空
|
||||
throw new NotImplementedException();
|
||||
|
||||
Reference in new issue
Block a user