2010 Q3 Background and BorderBackground

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

    Posted 19 Apr 2010 Link to this post


       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="ListScreenView"
                xmlns:base="clr-namespace:FrontEnd.SL.UI" ... 
                Background={StaticResource ...} BorderBackground={StaticResource ...} />
    code-behind: public partial class ListScreenView : WindowBase

    Since we've installed 2010_1_0309 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 20 Apr 2010 Link to this post

    Sorry for the mistake, it is 2010_1_0309 build that we use, I put Q3 in the title by accident.
  3. DevCraft R3 2016 release webinar banner
  4. Answer
    Pana avatar
    748 posts

    Posted 22 Apr 2010 Link to this post

    Hi Ivan Kopcanski,

    There is no property for the header background. You will have to edit the template.

    The themes had serious redesign. It was done to make our controls look more consistent. We will consider removing the gradient from the RadWindow header so the header may be affected by the BorderBackground property.

    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  5. Ivan Kopcanski
    Ivan Kopcanski avatar
    47 posts
    Member since:
    Jul 2009

    Posted 11 May 2010 Link to this post

    Thanks, Panayot. It is true what you've said, but I used the Windows 7 theme and it changed the window border.
    This is the easier way than to change the whole window template and the theme window style satisfies client needs.
Back to Top