This commit is contained in:
Administrator committed 2026-05-10 03:26:37 +08:00
commit 2c164c1aa0
1 file changed
+2 -2
+2 -2
View File
@@ -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();