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

Styling a RadWindow

6 Answers 200 Views
Window
This is a migrated thread and some comments may be shown as answers.
mvbaffa
Top achievements
Rank 1
mvbaffa asked on 27 May 2009, 12:02 PM
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

6 Answers, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 29 May 2009, 12:29 PM
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.
0
mvbaffa
Top achievements
Rank 1
answered on 03 Jun 2009, 12:14 PM
I will check it out.

Thank you very much
0
mvbaffa
Top achievements
Rank 1
answered on 04 Jun 2009, 11:34 AM
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
0
Dimitrina
Telerik team
answered on 10 Jun 2009, 11:03 AM
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.
0
Chiara
Top achievements
Rank 1
answered on 07 Nov 2011, 10:59 AM
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
0
Yana
Telerik team
answered on 10 Nov 2011, 09:25 AM
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 >>

Tags
Window
Asked by
mvbaffa
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
mvbaffa
Top achievements
Rank 1
Chiara
Top achievements
Rank 1
Yana
Telerik team
Share this question
or