Hello,
I'm using WebView2 in content of DocumentWindow/ToolWindow.
When auto hide ToolWindow and popup it, the ToolWindow is displayed behind WebView2 of other window.
Would you please tell me the workaround?
Procedure :
1. Modify sample app. (SimpleIde)
- Put WebView2 in EditorDocumentWindow.xaml
<docking:DocumentWindow
~~
xmlns:wv2="clr-namespace:Microsoft.Web.WebView2.Wpf;assembly=Microsoft.Web.WebView2.Wpf"
~~
ImageSource="/Images/Icons/TextDocument16.png">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="*" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Border
x:Name="symbolSelectorBorder"
Background="{DynamicResource {x:Static themes:AssetResourceKeys.ToolBarHorizontalBackgroundNormalBrushKey}}"
Visibility="Collapsed">
<syntaxeditor:NavigableSymbolSelector
x:Name="symbolSelector"
Margin="0,0,0,1"
SyntaxEditor="{Binding ElementName=editor}" />
</Border>
<syntaxeditor:SyntaxEditor
x:Name="editor"
Grid.Row="1"
BorderThickness="0"
CanSplitHorizontally="False"
DocumentIsModifiedChanged="OnEditorDocumentIsModifiedChanged"
DocumentParseDataChanged="OnEditorDocumentParseDataChanged"
HasSearchOverlayPaneKeyBindings="False"
UserInterfaceUpdate="OnEditorUserInterfaceUpdate"
ViewSearch="OnEditorViewSearch" />
<wv2:WebView2
Grid.Row="2"
Height="300"
Source="https://www.microsoft.com" />
</Grid>
</docking:DocumentWindow>
2. Start sample app and show Simple IDE.
3. Dock "Output" ToolWindow to left side and execute AutoHide.
4. Popup "Output" ToolWindow.
--> "Output" ToolWindow will be displayed behind WebView2 area of "About.txt" DocumentWindow.