Backpage background color loosing color

My project has 4 buttons inside backpage. 2 of those buttons redirect to pages.

When I return back to brackdrop page, the backpage looses the background color.

I am sending a zip file with the backdrop page before and after navigation.

I am using open source version 20.1.0.51 .

Thanks.



Attachment: backdrop_page_before_after_19ea014f.zip

3 Replies

ET Eswaran Thirugnanasambandam Syncfusion Team May 23, 2022 03:59 PM UTC

We created a simple sample based on your scenario and checked the reported problem by applying color to back layer using Background property. But we are unable to reproduce the reported problem from our side. We have prepared a video to demonstrate that the back layer will not lose the background color after navigating the page. Please get the sample and video from the below attachment


If you still face any problem, can you revert us by modifying the sample based on your scenario along with replication steps. It will help us provide an appropriate solution at the earliest.


Attachment: SfBackdrop_Sample_8f53c13b.zip


MA Marcelo May 23, 2022 09:48 PM UTC

Hi,

You have used the Background property to set backlyer background color. Why do not use BackgroundColor property, as you have used in Frontlayer ?

But, let me explain better my problem. My app uses a parameter color. I do not set it with a hex code directly into the Background or BackgroundColor properties.

So, now this is my situation:

- If I use Background property with a named color, ok, it works. But, if I use my parameter, dont. The control ignores my parameter color. The navigation do not makes the color disappears, if I use a named color ou set hex directly in the control.

- If I use BackgroundColor property with my parameter color, ok, it works only when I call my page in the first time. But, when I navigate from this page to another and returns, I lose my parameter color.

I need to set this color as a parameter, cause this parameter is different from client to client. This app is used as a template, so I copy it to different clients and change the color scheme.

I am sending you 3 videos:

  • 1 with background property set to red showing that I can navigate without any problem
  • 1 with background property do not recognizing my parameter color, but accepting named color
  • 1 with backgroundcolor property set to my parameter color, but losing this color when I navigate

So, to resume, I need to use parameter color in backlayer, not named color or hex color directly in xaml, and I need to maintain this parameter color when I navigate.

A observation is that my app uses Prism MVVM. So, my navigation is different from what was shown in your sample project.

Regards,

Marcelo.



Attachment: videos_279fb23b.zip



ET Eswaran Thirugnanasambandam Syncfusion Team May 24, 2022 03:11 PM UTC

We tested the reported problem with a simple prism sample and applied color to the BackgroundColor property from the application resource and bind it from property. But we are unable to replicate the reported problem from our side in both cases. Please get the tested sample from the below attachment.


If you still face any problem, can you revert us by modifying the sample based on your scenario along with replication steps. It will help us provide an appropriate solution at the earliest.


Attachment: ScheduleXamarin_39570e5.zip

Loader.
Up arrow icon