public virtual void Initialize() { if (DebugCanvas != null) { Transform.ScaleX = DebugCanvas.ActualWidth / ScreenManager.ScreenWidth; Transform.ScaleY = -DebugCanvas.ActualHeight / ScreenManager.ScreenHeight; Transform.TranslateX = DebugCanvas.ActualWidth / 2; Transform.TranslateY = DebugCanvas.ActualHeight / 2; //DebugView DebugView = new DebugViewSilverlight.DebugViewSilverlight(DebugCanvas, TxtDebug, World); DebugView.DefaultShapeColor = Colors.White; DebugView.SleepingShapeColor = Colors.LightGray; DebugView.Transform = Transform; } }