No background color on Flyout navigation bar #26386
Replies: 13 comments
-
Here is the repro project... TestPrism.zip |
Beta Was this translation helpful? Give feedback.
-
Can you maybe explain a bit more about what you have tried and what you think it should do but doesn't work? Looking at your code the only reference to doing this seems to be in Also, it would really help if you could provide a reproduction project as a public GitHub repo next time, thanks! |
Beta Was this translation helpful? Give feedback.
-
Hi, my aim is to put a color to the navigationbar background. I set all the properties I think I need but in android it appears in blue and in IOS in white...... Here is a repro project https://github.com/AngeloLazzari/NavigationBarColorTest thanks |
Beta Was this translation helpful? Give feedback.
-
I think you should be using the |
Beta Was this translation helpful? Give feedback.
-
Hi, I don't use shell, I use FLyout page and prism navigation. |
Beta Was this translation helpful? Give feedback.
-
I am not sure I understand what should be having a color... Maybe attach a screenshot and circle/color the part you think should have color. I see NavigationPage has a BarBackgroundColor... But not sure what should be colored as you don't have any navigation properties set, just the page background. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
The page background is just setting the background of the page, and not of the nav bar. Now, how to set the nav bar, let me see if @PureWeen knows... |
Beta Was this translation helpful? Give feedback.
-
I think Prism is hiding the navigation page for you, but you can still get to it via a style: <FlyoutPage.Resources>
<ResourceDictionary>
<Style TargetType="NavigationPage" ApplyToDerivedTypes="True">
<Setter Property="BarBackgroundColor" Value="Yellow" />
</Style>
</ResourceDictionary>
</FlyoutPage.Resources> |
Beta Was this translation helpful? Give feedback.
-
Let me know if that helps. |
Beta Was this translation helpful? Give feedback.
-
Yes, it worked like a charm!!!! thank you very much. One more think, now I have to change the title, menu and icones that appear on the navigation bar, i tryed with TextColor, color, titleColor, but no way, can you help me a bit more? |
Beta Was this translation helpful? Give feedback.
-
I am not sure, but @PureWeen may know. But, the docs say BarTextColor and IconColor are the things to use. Have you tried those? You may also have to put it in the style since you do not have access to the navigation page directly. |
Beta Was this translation helpful? Give feedback.
-
yes, all is working with that, thank you very much for the help. |
Beta Was this translation helpful? Give feedback.
-
This issue has been moved from a ticket on Developer Community.
I created a simple proyect with a flyout, using prism library too...
We put the code to color the navigation bar in red and yellow but no way to have it in Ios simulator... or android app...
In android it appears in blue, and iphone in white...
How can we do it?
thanks
Original Comments
Feedback Bot on 11/6/2024, 05:52 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Beta Was this translation helpful? Give feedback.
All reactions