Styling a RadWindow

7 posts, 0 answers
  1. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 27 May 2009 Link to this post

    Hi,

    I have downloaded your Document "Expression Blend and RadControls for Silverlight". It is very good but the styles at XAML are too complicated. This is not a telerik problem but Microsoft has created a monster in the specific case of Silverlight/WPF Styles.

    I am not a designer and I would like simply, for instance, to define a solid color header of a radwindow without gradients. Can you give some example of how to use the Header and Border Templates avaiable in RadWindow ???

    It would be very useful to me.

    Thanks in advance
  2. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 29 May 2009 Link to this post

    Hello mvbaffa,

    Please take a look at the attached project. Let us know if you still have problems!

    Regards,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  3. DevCraft banner
  4. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 03 Jun 2009 Link to this post

    I will check it out.

    Thank you very much
  5. mvbaffa
    mvbaffa avatar
    102 posts
    Member since:
    Dec 2006

    Posted 04 Jun 2009 Link to this post

    Hi Dimitrina,

    Thanks for your answer. It worked OK. I have just a few more questions:

    1) How can I remove the Glow Effect from Title Text. I need a solid Title without any effects;

    2) When I take off all the header buttons (close, minimize ...) a vertical dash remains in the header.
         I have a modal logon window and I do not need in this window any buttons. How can I do it ???

    3) How can I remove completelly the window border or change it to another kind of border. There are
        sometimes that I do want to remove it, other times I need a Toolbox header, just like the Visual Studio
        Control Toolbox.
        
    Thanks in advance
  6. Dimitrina
    Admin
    Dimitrina avatar
    442 posts

    Posted 10 Jun 2009 Link to this post

    Hi Marcus,

    Thank you for your feedback. In order to make a custom theme for the RadWindow control, you have edit its default style in Expression Blend. In the attached project you can see a RadWindow styled according to your requirements. Please take a look at the project and let me know if the sample works for you.

    For more information about editing controls you can visit the following link:
     http://www.telerik.com/help/silverlight/radcontrols-silverlight-edit-theme-brushes.html.

    Kind regards,
    Dimitrina
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
  7. Chiara
    Chiara avatar
    31 posts
    Member since:
    Oct 2011

    Posted 07 Nov 2011 Link to this post

    Hi Dimitrina, 
    I've got a problem with RadWindow.
    In my project there are 4 files xaml: app.xaml MainPage.xaml RadWindowTest.xaml radwindowstyle.xaml
    I've created a button in the main page so I can open the radwindow.
    My problem is the style of the window: when I press "open" button, the window lost theme 7 and return as the default (dark gray)


    In the RadWindowTest.xaml I correctely set the theme, but doesn't work.
    I have to make not visible the header and the button.


    I attach the entire project
    best regards
    -chiara
    radwindow
  8. Yana
    Admin
    Yana avatar
    4554 posts

    Posted 10 Nov 2011 Link to this post

    Hello Chiara,

    You should add the ResourceDictionary in App.xaml file:

                 xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                 x:Class="SilverAppRadWindowCustomization.App"
                 >
        <Application.Resources>
                <ResourceDictionary>
                    <ResourceDictionary.MergedDictionaries>
                        <ResourceDictionary  Source="radwindowstyle.xaml"/>
                    </ResourceDictionary.MergedDictionaries>
                </ResourceDictionary>      
        </Application.Resources>
    </Application>

    set Key to the Style in radwindowstyle.xaml:

    <Style x:Key="Windows7Window" TargetType="telerikNavigation:RadWindow">
    ...

    and set this Style to the RadWindow:

    <telerik:RadWindow
        ...
       Style="{StaticResource Windows7Window}" >

    Hope this helps.

    Best wishes,
    Yana
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Back to Top
DevCraft banner