I have been trying to use Commands with the WPF WebBrowser
control (with DesignMode = "on"
):
Xaml (oversimplified):
<Window>
<Grid>
<Button Command="ToggleBold"/>
<WebBrowser />
</Grid>
</Window>
...but despite the WebBrowser
accepting keystrokes when I type (and formatting a word as bold when I hit Ctrl+B
) nothing happens when I click the button. This indicates to me that the WebBrowser
does not natively implement Commands like a RichTextBox
.
Can anyone please confirm this?