Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
110
Tweaking a Themed styles using a BasedOn style
posted

Hi folks,

I've been trying to fine tune the look and feel of a XamDataGrid by applying a gradient to the background and making the default cell background white rather than transparent, but of course, the custom style is ignored if you're using the Theme property to style the XamDataGrid.

I came across this blog entry by Andrew Smith which suggests using a style BasedOn the theme's style which would work nicely.

http://blogs.infragistics.com/blogs/andrew_smith/archive/2009/12/09/common-style-issues-when-using-the-theme-property.aspx

The trick is the BasedOn attribute requires the name/key of the theme style.  Where do I find these names?

For example, in the last xaml snippet in the block the style is defined as:

<Style TargetType="igWindows:TabItemEx"
              BasedOn="{x:Static igThemes:PrimitivesOffice2k7Black.TabItemEx}">
        <Setter Property="FontWeight" Value="Bold" />
</Style>

How do I know to use "igThemes:PrimitivesOffice2k7Black.TabItemEx"?  Where can I get these values?

Cheers
David

Parents
No Data
Reply
  • 69686
    posted

    Hello David,

    You can find all the styles/templates/brushes/resource keys in the defaul xaml files that we ship with the product. They are located in the DefaultStyles directory in the ProgramFiles\Infragistics folder.

Children