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

Change style if window lost the focus

1 Answer 16 Views
Window
This is a migrated thread and some comments may be shown as answers.
Richard Koslik
Top achievements
Rank 1
Richard Koslik asked on 29 Oct 2012, 08:36 AM
Hello,

I have problems with changing the control style of a RadWindow. How can I set a style for a Window if it losts the focus? Is this possible or not?

I tried the following, but now my header always has this color .. it doesn't depend on the focus state:

<VisualState Name="Unfocused">
     <Storyboard>
            <ObjectAnimationUsingKeyFrames Storyboard.TargetName="HeaderBackgroundVisual"
                                 Storyboard.TargetProperty="Fill">
        <DiscreteObjectKeyFrame KeyTime="0" Value="{StaticResource WindowHeaderBackgroundUnfocused}" />
        </ObjectAnimationUsingKeyFrames>
     </Storyboard>
</VisualState>


regards Richard

1 Answer, 1 is accepted

Sort by
0
Masha
Telerik team
answered on 01 Nov 2012, 01:32 PM
Hello Richard,

We were able to reproduce the issue. At the moment unfocused state is working only in WPF.
We apologize if this has raised problems in your project. We will provide a fix in the nearest LIB.

Regards,
Maria
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
Window
Asked by
Richard Koslik
Top achievements
Rank 1
Answers by
Masha
Telerik team
Share this question
or