FullScreen via Keystroke
In theFullScreen documentation it says that:
"A WPF/E control can only enable full-screen mode in response to a set of user-initiated actions. These actions correspond to theMouseLeftButtonDown,MouseLeftButtonUp,KeyDown, andKeyUp events. "
However, the KeyDown and KeyUp events don't seem to be able to trigger full screen mode. To test this I have the following javascript:
var wpfe;
function loaded(sender, args)
{
wpfe = document.getElementById("wpfeControl1");
}
function onMouseLeftButtonUp(sender, eventArgs)
{
// Toggle between embedded mode and full-screen mode.
wpfe.fullScreen = !wpfe.fullScreen;
}
function keyDown(sender, eventArgs)
{
// Toggle between embedded mode and full-screen mode.
wpfe.fullScreen = !wpfe.fullScreen;
}
With the following Xaml:
<Canvas xmlns="http://schemas.microsoft.com/client/2007"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Loaded=loaded"
MouseLeftButtonUp=onMouseLeftButtonUp"
KeyDown=keyDown"
>
<Rectangle Width="300" Height="200" Fill="Red" />
</Canvas>
Clicking on the block with the mouse puts it into full screen, but you can press any key you want and it does nothing. I switched the events to KeyUp and MouseDown and I get the same results.
Are the docs incorrect or is this a bug?

