Welcome to the Xceed Community | Help
Community Search  
More Search Options

ThemeKey extension not working.

Sort Posts: Previous Next
  •  12-08-2010, 6:00 PM Post no. 29412

    ThemeKey extension not working.

    Hi. I have unique resource file where I want to add a stye for a DataRow. My application supports TableView and CardView. The problem is that I would like to have both Styles for the same object and applied automatically when the Grid's View changes to any of the views.. The problem is that I can not make it work. Can anybody help me Please. I found a post about ThemeKey extension, but I don't know if it is a Xceed bug.

    My code looks like this for the CardView Style:

            <Style x:Key="DataRowCardViewRow"  TargetType="xcdg:DataRow">
                <Setter Property="SelectionBackground" Value="Red"/>
            </Style>

            <Style  x:Key="{markup:ThemeKey TargetViewType=views:CardView, TargetElementType=xcdg:DataRow}"
                 TargetType="xcdg:DataRow"
                  BasedOn="{StaticResource DataRowCardViewRow}"/>

     

    Filed under: , ,
  •  12-09-2010, 12:55 PM Post no. 29420 in reply to 29412

    Re: ThemeKey extension not working.

    Hi Darwin, 

    Can you provide us with your sample application so that we investigate this in more detail?

     you can send it to support@xceed.com , and please include a reference to this forum post in your email. 

      


    Best Regards,

    Michel Dahdah
    Technical Support
    Xceed Software inc.
  •  02-16-2011, 10:15 AM Post no. 29862 in reply to 29420

    Re: ThemeKey extension not working.

    Hi Darwin,

    This could be because you are not specifying the ThemeType in your ThemeKey. Otherwise, we recommend that you do it in code behind instead.

     


    ** Quick Tip: Clients with an active support subscription should be sending their questions by email if they wish to benefit from the faster response time. Thanks!


    Diane Lafontaine
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2011 Xceed Software Inc.