{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/comments/45533098","id":45533098,"diff_hunk":"@@ -0,0 +1,102 @@\n+﻿using System;\n+using System.Windows;\n+using System.Windows.Controls;\n+using System.Windows.Media;\n+using SharpDX.Direct2D1;\n+\n+namespace SharpDx2D\n+{\n+    /// <summary>\n+    /// Interaction logic for MainWindow.xaml\n+    /// </summary>\n+    public partial class MainWindow : Window\n+    {\n+        private TimeSpan lastRenderTime;\n+        private RenderTarget renderTarget = null;\n+        private SharpDX.DirectWrite.TextLayout textLayout;\n+        private SharpDX.Direct2D1.Brush brush;\n+\n+        public MainWindow()\n+        {\n+            InitializeComponent();\n+            Loaded += MainWindow_Loaded;\n+            SizeChanged += MainWindow_SizeChanged;\n+        }\n+\n+        private void MainWindow_SizeChanged(object sender, SizeChangedEventArgs e)\n+        {\n+            Grid g = (Grid)Content;","path":"samples/SharpDx2D/MainWindow.xaml.cs","position":28,"original_position":28,"commit_id":"71981b357ce815f1b4b7c9b5fbd72a8460ffcbb4","original_commit_id":"71981b357ce815f1b4b7c9b5fbd72a8460ffcbb4","user":{"login":"rrelyea","id":8865080,"avatar_url":"https://avatars.githubusercontent.com/u/8865080?v=3","gravatar_id":"","url":"https://api.github.com/users/rrelyea","html_url":"https://github.com/rrelyea","followers_url":"https://api.github.com/users/rrelyea/followers","following_url":"https://api.github.com/users/rrelyea/following{/other_user}","gists_url":"https://api.github.com/users/rrelyea/gists{/gist_id}","starred_url":"https://api.github.com/users/rrelyea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrelyea/subscriptions","organizations_url":"https://api.github.com/users/rrelyea/orgs","repos_url":"https://api.github.com/users/rrelyea/repos","events_url":"https://api.github.com/users/rrelyea/events{/privacy}","received_events_url":"https://api.github.com/users/rrelyea/received_events","type":"User","site_admin":false},"body":"would it be better to use MainImage, instead of the parent grid. So people can add things to the page, and still work fine.","created_at":"2015-11-20T23:39:46Z","updated_at":"2015-11-20T23:39:46Z","html_url":"https://github.com/Microsoft/WPFDXInterop/pull/13#discussion_r45533098","pull_request_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/comments/45533098"},"html":{"href":"https://github.com/Microsoft/WPFDXInterop/pull/13#discussion_r45533098"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13","id":50858361,"html_url":"https://github.com/Microsoft/WPFDXInterop/pull/13","diff_url":"https://github.com/Microsoft/WPFDXInterop/pull/13.diff","patch_url":"https://github.com/Microsoft/WPFDXInterop/pull/13.patch","issue_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/13","number":13,"state":"open","locked":false,"title":"Added SharpDX Direct2D sample","user":{"login":"SamuelEnglard","id":1119883,"avatar_url":"https://avatars.githubusercontent.com/u/1119883?v=3","gravatar_id":"","url":"https://api.github.com/users/SamuelEnglard","html_url":"https://github.com/SamuelEnglard","followers_url":"https://api.github.com/users/SamuelEnglard/followers","following_url":"https://api.github.com/users/SamuelEnglard/following{/other_user}","gists_url":"https://api.github.com/users/SamuelEnglard/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelEnglard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelEnglard/subscriptions","organizations_url":"https://api.github.com/users/SamuelEnglard/orgs","repos_url":"https://api.github.com/users/SamuelEnglard/repos","events_url":"https://api.github.com/users/SamuelEnglard/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelEnglard/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-16T20:04:14Z","updated_at":"2015-11-20T23:39:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86191f6f1fe7efb7e9d3931cbdaaa84dbe4aec89","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13/commits","review_comments_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13/comments","review_comment_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/13/comments","statuses_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/statuses/71981b357ce815f1b4b7c9b5fbd72a8460ffcbb4","head":{"label":"SamuelEnglard:SharpDX2D","ref":"SharpDX2D","sha":"71981b357ce815f1b4b7c9b5fbd72a8460ffcbb4","user":{"login":"SamuelEnglard","id":1119883,"avatar_url":"https://avatars.githubusercontent.com/u/1119883?v=3","gravatar_id":"","url":"https://api.github.com/users/SamuelEnglard","html_url":"https://github.com/SamuelEnglard","followers_url":"https://api.github.com/users/SamuelEnglard/followers","following_url":"https://api.github.com/users/SamuelEnglard/following{/other_user}","gists_url":"https://api.github.com/users/SamuelEnglard/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelEnglard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelEnglard/subscriptions","organizations_url":"https://api.github.com/users/SamuelEnglard/orgs","repos_url":"https://api.github.com/users/SamuelEnglard/repos","events_url":"https://api.github.com/users/SamuelEnglard/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelEnglard/received_events","type":"User","site_admin":false},"repo":{"id":46298159,"name":"WPFDXInterop","full_name":"SamuelEnglard/WPFDXInterop","owner":{"login":"SamuelEnglard","id":1119883,"avatar_url":"https://avatars.githubusercontent.com/u/1119883?v=3","gravatar_id":"","url":"https://api.github.com/users/SamuelEnglard","html_url":"https://github.com/SamuelEnglard","followers_url":"https://api.github.com/users/SamuelEnglard/followers","following_url":"https://api.github.com/users/SamuelEnglard/following{/other_user}","gists_url":"https://api.github.com/users/SamuelEnglard/gists{/gist_id}","starred_url":"https://api.github.com/users/SamuelEnglard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/SamuelEnglard/subscriptions","organizations_url":"https://api.github.com/users/SamuelEnglard/orgs","repos_url":"https://api.github.com/users/SamuelEnglard/repos","events_url":"https://api.github.com/users/SamuelEnglard/events{/privacy}","received_events_url":"https://api.github.com/users/SamuelEnglard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/SamuelEnglard/WPFDXInterop","description":"Repo for WPF DX Interop support","fork":true,"url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop","forks_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/forks","keys_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/teams","hooks_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/hooks","issue_events_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/issues/events{/number}","events_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/events","assignees_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/assignees{/user}","branches_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/branches{/branch}","tags_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/tags","blobs_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/git/refs{/sha}","trees_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/statuses/{sha}","languages_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/languages","stargazers_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/stargazers","contributors_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/contributors","subscribers_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/subscribers","subscription_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/subscription","commits_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/commits{/sha}","git_commits_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/git/commits{/sha}","comments_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/comments{/number}","issue_comment_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/issues/comments{/number}","contents_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/contents/{+path}","compare_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/merges","archive_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/downloads","issues_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/issues{/number}","pulls_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/pulls{/number}","milestones_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/milestones{/number}","notifications_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/labels{/name}","releases_url":"https://api.github.com/repos/SamuelEnglard/WPFDXInterop/releases{/id}","created_at":"2015-11-16T19:47:52Z","updated_at":"2015-11-16T19:47:53Z","pushed_at":"2015-11-16T20:03:30Z","git_url":"git://github.com/SamuelEnglard/WPFDXInterop.git","ssh_url":"git@github.com:SamuelEnglard/WPFDXInterop.git","clone_url":"https://github.com/SamuelEnglard/WPFDXInterop.git","svn_url":"https://github.com/SamuelEnglard/WPFDXInterop","homepage":null,"size":204,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"60ebf460f79127c0a5204124f9d03191008a3d9a","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":40844995,"name":"WPFDXInterop","full_name":"Microsoft/WPFDXInterop","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/WPFDXInterop","description":"Repo for WPF DX Interop support","fork":false,"url":"https://api.github.com/repos/Microsoft/WPFDXInterop","forks_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/forks","keys_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/teams","hooks_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/events","assignees_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/tags","blobs_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/languages","stargazers_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/subscription","commits_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/comments{/number}","contents_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/merges","archive_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/downloads","issues_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/WPFDXInterop/releases{/id}","created_at":"2015-08-16T22:28:11Z","updated_at":"2015-11-19T10:42:59Z","pushed_at":"2015-11-16T20:04:15Z","git_url":"git://github.com/Microsoft/WPFDXInterop.git","ssh_url":"git@github.com:Microsoft/WPFDXInterop.git","clone_url":"https://github.com/Microsoft/WPFDXInterop.git","svn_url":"https://github.com/Microsoft/WPFDXInterop","homepage":null,"size":344,"stargazers_count":28,"watchers_count":28,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":8,"forks":3,"open_issues":8,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13"},"html":{"href":"https://github.com/Microsoft/WPFDXInterop/pull/13"},"issue":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/13"},"comments":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/issues/13/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/pulls/13/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/WPFDXInterop/statuses/71981b357ce815f1b4b7c9b5fbd72a8460ffcbb4"}}}}