We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Extended Office 2013 Style

Thread ID:

Created:

Updated:

Platform:

Replies:

127916 Dec 18,2016 09:06 PM UTC Dec 20,2016 06:58 AM UTC WPF 3
loading
Tags: SkinManager
CSharpino
Asked On December 18, 2016 09:06 PM UTC

I created my style for the RibbonBar component but if I set my style the ribbon bar lose the Office 2013 Style set in main window.
How can I create a style that extends the your office 2013 style?



 

Attachment: TestOfficeStyle_88c97fb2.zip

Keerthana Jegannathan [Syncfusion]
Replied On December 19, 2016 09:05 AM UTC

Hi Mayank,   
    
We would like to explain about the behavior of ResourceDictionary. When you apply the style for the control using our SkinStorage, the style gets applied from our source then it gets overridden by the style which you have given in the sample level. This is the behavior of Style which gets applied based on priority. To overcome this, we need to use "BasedOn" property. We have modified your previously updated sample by including “BasedOn” property and it can be downloaded from the below location.   
   
Sample: RibbonOverrideStyle   
   
Please let us know whether it is helpful.   
   
Regards,   
Keerthana J   


CSharpino
Replied On December 19, 2016 04:47 PM UTC

ok this solution solves my problem but I have another question:

What is the difference between this file:
<ResourceDictionary Source="/Syncfusion.Shared.WPF;component/SkinManager/Office2013Style.xaml"/>
and this:
<ResourceDictionary Source="/Syncfusion.Tools.WPF;component/Framework/Ribbon/Themes/Office2013Style.xaml"/>


Thanks a lot.

Keerthana Jegannathan [Syncfusion]
Replied On December 20, 2016 06:58 AM UTC

Hi Mayanak,   
 
We have maintained our Ribbon control source under the directory “Syncfusion.Tools.WPF”. We have also separately maintained the Office2013 style file for Ribbon. So for our Ribbon control, the style file has been applied from the directory “/Syncfusion.Tools.WPF;component/Framework/Ribbon/Themes/Office2013Style.xaml”.   
Similarly, for MS controls (like ComboBox, TextBox…) we have maintained our style file under the assembly “Syncfusion.Shared.WPF”. Hence, From this directory “/Syncfusion.Shared.WPF;component/SkinManager/Office2013Style.xaml” Office2013 style gets applied to the MS controls . Please let us know if you need further assistance on this.   

Regards,  
  
Keerthana J   


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;