PrismLibrary / Prism

Prism is a framework for building loosely coupled, maintainable, and testable XAML applications in WPF, Xamarin Forms, and Uno / Win UI Applications..

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] Tabbed Page doesn't show icons and title when using NavigationPage

sact1909 opened this issue · comments

Description

Tabbed Page doesn't show Icons and Title when adding AddNavigationPage().AddSegment() to CreateTab() method.

I try to use the following code on the pages that I'm using to create the tabs but it's still happen
prism:TabbedPage.IconImageSource="setting.png"
prism:TabbedPage.Title="Page Three"

Current Behavior

Recording.2023-12-27.042752.mp4

Expected Behavior
Screenshot_1703669492

Steps to Reproduce

  1. Create a MAUI App using Prism Template
  2. Create MAUI TabbedPage (it doesn't matter if you avoid this step and create the tabbed page with the extension method)
  3. Add the Tabs to TabbedPage using ExtensionQueryMethod in the PrismStartup.cs
    image
  4. Add IconImageSource to the Tabs Pages
  5. Run the app.

(It still happen using a MAUI App Template and adding the corresponding libraries to use Prism).

Sample Project
TestPrismMaui.zip

Platform with bug

.NET MAUI

Affected platforms

Android

Did you find any workaround?

The only way this works is adding the pages manually to the TabbedPage with its NavigationPage

<NavigationPage Title="PageOne" IconImageSource="bowlricesolid.svg"> <x:Arguments> <locals:PageOne /> </x:Arguments> </NavigationPage>

but, the prism documentation specifies that you don't recommend doing this, but it is the only way that the application has the expected behavior using the TabbedPage, the app looks working properly, using for a while and no crashing any time, but if you warning us about it, is because there is something you know that we don't, but in other ways, it doesn't work and its better if I do as you recommend it.
image

Relevant log output

No response

@sact1909 a sample reproduction is required

@dansiegel Nice, here the same I used to take the video and the image

TestPrismMaui.zip

@sact1909 thanks for the sample... I see what your issue is... it should be fixed in the next release.

NICE @dansiegel , glad to hear this will be fixed in the next release, sorry If I bother you, I know you are someone very busy and I don't wanana sound annoying doing dumbs questions to you, but I would like to know when we shall have this new release (dont have to say the exactly date), I'm asking because my customer need information about the state of her application development and I need to let her know whats happening

Looking at doing the next public preview in the next week or two. But you can get access to the latest builds with the Commercial Plus license.