Please answer me first
WinFormHost this web browser control the WPF Web Browser Control or Winform WPF Web Browser control hosted in WinFormHost ?
To have a WPF control display an animation above it, you explored ...
- Placing your control in a
Grid or Canvas , and then placing the stretched Border (in which the animation is running in it) as the last child of the grid / canvas? Adorner with a constantly changing drawing context to simulate animation?- A transparent
Popup with animation whose static placement (tied to control the absolute left, top, and actual height and width properties) over the control?
Try a transparent popup approach for managing your web browser ...
<Grid> <WebBrowser x:Name="WebBrowser1"/> <Popup IsOpen="{Binding StartAninmation}" AllowsTransparency="True" Grid.RowSpan="99" Grid.ColumnSpan="99" Placement="Center" Width="{Binding ActualWidth, ElementName=WebBrowser1, Mode=OneWay}" Height="{Binding ActualHeight, ElementName=WebBrowser1, Mode=OneWay}" PlacementTarget="{Binding ElementName=WebBrowser1}" Opacity="0.5" Margin="3"> <TextBlock Text="Loading ..."/> </Popup> </Grid>
One of them will certainly work in your case.
source share