X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test3%2FMainPage.xaml.cs;h=89df586f544485c841df078728682e2ef75817be;hb=ee118c1cb2979154a0c1ed80bf1c13e7fe4e8970;hp=082ec8750f3d971cdb49bdd4bd9e5814df77e02e;hpb=0cca967824aa4a8701bed6a2d9015ed30c0b343d;p=psychlops%2Fsilverlight.git diff --git a/test3/MainPage.xaml.cs b/test3/MainPage.xaml.cs index 082ec87..89df586 100644 --- a/test3/MainPage.xaml.cs +++ b/test3/MainPage.xaml.cs @@ -14,6 +14,9 @@ namespace PsychlopsSilverlight3test Canvas.default_buffer_frame = main_buffer; Canvas.default_api_canvas = LayoutRoot; Canvas.default_panel = this; + this.IsTabStop = true; + this.IsEnabled = true; + this.MouseEnter += getFocusMouseEnter; System.Windows.Application.Current.Host.Settings.MaxFrameRate = 60; System.Windows.Application.Current.Host.Settings.EnableFrameRateCounter = true; System.Windows.Application.Current.Host.Settings.EnableCacheVisualization = true; @@ -26,6 +29,10 @@ namespace PsychlopsSilverlight3test main = new PsychlopsMain(); main.initialize(); } + protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) + { + this.Focus(); + } int background; private void backgroundWorker_DoWork(object sender, System.ComponentModel.DoWorkEventArgs args) {