Verify handlers and fix ImageButtonHandler
Verified handlers (method-by-method comparison with decompiled): - CheckBoxHandler, SwitchHandler, SliderHandler, ProgressBarHandler - ImageHandler, BoxViewHandler, ScrollViewHandler, EditorHandler Fixed: - ImageButtonHandler: Added missing MapBackgroundColor method Blocked: - BorderHandler: Needs SkiaBorder.MauiView and Tapped event (View issue) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -24,6 +24,7 @@ public partial class ImageButtonHandler : ViewHandler<IImageButton, SkiaImageBut
|
|||||||
[nameof(IButtonStroke.CornerRadius)] = MapCornerRadius,
|
[nameof(IButtonStroke.CornerRadius)] = MapCornerRadius,
|
||||||
[nameof(IPadding.Padding)] = MapPadding,
|
[nameof(IPadding.Padding)] = MapPadding,
|
||||||
[nameof(IView.Background)] = MapBackground,
|
[nameof(IView.Background)] = MapBackground,
|
||||||
|
["BackgroundColor"] = MapBackgroundColor,
|
||||||
};
|
};
|
||||||
|
|
||||||
public static CommandMapper<IImageButton, ImageButtonHandler> CommandMapper = new(ViewHandler.ViewCommandMapper)
|
public static CommandMapper<IImageButton, ImageButtonHandler> CommandMapper = new(ViewHandler.ViewCommandMapper)
|
||||||
@@ -154,6 +155,16 @@ public partial class ImageButtonHandler : ViewHandler<IImageButton, SkiaImageBut
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static void MapBackgroundColor(ImageButtonHandler handler, IImageButton imageButton)
|
||||||
|
{
|
||||||
|
if (handler.PlatformView is null) return;
|
||||||
|
|
||||||
|
if (imageButton is Microsoft.Maui.Controls.ImageButton imgBtn && imgBtn.BackgroundColor is not null)
|
||||||
|
{
|
||||||
|
handler.PlatformView.BackgroundColor = imgBtn.BackgroundColor.ToSKColor();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Image source loading helper
|
// Image source loading helper
|
||||||
private ImageSourceServiceResultManager _sourceLoader = null!;
|
private ImageSourceServiceResultManager _sourceLoader = null!;
|
||||||
|
|
||||||
|
|||||||
@@ -12,14 +12,14 @@
|
|||||||
|------|--------|-------|
|
|------|--------|-------|
|
||||||
| ActivityIndicatorHandler.cs | [ ] | |
|
| ActivityIndicatorHandler.cs | [ ] | |
|
||||||
| ApplicationHandler.cs | [ ] | |
|
| ApplicationHandler.cs | [ ] | |
|
||||||
| BorderHandler.cs | [ ] | |
|
| BorderHandler.cs | [ ] | BLOCKED - needs SkiaBorder.MauiView and Tapped |
|
||||||
| BoxViewHandler.cs | [ ] | |
|
| BoxViewHandler.cs | [x] | Verified |
|
||||||
| ButtonHandler.cs | [ ] | Contains TextButtonHandler |
|
| ButtonHandler.cs | [x] | Contains TextButtonHandler - Verified |
|
||||||
| CheckBoxHandler.cs | [ ] | |
|
| CheckBoxHandler.cs | [x] | Verified |
|
||||||
| CollectionViewHandler.cs | [ ] | |
|
| CollectionViewHandler.cs | [ ] | |
|
||||||
| DatePickerHandler.cs | [ ] | |
|
| DatePickerHandler.cs | [ ] | |
|
||||||
| EditorHandler.cs | [ ] | |
|
| EditorHandler.cs | [x] | Verified |
|
||||||
| EntryHandler.cs | [ ] | |
|
| EntryHandler.cs | [x] | Verified |
|
||||||
| FlexLayoutHandler.cs | [ ] | |
|
| FlexLayoutHandler.cs | [ ] | |
|
||||||
| FlyoutPageHandler.cs | [ ] | |
|
| FlyoutPageHandler.cs | [ ] | |
|
||||||
| FrameHandler.cs | [ ] | |
|
| FrameHandler.cs | [ ] | |
|
||||||
@@ -29,22 +29,22 @@
|
|||||||
| GtkWebViewManager.cs | [ ] | |
|
| GtkWebViewManager.cs | [ ] | |
|
||||||
| GtkWebViewPlatformView.cs | [ ] | |
|
| GtkWebViewPlatformView.cs | [ ] | |
|
||||||
| GtkWebViewProxy.cs | [x] | Added new file from decompiled |
|
| GtkWebViewProxy.cs | [x] | Added new file from decompiled |
|
||||||
| ImageButtonHandler.cs | [ ] | |
|
| ImageButtonHandler.cs | [x] | FIXED - added MapBackgroundColor |
|
||||||
| ImageHandler.cs | [ ] | |
|
| ImageHandler.cs | [x] | Verified |
|
||||||
| ItemsViewHandler.cs | [ ] | |
|
| ItemsViewHandler.cs | [ ] | |
|
||||||
| LabelHandler.cs | [ ] | |
|
| LabelHandler.cs | [x] | Verified |
|
||||||
| LayoutHandler.cs | [ ] | Contains GridHandler, StackLayoutHandler, LayoutHandlerUpdate |
|
| LayoutHandler.cs | [x] | Contains GridHandler, StackLayoutHandler, LayoutHandlerUpdate - Verified |
|
||||||
| NavigationPageHandler.cs | [ ] | Contains RelayCommand |
|
| NavigationPageHandler.cs | [ ] | Contains RelayCommand |
|
||||||
| PageHandler.cs | [x] | Added MapBackgroundColor |
|
| PageHandler.cs | [x] | Added MapBackgroundColor |
|
||||||
| PickerHandler.cs | [ ] | |
|
| PickerHandler.cs | [ ] | |
|
||||||
| ProgressBarHandler.cs | [ ] | |
|
| ProgressBarHandler.cs | [x] | Verified |
|
||||||
| RadioButtonHandler.cs | [ ] | |
|
| RadioButtonHandler.cs | [ ] | |
|
||||||
| ScrollViewHandler.cs | [ ] | |
|
| ScrollViewHandler.cs | [x] | Verified |
|
||||||
| SearchBarHandler.cs | [ ] | |
|
| SearchBarHandler.cs | [ ] | |
|
||||||
| ShellHandler.cs | [ ] | |
|
| ShellHandler.cs | [ ] | |
|
||||||
| SliderHandler.cs | [ ] | |
|
| SliderHandler.cs | [x] | Verified |
|
||||||
| StepperHandler.cs | [ ] | |
|
| StepperHandler.cs | [ ] | |
|
||||||
| SwitchHandler.cs | [ ] | |
|
| SwitchHandler.cs | [x] | Verified |
|
||||||
| TabbedPageHandler.cs | [ ] | |
|
| TabbedPageHandler.cs | [ ] | |
|
||||||
| TimePickerHandler.cs | [ ] | |
|
| TimePickerHandler.cs | [ ] | |
|
||||||
| WebViewHandler.cs | [x] | Fixed namespace-qualified event args |
|
| WebViewHandler.cs | [x] | Fixed namespace-qualified event args |
|
||||||
|
|||||||
Reference in New Issue
Block a user