This is a migrated thread and some comments may be shown as answers.

Transparency Problem with RadMessageBox

1 Answer 71 Views
MessageBox
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shawn
Top achievements
Rank 1
Shawn asked on 25 May 2012, 07:54 PM
I have a RadMessageBox that when it fires the closedHandler it navigates back to a page.  But that page's background is now transparent. Is the message box code manipulating containers or anything that it could be grabbing the wrong container and setting it as transparent? Here's an example

RadMessageBox.Show("Are you sure",
            MessageBoxButtons.YesNo,
            "Are you sure you wish to delete this order?",
            vibrate: false,
            closedHandler: a =>
                {
                    if (a.Result == DialogResult.OK)
                    {
                        // Do Some Work Then...
                        App.Current.RootFrame.GoBack();
                    }
                });

Anything look odd here (e.g. should the closedHandler run on the UI thread automatically?)

UPDATE: Confirmed that there is code running after the closed handler that is looking for and changing my transparency to about 80% from 100%. Replace code with MessageBox and it doesn't happen. 

ANOTHER UPDATE: I've confirmed the bug with a reproducable case. It seems that if I have a container with a background of "{StaticResource PhoneBackgroundBrush}" it makes that 80%ish in my case (mixed in with navigation it seems). My guess is that you're looking for the brush as an indication of an ancestor and finding my overlay. If I make the background "Black" it works but that's not an acceptable fix.   I can share a reproducible case (can't attach it here).  Feel free to contact me directly.

1 Answer, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 28 May 2012, 03:49 PM
Hello Shawn,

Thanks for reporting this.
You are absolutely correct. I am changing the opacity of the system brush however this is not appropriate since Brush is not a value type. This is a bug and the fix is already in our code base. It will be available in the Q2 2012 release (June 6th) or an internal build if you need it sooner.

Kind regards,
Victor
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
MessageBox
Asked by
Shawn
Top achievements
Rank 1
Answers by
Victor
Telerik team
Share this question
or