Backstage tab area lost the style

Ribbon for WPF Forum

Posted 8 years ago by Arthur
Version: 11.1.0542
Avatar
Hi,

I use CommonThemeName.Office2010Black style.

but i have problem with style inside

<ribbon:Ribbon.ApplicationMenu>
<ribbon:Backstage>
<ribbon:BackstageTab Header="Info">
<...>
<...>
for first opening File tab style works, but if i close file tab and open again it show without style, ribbon:Backstage tab area gets white background, there is no Office2010Black style.
referencing to my previous Thread the one of the reasons that i embedded
<ribbon:Backstage>
inside
<ribbon:ApplicationMenu>
was this style issue.

How do i get this work?

[Modified at 04/14/2011 04:39 AM]

Comments (4)

Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Arthur,

We're not aware of any issues with themes on Backstage, as we haven't seen problems in any of our samples. So it could be something in your app's configuration that is causing it.

If you are seeing a problem, please make a new simple sample project that shows the issue and email it to us (reference this post). Make sure you rename the .zip file extension so it doesn't get spam blocked. Thanks.


Actipro Software Support

Posted 8 years ago by Diana
Avatar
Hello,

I believe I do have the same problem.
In the project I'm using Office2010Black theme. And have File menu enabled.
Backstage looses it's style after second attempts to open it.

Sending project files by email.

Thank you,
Diana
Posted 8 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Hi Diana,

Thanks for the sample. I didn't see any problems when I opened Backstage several times though.

But I did notice you did this in your MainWindow_Loaded handler:
ThemeManager.SetTheme(this, CommonThemeName.Office2010Black.ToString());
That method is really only for testing and should not be used for production. For production (and in general) you should do this in your application startup before any Windows are loaded:
ThemeManager.CurrentTheme = CommonThemeName.Office2010Black.ToString();
Then if you need to change themes at run-time later, like if the user wants the blue theme, do this:
ThemeManager.CurrentTheme = CommonThemeName.Office2010Blue.ToString();
Maybe that will help solve the problem you are seeing.


Actipro Software Support

Posted 8 years ago by Diana
Avatar
Hi,

Using ThemeManager.CurrentTheme for setting the theme resolved my problem.

Thank you very much,
Diana
The latest build of this product (v2018.1 build 0675) was released 1 month ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.