- using System.Windows.Browser;
- 加入事件引發的業務活動
1: public MainPage()
2: {
3: InitializeComponent();
4: this.Loaded += new RoutedEventHandler(MainPage_Loaded);
5: }
6:
- 將焦點轉移到Silverlight
1: void MainPage_Loaded(object sender, RoutedEventArgs e)
2: {
3: HtmlPage.Plugin.Focus();
4: }
- 將焦點轉移到控制項上
1: private void listBox1_Loaded(object sender, RoutedEventArgs e)
2: {
3: listBox1.IsTabStop = true;
4: listBox1.Focus();
5: }
參考資料:
沒有留言:
張貼留言