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

Problem with Office2013 theme and backstage

2 Answers 96 Views
RibbonView and RibbonWindow
This is a migrated thread and some comments may be shown as answers.
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Patrick asked on 25 Oct 2013, 03:49 PM
Hello,
I'm trying to use the Office2013 theme within my application.
One problem I have is I have, for one of the backstage item, a content that contains TextBlocks. The default background color for the backstage content is white and the text color for TextBlocks is also white, so the text is not visible.
Patrick

2 Answers, 1 is accepted

Sort by
0
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
answered on 28 Oct 2013, 07:27 AM
This can easily be seen by:

1. creating a WPF application

2. adding references to Telerik.Windows.Controls, Telerik.Windows.Controls.Input, Telerik.Windows.Controls.Navigation, Telerik.Windows.Controls.RibbonView and Telerik.Windows.Themes.Office2013.

3. Replacing MainWindow.xaml with:
<telerik:RadRibbonWindow
  x:Class="RibbonViewWindow.MainWindow"
  Title="MainWindow" Height="350" Width="525">
 
  <Grid>
    <telerik:RadRibbonView x:Name="radRibbonView"
                           Align="Justify"
                           ApplicationButtonContent="Hi"
                           ApplicationName="Problem with backstage"
                           HelpButtonVisibility="Visible"
                           MinimizeButtonVisibility="Visible"
                           Title="Test">
      <telerik:RadRibbonView.Backstage>
        <telerik:RadRibbonBackstage>
          <telerik:RadRibbonBackstageItem Header="Backstage item 1">
            <StackPanel Margin="10">
              <TextBlock Text="Content not visible" />
              <TextBlock Background="Blue" Text="Content visible" />
            </StackPanel>
          </telerik:RadRibbonBackstageItem>
        </telerik:RadRibbonBackstage>
      </telerik:RadRibbonView.Backstage>
    </telerik:RadRibbonView>
  </Grid>
</telerik:RadRibbonWindow>

4. Replacing MainWindow.xaml.cs with:
using Telerik.Windows.Controls;
 
namespace RibbonViewWindow
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : RadRibbonWindow
    {
        public MainWindow()
        {
            InitializeComponent();
        }
    }
}

5. Running the application and clicking on the backstage item.

Patrick
0
Kiril Vandov
Telerik team
answered on 30 Oct 2013, 01:01 PM
Hello Patrick,

You are right that the foreground of the RadRibbonBackstageItem content is white, same as its background and that is causing the content to be displayed as "invisible". I have created a PITS item you could track its progress here. I also updated your Telerik points.

As a workaround until this issue is fixed you could change the foreground of the root element( in your case the StackPanel) or directly change the TextBlock foreground.

Please excuse us for any inconvenience caused.

Kind regards,
Kiril Vandov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>
Tags
RibbonView and RibbonWindow
Asked by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
Kiril Vandov
Telerik team
Share this question
or