Contents of WPF Web Browser control are overflowing the boundries of parent Data Grid Control

Tayyab hussain 0 Reputation points
2024-02-22T17:59:49.4466667+00:00

I am using Web Browser control in a WPF project. My development environment is Windows10 DontNet 6.0.

HTML contents are coming nicely in Web Browser control. However, when I scroll down the data grid control, the contents in web browser are overflowing the boundries (both top and bottom) and overlapping the contents of other controls.

I tried multiple things like setting height, width, Z-Index etc. but nothing is working.

I tried using WebView2 browser control but it is also depicting the same behaviour.

Any ideas, how can i restrict the contents of web browser within its parent data grid control or what other alternates I can use those are also compatible with dotnet 6.0 and can show HTML contents nicely.

Windows Presentation Foundation
Windows Presentation Foundation
A part of the .NET Framework that provides a unified programming model for building line-of-business desktop applications on Windows.
2,710 questions
C#
C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,648 questions
{count} votes