Hi,
This may sound like a pure WPF/C# question but I cannot get it to work here.
I am trying to do something very simple: handle the gotfocus event when my EO Web form gets the focus - either from keyboard or mouse action.
I do receive those event from my window, but that is not good enough when that window contains multiple EO WebForm controls.
This is what my window looks like - manually rebuilt the XAML composite:
Code: HTML/ASPX
<Grid>
<myControls:AABrowserWindow x:Name="BrowserWindow" Grid.Row="0">
<Grid x:Name="gridWeb" HorizontalAlignment="Stretch" VerticalAlignment="Stretch">
<Grid.Background>
<ImageBrush x:Name="loadingBckGrndImg" ImageSource="Resources/047_787 exterior_DSC1681_a_RGB.jpg" Stretch="UniformToFill"/>
</Grid.Background>
<Grid x:Name="containerGrid">
<Image x:Name="waitGif"
gif:ImageBehavior.AnimatedSource="Resources/circle-loading-animation.gif"
gif:ImageBehavior.RepeatBehavior="Forever" Margin="0" HorizontalAlignment="Center" VerticalAlignment="Center" RenderTransformOrigin="1.58,0.944" Panel.ZIndex="1" Stretch="None"/>
<Grid>
<eo:WebControl x:Name="webContainer" Foreground="White" Margin="0" Panel.ZIndex="10"/>
</Grid>
</Grid>
</Grid>
</myControls:AABrowserWindow>
</Grid>
I tried to handle a GotFocus at every level of each one of those component. But it never gets fired.
I am able to capture the window FOCUS/KILL_FOCUS messages but that is not what I am looking at because I can have multiple form in my window and I still do not know if any of those form is or is not in focus.
Would you have a suggestion for this?
Thanks a lot!