Welcome to the Xceed Community Sign in | Join | Help
Community Search  

DataRow SelectionBackground

Sort Posts: Previous Next
  •  07-04-2008, 6:26 AM Post no. 13427

    DataRow SelectionBackground

    When I create a custom Style targeting a DataRow and set for example the Background to a certain value the change appears at runtime on the interface also. However my question is that if I set the SelectionBackground property to a certain value I can not see it (it is not applied). I have succeeded to accomplish this behaviour only after creating the custom style with a ControlTemplate in it. Shouldn't I see the desired SelectionBackground just by creating a style without the controltemplate and setting the SelectionBackground property in the Style setter to the desired value?

    Thanks in advance,

    Ervin

    Filed under:
  •  07-04-2008, 10:16 AM Post no. 13429 in reply to 13427

    Re: DataRow SelectionBackground

    On some themes, like Aero (default in windows vista) we had to create a VisualTree in order to obtain the desired selection look. If you test with classic for example, it will probably work. So for themes you see that might include a visual tree (more than 1 visual element, not just a color), you will have to re-style/re-template the object yes. This is the expected behavior.


    Mathieu Drimonakos
    -Technical Designer-
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.