{"action":"created","comment":{"url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/comments/181627081","pull_request_review_id":112284970,"id":181627081,"diff_hunk":"@@ -39,16 +39,27 @@ public TabControlRegion( string name )\n         /// <param name=\"view\">The view.</param>\n         protected override void OnAdd(DependencyObject view)\n         {\n-            var tabItem = new TabItem();\n-            tabItem.Content = view;\n+            if (view == null) throw new ArgumentNullException(nameof(view));\n \n-            var header = this.TryGetHeader(view);\n-            if (header != null)\n+            TabItem tabItem;\n+            if (view is TabItem)\n             {\n-                tabItem.Header = header;\n+                tabItem = (TabItem) view;\n             }\n+            else\n+            {\n+                tabItem = new TabItem\n+                {\n+                    Content = view\n+                };\n \n-            this.Element.Items.Add(tabItem);\n+                object header = this.TryGetHeader(view);\n+                if (header != null)\n+                {\n+                    tabItem.Header = header;\n+                }                \n+                this.Element.Items.Add(tabItem);","path":"src/net40/Radical.Windows.Presentation/Regions/Specialized/TabControlRegion.cs","position":29,"original_position":29,"commit_id":"d237ef822d02078bc4130d715373af01ec2c393d","original_commit_id":"d237ef822d02078bc4130d715373af01ec2c393d","user":{"login":"nazarenomanco","id":11135338,"avatar_url":"https://avatars2.githubusercontent.com/u/11135338?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarenomanco","html_url":"https://github.com/nazarenomanco","followers_url":"https://api.github.com/users/nazarenomanco/followers","following_url":"https://api.github.com/users/nazarenomanco/following{/other_user}","gists_url":"https://api.github.com/users/nazarenomanco/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarenomanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarenomanco/subscriptions","organizations_url":"https://api.github.com/users/nazarenomanco/orgs","repos_url":"https://api.github.com/users/nazarenomanco/repos","events_url":"https://api.github.com/users/nazarenomanco/events{/privacy}","received_events_url":"https://api.github.com/users/nazarenomanco/received_events","type":"User","site_admin":false},"body":"Ops 😄 ","created_at":"2018-04-16T05:47:40Z","updated_at":"2018-04-16T05:47:40Z","html_url":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59#discussion_r181627081","pull_request_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/comments/181627081"},"html":{"href":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59#discussion_r181627081"},"pull_request":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59"}},"in_reply_to_id":181591608},"pull_request":{"url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59","id":181707556,"html_url":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59","diff_url":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59.diff","patch_url":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59.patch","issue_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/59","number":59,"state":"open","locked":false,"title":"check if we are adding a TabItem to TabControlRegion","user":{"login":"nazarenomanco","id":11135338,"avatar_url":"https://avatars2.githubusercontent.com/u/11135338?v=4","gravatar_id":"","url":"https://api.github.com/users/nazarenomanco","html_url":"https://github.com/nazarenomanco","followers_url":"https://api.github.com/users/nazarenomanco/followers","following_url":"https://api.github.com/users/nazarenomanco/following{/other_user}","gists_url":"https://api.github.com/users/nazarenomanco/gists{/gist_id}","starred_url":"https://api.github.com/users/nazarenomanco/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nazarenomanco/subscriptions","organizations_url":"https://api.github.com/users/nazarenomanco/orgs","repos_url":"https://api.github.com/users/nazarenomanco/repos","events_url":"https://api.github.com/users/nazarenomanco/events{/privacy}","received_events_url":"https://api.github.com/users/nazarenomanco/received_events","type":"User","site_admin":false},"body":"Fix #6 \r\n@mauroservienti, please check in I understand well","created_at":"2018-04-15T16:27:00Z","updated_at":"2018-04-16T05:47:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49ab2edbb0f848d19602bfac8663207cedcfdb6d","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":251609743,"url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/labels/in%20progress","name":"in progress","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59/commits","review_comments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59/comments","review_comment_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/comments{/number}","comments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/59/comments","statuses_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/statuses/d237ef822d02078bc4130d715373af01ec2c393d","head":{"label":"RadicalFx:tabcontrolregion_tabitem","ref":"tabcontrolregion_tabitem","sha":"d237ef822d02078bc4130d715373af01ec2c393d","user":{"login":"RadicalFx","id":7055938,"avatar_url":"https://avatars3.githubusercontent.com/u/7055938?v=4","gravatar_id":"","url":"https://api.github.com/users/RadicalFx","html_url":"https://github.com/RadicalFx","followers_url":"https://api.github.com/users/RadicalFx/followers","following_url":"https://api.github.com/users/RadicalFx/following{/other_user}","gists_url":"https://api.github.com/users/RadicalFx/gists{/gist_id}","starred_url":"https://api.github.com/users/RadicalFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadicalFx/subscriptions","organizations_url":"https://api.github.com/users/RadicalFx/orgs","repos_url":"https://api.github.com/users/RadicalFx/repos","events_url":"https://api.github.com/users/RadicalFx/events{/privacy}","received_events_url":"https://api.github.com/users/RadicalFx/received_events","type":"Organization","site_admin":false},"repo":{"id":37199840,"name":"Radical.Windows.Presentation","full_name":"RadicalFx/Radical.Windows.Presentation","owner":{"login":"RadicalFx","id":7055938,"avatar_url":"https://avatars3.githubusercontent.com/u/7055938?v=4","gravatar_id":"","url":"https://api.github.com/users/RadicalFx","html_url":"https://github.com/RadicalFx","followers_url":"https://api.github.com/users/RadicalFx/followers","following_url":"https://api.github.com/users/RadicalFx/following{/other_user}","gists_url":"https://api.github.com/users/RadicalFx/gists{/gist_id}","starred_url":"https://api.github.com/users/RadicalFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadicalFx/subscriptions","organizations_url":"https://api.github.com/users/RadicalFx/orgs","repos_url":"https://api.github.com/users/RadicalFx/repos","events_url":"https://api.github.com/users/RadicalFx/events{/privacy}","received_events_url":"https://api.github.com/users/RadicalFx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RadicalFx/Radical.Windows.Presentation","description":"Radical is an infrastructure framework whose primary role is to help in the development of composite WPF applications based on the Model View ViewModel pattern.","fork":false,"url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation","forks_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/forks","keys_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/teams","hooks_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/hooks","issue_events_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/events{/number}","events_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/events","assignees_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/assignees{/user}","branches_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/branches{/branch}","tags_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/tags","blobs_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/statuses/{sha}","languages_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/languages","stargazers_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/stargazers","contributors_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/contributors","subscribers_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/subscribers","subscription_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/subscription","commits_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/contents/{+path}","compare_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/merges","archive_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/downloads","issues_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues{/number}","pulls_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls{/number}","milestones_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/milestones{/number}","notifications_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/labels{/name}","releases_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/releases{/id}","deployments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/deployments","created_at":"2015-06-10T13:48:14Z","updated_at":"2018-04-14T19:32:05Z","pushed_at":"2018-04-15T16:27:01Z","git_url":"git://github.com/RadicalFx/Radical.Windows.Presentation.git","ssh_url":"git@github.com:RadicalFx/Radical.Windows.Presentation.git","clone_url":"https://github.com/RadicalFx/Radical.Windows.Presentation.git","svn_url":"https://github.com/RadicalFx/Radical.Windows.Presentation","homepage":"http://www.radicalframework.com/","size":194,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":24,"watchers":0,"default_branch":"develop"}},"base":{"label":"RadicalFx:develop","ref":"develop","sha":"73e4d6cd189aa5c8d05ac546f0b3369a3172a53d","user":{"login":"RadicalFx","id":7055938,"avatar_url":"https://avatars3.githubusercontent.com/u/7055938?v=4","gravatar_id":"","url":"https://api.github.com/users/RadicalFx","html_url":"https://github.com/RadicalFx","followers_url":"https://api.github.com/users/RadicalFx/followers","following_url":"https://api.github.com/users/RadicalFx/following{/other_user}","gists_url":"https://api.github.com/users/RadicalFx/gists{/gist_id}","starred_url":"https://api.github.com/users/RadicalFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadicalFx/subscriptions","organizations_url":"https://api.github.com/users/RadicalFx/orgs","repos_url":"https://api.github.com/users/RadicalFx/repos","events_url":"https://api.github.com/users/RadicalFx/events{/privacy}","received_events_url":"https://api.github.com/users/RadicalFx/received_events","type":"Organization","site_admin":false},"repo":{"id":37199840,"name":"Radical.Windows.Presentation","full_name":"RadicalFx/Radical.Windows.Presentation","owner":{"login":"RadicalFx","id":7055938,"avatar_url":"https://avatars3.githubusercontent.com/u/7055938?v=4","gravatar_id":"","url":"https://api.github.com/users/RadicalFx","html_url":"https://github.com/RadicalFx","followers_url":"https://api.github.com/users/RadicalFx/followers","following_url":"https://api.github.com/users/RadicalFx/following{/other_user}","gists_url":"https://api.github.com/users/RadicalFx/gists{/gist_id}","starred_url":"https://api.github.com/users/RadicalFx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RadicalFx/subscriptions","organizations_url":"https://api.github.com/users/RadicalFx/orgs","repos_url":"https://api.github.com/users/RadicalFx/repos","events_url":"https://api.github.com/users/RadicalFx/events{/privacy}","received_events_url":"https://api.github.com/users/RadicalFx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/RadicalFx/Radical.Windows.Presentation","description":"Radical is an infrastructure framework whose primary role is to help in the development of composite WPF applications based on the Model View ViewModel pattern.","fork":false,"url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation","forks_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/forks","keys_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/teams","hooks_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/hooks","issue_events_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/events{/number}","events_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/events","assignees_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/assignees{/user}","branches_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/branches{/branch}","tags_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/tags","blobs_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/refs{/sha}","trees_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/statuses/{sha}","languages_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/languages","stargazers_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/stargazers","contributors_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/contributors","subscribers_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/subscribers","subscription_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/subscription","commits_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/commits{/sha}","git_commits_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/git/commits{/sha}","comments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/comments{/number}","issue_comment_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/comments{/number}","contents_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/contents/{+path}","compare_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/merges","archive_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/downloads","issues_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues{/number}","pulls_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls{/number}","milestones_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/milestones{/number}","notifications_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/labels{/name}","releases_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/releases{/id}","deployments_url":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/deployments","created_at":"2015-06-10T13:48:14Z","updated_at":"2018-04-14T19:32:05Z","pushed_at":"2018-04-15T16:27:01Z","git_url":"git://github.com/RadicalFx/Radical.Windows.Presentation.git","ssh_url":"git@github.com:RadicalFx/Radical.Windows.Presentation.git","clone_url":"https://github.com/RadicalFx/Radical.Windows.Presentation.git","svn_url":"https://github.com/RadicalFx/Radical.Windows.Presentation","homepage":"http://www.radicalframework.com/","size":194,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1,"mirror_url":null,"archived":false,"open_issues_count":24,"license":{"key":"mit","name":"MIT License","spdx_id":"MIT","url":"https://api.github.com/licenses/mit"},"forks":1,"open_issues":24,"watchers":0,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59"},"html":{"href":"https://github.com/RadicalFx/Radical.Windows.Presentation/pull/59"},"issue":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/59"},"comments":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/issues/59/comments"},"review_comments":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59/comments"},"review_comment":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/pulls/59/commits"},"statuses":{"href":"https://api.github.com/repos/RadicalFx/Radical.Windows.Presentation/statuses/d237ef822d02078bc4130d715373af01ec2c393d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"nazarenomanco"}}