private void UserControl_Loaded(object sender, RoutedEventArgs e) { if (App.Current.IsRunningOutOfBrowser) { txtSalesOrderNo.Focus(); } else { System.Windows.Browser.HtmlPage.Plugin.Focus(); txtSalesOrderNo.Focus(); } }
This Blog is a programing portal, with tutorials and references relating to development subjects, including C#,Silverlight,WCF, Asp.Net,HTML, XML, CSS, JavaScript,Sql, Windows Administration.
Thursday, January 19, 2012
How to set focus to a text box in silver light application
In Microsoft silver light you can set focus to the text in following way.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment