diff --git a/Converters/StringToBoolConverter.cs b/Converters/StringToBoolConverter.cs index b7e9d3a..1692595 100644 --- a/Converters/StringToBoolConverter.cs +++ b/Converters/StringToBoolConverter.cs @@ -18,7 +18,7 @@ namespace SunlightAggregationTerminal.Converters public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { - // 单向绑定通常不需要实现,除非你需要双向绑定 + // 单向绑定 throw new NotImplementedException(); } } diff --git a/Converters/StringToImageConverter.cs b/Converters/StringToImageConverter.cs index c5b6904..cb01550 100644 --- a/Converters/StringToImageConverter.cs +++ b/Converters/StringToImageConverter.cs @@ -31,7 +31,6 @@ namespace SunlightAggregationTerminal.Converters public object ConvertBack(object? value, Type targetType, object? parameter, CultureInfo culture) { - // 通常图片转回字符串在 UI 上很少用到,可以抛出异常或留空 throw new NotImplementedException(); } } diff --git a/InfoDetail.xaml b/InfoDetail.xaml index 122fe08..e3c78bb 100644 --- a/InfoDetail.xaml +++ b/InfoDetail.xaml @@ -7,6 +7,7 @@ + diff --git a/InfoPage.xaml.cs b/InfoPage.xaml.cs index 873c2e9..00bddf9 100644 --- a/InfoPage.xaml.cs +++ b/InfoPage.xaml.cs @@ -84,7 +84,7 @@ public partial class InfoPage : ContentPage { WeakReferenceMessenger.Default.UnregisterAll(this); } - + private async void TapGestureRecognizer_Tapped(object sender, TappedEventArgs e) { // 将 sender 强制转换为 BindingContext 定义在 BindableObject