In the aspx page, include
<script type="text/javascript">
window.onload = function()
{
setTimeout(function() { document.getElementById('Xaml1').focus(); }, 1);
}
</script>
And then in Page.cs class as a response to Loaded event:
Dispatcher.BeginInvoke(delegate{myControl.Focus();});
No comments:
Post a Comment