This is a migrated thread and some comments may be shown as answers.

RadWindow Background and BorderBackground

1 Answer 44 Views
Window
This is a migrated thread and some comments may be shown as answers.
Ivan Kopcanski
Top achievements
Rank 1
Ivan Kopcanski asked on 19 Apr 2010, 02:24 PM
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?

1 Answer, 1 is accepted

Sort by
0
Ivan Kopcanski
Top achievements
Rank 1
answered on 19 Apr 2010, 03:29 PM
This post is duplicate for the following thread:
Please, continue the discussion there, this thread is started by mistake when server error occurred.
Tags
Window
Asked by
Ivan Kopcanski
Top achievements
Rank 1
Answers by
Ivan Kopcanski
Top achievements
Rank 1
Share this question
or