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
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