{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/205","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/205/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/205/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/205/events","html_url":"https://github.com/Microsoft/Win2D/issues/205","id":122383517,"number":205,"title":"Problem with CreateResources event","user":{"login":"MSAUCTO","id":13723258,"avatar_url":"https://avatars.githubusercontent.com/u/13723258?v=3","gravatar_id":"","url":"https://api.github.com/users/MSAUCTO","html_url":"https://github.com/MSAUCTO","followers_url":"https://api.github.com/users/MSAUCTO/followers","following_url":"https://api.github.com/users/MSAUCTO/following{/other_user}","gists_url":"https://api.github.com/users/MSAUCTO/gists{/gist_id}","starred_url":"https://api.github.com/users/MSAUCTO/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MSAUCTO/subscriptions","organizations_url":"https://api.github.com/users/MSAUCTO/orgs","repos_url":"https://api.github.com/users/MSAUCTO/repos","events_url":"https://api.github.com/users/MSAUCTO/events{/privacy}","received_events_url":"https://api.github.com/users/MSAUCTO/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-12-15T22:38:03Z","updated_at":"2015-12-15T22:38:03Z","closed_at":null,"body":"I have a problem where I'm using CreateResources on an AnimatedControl to create a grid.  The event fires and it should draw a grid.  The code executes but doesn't show a grid within the application.  Other code within a Draw event does execute showing a hundred circles plotted, but the grid doesn't appear.\r\n\r\nAny idea what's happening?\r\n\r\n//  draw the circles\r\nprivate void CanvasAnimatedControl_Draw(ICanvasAnimatedControl sender, CanvasAnimatedDrawEventArgs args)\r\n        {\r\n            // Draw the ants\r\n            foreach (Ant ant in colony.Ants)\r\n            {\r\n                args.DrawingSession.DrawCircle(100 + (5 * ant.X), 100 + (5 * ant.Y), 2.5F, Colors.Black);\r\n            }\r\n        }\r\n\r\n// draw the grid\r\nprivate void canvas_CreateResources(CanvasAnimatedControl sender, Microsoft.Graphics.Canvas.UI.CanvasCreateResourcesEventArgs args)\r\n        {\r\n            CanvasCommandList cl = new CanvasCommandList(sender);\r\n            using (CanvasDrawingSession clds = cl.CreateDrawingSession())\r\n            {\r\n                //Create the ant grid\r\n                for (int x = 0; x <= 100; x++)\r\n                {\r\n                    // Draw the vertical line of a grid\r\n                    clds.DrawLine(100 + (x * 5), 100, 100 + (x * 5), 600, Colors.White);\r\n\r\n                    for (int y = 0; y <= 100; y++)\r\n                    {\r\n                        // Draw the horizontal line of a grid\r\n                        clds.DrawLine(100, 100 + (y * 5), 600, 100 + (y * 5), Colors.White);\r\n                    }\r\n                } \r\n            }\r\n        }"}}