Skip to content

Webview2 in NavigationView, some key NOT WORK! #1518

@KP-Lam

Description

@KP-Lam

Describe the bug

When using the Webview2 in the TargetPageType of NavigationView, some key will become invalid. For example, ↑↓←→ (Key.Up, Key.Right, Key.Left, Key.Down)

To Reproduce

<ui:NavigationView Grid.Row="1">
<ui:NavigationView.MenuItems >
<ui:NavigationViewItem Content="Webview" NavigationCacheMode="Enabled" TargetPageType="{x:Type pages:Web}">
ui:NavigationViewItem.Icon
<ui:SymbolIcon Symbol="Globe20" />
</ui:NavigationViewItem.Icon>
</ui:NavigationViewItem>
</ui:NavigationView.MenuItems>
</ui:NavigationView>

Expected behavior

Some keys should work.

Screenshots

No response

OS version

Any

.NET version

dotnet 9.0

WPF-UI NuGet version

4.0.3

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions