X-Git-Url: http://git.osdn.jp/view?a=blobdiff_plain;f=test4%2FMainPage.xaml.cs;h=e368a540434ea3cc2ebaf674ed7ba08b48736fde;hb=2025e2db455b85eae3dec989bdfd39f3c1292df1;hp=3925f7b678e7bbdf8457e5175c4bc3226413873f;hpb=06a470a0e79a283223a73d8c5f6e43ef76174d97;p=psychlops%2Fsilverlight.git diff --git a/test4/MainPage.xaml.cs b/test4/MainPage.xaml.cs index 3925f7b..e368a54 100644 --- a/test4/MainPage.xaml.cs +++ b/test4/MainPage.xaml.cs @@ -10,6 +10,7 @@ namespace PsychlopsSilverlight4test #if DEBUG public System.Windows.Controls.TextBlock DebugConsole; #endif + System.Windows.Controls.Image img; public MainPage() { InitializeComponent(); @@ -41,15 +42,17 @@ namespace PsychlopsSilverlight4test //Psychlops.Internal.Main.widgetStack = Controller; AppStatusBar.Text = "Now starting Psychlops environment... please wait a minute"; - - var ur = new System.Uri("Resources/logo.png", System.UriKind.RelativeOrAbsolute); + /* + var ur = new System.Uri("Resources/Benham.png", System.UriKind.RelativeOrAbsolute); var bitmap = new System.Windows.Media.Imaging.BitmapImage(ur); var img = new System.Windows.Controls.Image(); img.Source = bitmap; System.Windows.Controls.Canvas.SetLeft(img, 100); System.Windows.Controls.Canvas.SetTop(img, 100); - LayoutRoot.Children.Add(img); - + Controller.Children.Add(img); + * */ + + } protected void getFocusMouseEnter(object sender, System.Windows.Input.MouseEventArgs e) { this.Focus(); @@ -57,6 +60,7 @@ namespace PsychlopsSilverlight4test private void CompositionTarget_Rendering(object sender, System.EventArgs e) { + //Controller.Children.Clear(); if (Main.canvas != null) Main.canvas.executeFlip(); //if (nextIntervalFrame-- <= 0) //{