WPF - Set ChromiumWebBrowser as focused element

This commit is contained in:
Alex Maitland 2021-12-26 13:26:18 +10:00
parent 25efdfdb3f
commit d752b5852f

View File

@ -6,6 +6,7 @@
xmlns:behaviours="clr-namespace:CefSharp.MinimalExample.Wpf.Behaviours" xmlns:behaviours="clr-namespace:CefSharp.MinimalExample.Wpf.Behaviours"
xmlns:behaviors="http://schemas.microsoft.com/xaml/behaviors" xmlns:behaviors="http://schemas.microsoft.com/xaml/behaviors"
Title="{Binding Path=Title, ElementName=Browser, Converter={StaticResource TitleConverter}}" Title="{Binding Path=Title, ElementName=Browser, Converter={StaticResource TitleConverter}}"
FocusManager.FocusedElement="{Binding ElementName=Browser}"
WindowState="Maximized"> WindowState="Maximized">
<Grid> <Grid>
<Grid.RowDefinitions> <Grid.RowDefinitions>