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

Implicit Themes do not apply

Sort Posts: Previous Next
  •  09-07-2010, 4:53 AM Post no. 28587

    Implicit Themes do not apply

    Hi Forum,

    I m evaluating the Professional Themes for WPF (v2.0.10417.18200)
    and the following problems occured:


    1. Menu element do not apply implicit themes and are dispalyed white.
    2. Window element do not apply implicit themes and are dispalyed white. If this is the default, how can I get a office2007blue background for my window, shown in the Theme Explorer?

    I've found several posts in forum, explaining a workaround with explicit themes but we don't want to use.
    Thanks for help

    Regards Torsten

  •  09-08-2010, 10:44 AM Post no. 28608 in reply to 28587

    Re: Implicit Themes do not apply

    Hi Forum,

    due to some limitations in the framework, it is a known issue when applying a theme implict, the background of the application does not get affected properly.

    So you have to set the background explicitly!
    Here is an example:
    ...
    xmlns:xcpt="clr-namespace:Xceed.Wpf.Themes.Office2007;assembly=Xceed.Wpf.Themes.Office2007.v2.0"
    <Menu Background="{x:Static xcpts:Office2007BlueResources.ControlBackgroundBrush}">
    ...

    Don't forget to change all of this references if you want to switch to another theme.

    Kind regards,
    Torsten

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