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

Office2013 not showing up

1 Answer 67 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Mattias
Top achievements
Rank 1
Mattias asked on 29 Jan 2015, 01:00 PM
Hi,

We're trying to implement the Office2013 theme in our application. But some of the components don't show up when we try to use the Office2013 theme. We've followed the "Setting a Theme (Using Implicit Styles)" and "Office2013 Theme" guides without success.

The application consists of a few different projects, for example:

1. A few different "control projects" where we have a bunch of controls gathered that uses RadWindow, RadGridView, and more. 
2. A main application project that references those projects and uses the controls

In the main application there's an applicationdefinition file that references all those implicit styles, like this:
<Application.Resources>
       <ResourceDictionary>
           <ResourceDictionary.MergedDictionaries>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/System.Windows.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Chart.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Data.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.DataVisualization.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Diagrams.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Diagrams.Extensions.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Docking.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Expressions.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewers.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.FixedDocumentViewersUI.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GanttView.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.GridView.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.ImageEditor.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Input.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.MediaPlayer.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Navigation.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Pivot.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.PivotFieldList.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.RibbonView.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.RichTextBoxUI.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.ScheduleView.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Controls.Spreadsheet.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Documents.xaml"/>
               <ResourceDictionary Source="/Telerik.Windows.Themes.Office2013;component/Themes/Telerik.Windows.Documents.Proofing.xaml"/>
              </ResourceDictionary.MergedDictionaries>
       </ResourceDictionary>
   </Application.Resources>

Using Office2013, I can in runtime "create" a RadWindow and it shows correctly. But when we try to use a control from one of our other projects that uses RadWindow as base, for example, nothing but the content inside the window shows up. Using any other theme that is not "implicit" works. 

It probably has to do with the control projects not merging in the required resourcedictionaries. But, we've tried to include the same resourcedictionaries in the other control projects without success. Any suggestions on how to approach this problem?

1 Answer, 1 is accepted

Sort by
0
Vanya Pavlova
Telerik team
answered on 29 Jan 2015, 05:45 PM
Hi Mattias,


You could check the following help article, which demonstrates how to style RadWindow with implicit styles, when it's used as a user control. 
Hope this helps. 


Regards,
Vanya Pavlova
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
General Discussions
Asked by
Mattias
Top achievements
Rank 1
Answers by
Vanya Pavlova
Telerik team
Share this question
or