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

change header's style

1 Answer 64 Views
Window
This is a migrated thread and some comments may be shown as answers.
erawan
Top achievements
Rank 1
erawan asked on 18 Aug 2010, 11:15 AM
Hi,

I have a desktop application with multiple Radwindow.

I declare a RadWindow as a usercontrol:

<telerik:RadWindow ....
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
>
......

I'm using Expression Blend to modify the radwindow template. So, in my XAML, i have this lines:

<telerik:RadWindow .....
xmlns:....>



<telerik:radwindow.resources>
blablabla
<Style x:Key="RadWindowStyleActionGotFocus" TargetType="telerik:RadWindow">
...
</Style>

<Style x:Key="RadWindowStyleActionLostFocus" TargetType="telerik:RadWindow">
...
</Style>

</telerik:radwindow.resources>

<telerik:RadWindow.Style>
        <StaticResource ResourceKey="RadWindowStyleActionGotFocus"/>
</telerik:RadWindow.Style>


</telerik:RadWindow>


My question is : how to change the radwindow style from RadWindowStyleActionGotFocus to RadWindowStyleActionLostFocus when I lose the focus on the radwindow??? Can i change it programatically?

Please help me!

Erawan

1 Answer, 1 is accepted

Sort by
0
George
Telerik team
answered on 18 Aug 2010, 04:13 PM
Hello erawan,

Thank you for contacting us.

We don't recommended placing a RadWindow control in the xaml. This could lead to unexpected behavior of the RadWindow control.
Meanwhile you could refer to our online documentation about

 
I hope this helps. I will be glad to assist you further.

 

Kind regards,
George
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
Tags
Window
Asked by
erawan
Top achievements
Rank 1
Answers by
George
Telerik team
Share this question
or