how show content of only top elements in webview2 control in C# WPF application

Ajay Gera 40 Reputation points
2024-08-19T17:56:12.37+00:00

On expanding combo box control in webview2 control, items of combo control get overlapped with control underneath i.e. combo Box items are not completely visible it (as shown in attached pic)

I have tried to use opacity property but no luck. This should have handled by default

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,784 questions
Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,193 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.
11,012 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bruce (SqlWork.com) 66,706 Reputation points
    2024-08-19T21:06:26.7833333+00:00

    you don't show the markup or css, but most likely the stacking context of the desired display items is lower than that of the actual displaying items.

    https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_positioned_layout/Understanding_z-index/Stacking_context

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.