RadWindow Background and BorderBackground

2 posts, 0 answers
  1. Ivan Kopcanski
    Ivan Kopcanski avatar
    47 posts
    Member since:
    Jul 2009

    Posted 19 Apr 2010 Link to this post

    Hi,

       I've managed to change recently the background of the RadWindow header
     by setting RadWindow.Background and RadWindow.BorderBackground properties.

    Important is that window is not the RadWindow class itself but inherited class: 
    public abstract class WindowBase : RadWindow {...}
    And all our windows are declared like this:
    XAML: <base:WindowBase x:Class="FrontEnd.SL.View.ListScreenView"
                xmlns:base="clr-namespace:FrontEnd.SL.UI" ... 
                Background={StaticResource ...} BorderBackground={StaticResource ...} />
    code-behind: public partial class ListScreenView : WindowBase

    Since we've installed 2010 Q3 build, the Background and BorderBackground settings are not enough.
    The header look 'n' feel is somehow forced with theme. I also tried to change the theme both in XAML and
    code-behind with no luck:

       XAML:StyleManager.Theme = "{StaticResource Theme}"
       code-behind:Theme theme = ThemeManager.FromName("Vista");
                                      StyleManager.SetTheme(this, theme);

    We know how to do this by modifying and applying the RadWindow template, but this is a lot of work for us at the moment.
    and code refactoring impact is huge. Is there any shorter and smarter solution than modifying the RadWindow template?
  2. Ivan Kopcanski
    Ivan Kopcanski avatar
    47 posts
    Member since:
    Jul 2009

    Posted 19 Apr 2010 Link to this post

    This post is duplicate for the following thread:
    Please, continue the discussion there, this thread is started by mistake when server error occurred.
  3. DevCraft banner
Back to Top