{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/347","repository_url":"https://api.github.com/repos/Microsoft/Win2D","labels_url":"https://api.github.com/repos/Microsoft/Win2D/issues/347/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/Win2D/issues/347/comments","events_url":"https://api.github.com/repos/Microsoft/Win2D/issues/347/events","html_url":"https://github.com/Microsoft/Win2D/issues/347","id":153951781,"number":347,"title":"VirtualCanvasControl too much work in RegionsInvalidated?","user":{"login":"BertschInnovation","id":6941815,"avatar_url":"https://avatars.githubusercontent.com/u/6941815?v=3","gravatar_id":"","url":"https://api.github.com/users/BertschInnovation","html_url":"https://github.com/BertschInnovation","followers_url":"https://api.github.com/users/BertschInnovation/followers","following_url":"https://api.github.com/users/BertschInnovation/following{/other_user}","gists_url":"https://api.github.com/users/BertschInnovation/gists{/gist_id}","starred_url":"https://api.github.com/users/BertschInnovation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BertschInnovation/subscriptions","organizations_url":"https://api.github.com/users/BertschInnovation/orgs","repos_url":"https://api.github.com/users/BertschInnovation/repos","events_url":"https://api.github.com/users/BertschInnovation/events{/privacy}","received_events_url":"https://api.github.com/users/BertschInnovation/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/Win2D/labels/question","name":"question","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2016-05-10T08:35:56Z","updated_at":"2016-05-11T09:50:19Z","closed_at":null,"body":"Hi,\r\n\r\nI'm trying to render a zoomable PDF in ScrollViewer/VirtualCanvasControl.\r\nI'm using the `CanvasRegionsInvalidatedEventArgs.VisibleRegion` to just render the part of the PDF that is visible to prevent blurred images. But everytime the ZoomFactor is 2 or higher, the RegionsInvalidated Event is looping.\r\nIn some test I figured that rendering the PDF inside the` OnRegionsInvalidated` Method seems to much work? How long can a DrawSession last?"},"comment":{"url":"https://api.github.com/repos/Microsoft/Win2D/issues/comments/218413128","html_url":"https://github.com/Microsoft/Win2D/issues/347#issuecomment-218413128","issue_url":"https://api.github.com/repos/Microsoft/Win2D/issues/347","id":218413128,"user":{"login":"BertschInnovation","id":6941815,"avatar_url":"https://avatars.githubusercontent.com/u/6941815?v=3","gravatar_id":"","url":"https://api.github.com/users/BertschInnovation","html_url":"https://github.com/BertschInnovation","followers_url":"https://api.github.com/users/BertschInnovation/followers","following_url":"https://api.github.com/users/BertschInnovation/following{/other_user}","gists_url":"https://api.github.com/users/BertschInnovation/gists{/gist_id}","starred_url":"https://api.github.com/users/BertschInnovation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BertschInnovation/subscriptions","organizations_url":"https://api.github.com/users/BertschInnovation/orgs","repos_url":"https://api.github.com/users/BertschInnovation/repos","events_url":"https://api.github.com/users/BertschInnovation/events{/privacy}","received_events_url":"https://api.github.com/users/BertschInnovation/received_events","type":"User","site_admin":false},"created_at":"2016-05-11T09:50:18Z","updated_at":"2016-05-11T09:50:18Z","body":"Okay, I managed to get rid of the \"cannot create drawing session\" error by getting rid of async await and running the `draw`-Methods via Dispatcher. \r\nBut the looping of the RegionsInvalidated Event still persists."}}