Sign In|Join
Home/Silverlight.NET Forums/General Silverlight Programming/Programming with .NET - General/Set focus on silverlight app
Last post Mar 14, 2008 04:50 PM by mhaggag
Contributor
5812 Points
1559 Posts
Mar 14, 2008 02:37 PM | LINK
<
Member
354 Points
67 Posts
Mar 14, 2008 04:50 PM | LINK
If you know the ID of the embedded silverlight object, you can do something like:
document.getElementById("AgControl1Host").focus();
Unfortunately, my javascript-fu is extremely weak, so I don't know if that would work across all supported browsers. It does work in IE7, though.
jackbond
Contributor
5812 Points
1559 Posts
Set focus on silverlight app
Mar 14, 2008 02:37 PM | LINK
<
asp:Silverlight /> control but that didn't work. Thanks in advance.Khet - The first Silverlight multiplayer game
Zork I: The Great Underground Empire
mhaggag
Member
354 Points
67 Posts
Re: Set focus on silverlight app
Mar 14, 2008 04:50 PM | LINK
If you know the ID of the embedded silverlight object, you can do something like:
document.getElementById("AgControl1Host").focus();Unfortunately, my javascript-fu is extremely weak, so I don't know if that would work across all supported browsers. It does work in IE7, though.
SDE, Silverlight (Text feature team)