A Microsoft open-source framework for building native device applications spanning mobile, tablet, and desktop.
Issue with TabbedPageRenderer Causing IconImageSource to Disappear on CurrentPageChanged Event
Thinh NPD
45
Reputation points
I am experiencing an issue with the custom implementation of TabbedPageRenderer in .NET MAUI. When the CurrentPageChanged event is invoked, the IconImageSource for the tabs intermittently disappears. This behavior seems related to how the renderer handles updates to the tab layout and icons during page changes.
Here are the key details of the implementation:
- A custom renderer (
FTabbedRenderer) is being used to customize tab properties, including badge views and icon updates. - The
OnElementChangedmethod initializes the layout and adds custom badges to the tabs. - The
CurrentPageChangedevent updates theIconImageSourcefor tabs dynamically based on the selected state. - When load
- When change page
-
Developer technologies | .NET | .NET MAUI
Developer technologies | .NET | .NET MAUI
Sign in to answer