{"action":"created","comment":{"url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/comments/48037122","id":48037122,"diff_hunk":"@@ -0,0 +1,240 @@\n+﻿module Fayde.Controls {\n+    import Control = Fayde.Controls.Control;\n+    import GridUnitType = minerva.controls.grid.GridUnitType;\n+\n+    // Defines a datepicker in the format of windows phone pickers (Touch friendly)\n+    export class StarRatingControl extends Control {\n+        private stars = new Array<Star>();\n+        private isHovering: boolean = false;\n+        private LayoutRootStarList: Fayde.Controls.Grid;\n+\n+        //NumberOfStarsProperty\n+        static NumberOfStarsProperty = DependencyProperty.Register(\"NumberOfStars\",() => Number, StarRatingControl, 5,(d, args) => (<StarRatingControl>d).OnNumberOfStarsChanged(args));\n+        NumberOfStars: number;\n+\n+        OnNumberOfStarsChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.CreateStars();\n+            this.RefreshStarRating();\n+        }       \n+\n+        //RatingProperty\n+        static RatingProperty = DependencyProperty.Register(\"Rating\",() => Number, StarRatingControl, 0,(d, args) => (<StarRatingControl>d).OnRatingChanged(args));\n+        Rating: number;\n+\n+        OnRatingChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.DrawUnhovered();\n+        }\n+\n+        //HoverRatingProperty\n+        static HoverRatingProperty = DependencyProperty.Register(\"HoverRating\",() => Number, StarRatingControl, 0,(d, args) => (<StarRatingControl>d).OnHoverRatingChanged(args));\n+        HoverRating: number;\n+\n+        OnHoverRatingChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.RefreshStarRating();\n+        }\n+\n+        //StarFillBrushProperty\n+        static StarFillBrushProperty = DependencyProperty.Register(\"StarFillBrush\",() => Fayde.Media.Brush, StarRatingControl,(new Fayde.Media.SolidColorBrush(Color.FromRgba(0xFF, 0xFF, 0, 0xFF))),(d, args) => (<StarRatingControl>d).StarFillBrushChanged(args));\n+        StarFillBrush: Fayde.Media.Brush;\n+\n+        StarFillBrushChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.RefreshStarRating();\n+        }\n+\n+        //UnselectedStarFillBrushProperty\n+        static UnselectedStarFillBrushProperty = DependencyProperty.Register(\"UnselectedStarFillBrush\",() => Fayde.Media.Brush, StarRatingControl, null,(d, args) => (<StarRatingControl>d).UnselectedStarFillBrushChanged(args));\n+        UnselectedStarFillBrush: Fayde.Media.Brush;\n+\n+        UnselectedStarFillBrushChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.RefreshStarRating();\n+        }\n+\n+        //StarOutlineBrushProperty\n+        static StarOutlineBrushProperty = DependencyProperty.Register(\"StarOutlineBrush\",() => Fayde.Media.Brush, StarRatingControl,(new Fayde.Media.SolidColorBrush(Color.FromRgba(0xC0, 0xC0, 0, 0xFF))),(d, args) => (<StarRatingControl>d).StarOutlineBrushChanged(args));\n+        StarOutlineBrush: Fayde.Media.Brush;\n+\n+        StarOutlineBrushChanged(e: DependencyPropertyChangedEventArgs) {\n+            this.RefreshStarRating();\n+        }\n+\n+        //HoverFillBrushProperty\n+        static HoverFillBrushProperty = DependencyProperty.Register(\"HoverFillBrush\",() => Fayde.Media.Brush, StarRatingControl,(new Fayde.Media.SolidColorBrush(Color.FromRgba(0xF0, 0xF0, 0x80, 0xFF))),(d, args) => (<StarRatingControl>d).HoverFillBrushChanged(args));","path":"src/StarRating/StarRatingControl.ts","position":61,"original_position":61,"commit_id":"752a9786af356aa65c4f0e36c4f3f9acff3abfcf","original_commit_id":"752a9786af356aa65c4f0e36c4f3f9acff3abfcf","user":{"login":"BSick7","id":830878,"avatar_url":"https://avatars.githubusercontent.com/u/830878?v=3","gravatar_id":"","url":"https://api.github.com/users/BSick7","html_url":"https://github.com/BSick7","followers_url":"https://api.github.com/users/BSick7/followers","following_url":"https://api.github.com/users/BSick7/following{/other_user}","gists_url":"https://api.github.com/users/BSick7/gists{/gist_id}","starred_url":"https://api.github.com/users/BSick7/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BSick7/subscriptions","organizations_url":"https://api.github.com/users/BSick7/orgs","repos_url":"https://api.github.com/users/BSick7/repos","events_url":"https://api.github.com/users/BSick7/events{/privacy}","received_events_url":"https://api.github.com/users/BSick7/received_events","type":"User","site_admin":false},"body":"See above note.","created_at":"2015-12-18T15:42:11Z","updated_at":"2015-12-18T15:42:11Z","html_url":"https://github.com/wsick/Fayde.Controls/pull/16#discussion_r48037122","pull_request_url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16","_links":{"self":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/comments/48037122"},"html":{"href":"https://github.com/wsick/Fayde.Controls/pull/16#discussion_r48037122"},"pull_request":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16"}}},"pull_request":{"url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16","id":51729506,"html_url":"https://github.com/wsick/Fayde.Controls/pull/16","diff_url":"https://github.com/wsick/Fayde.Controls/pull/16.diff","patch_url":"https://github.com/wsick/Fayde.Controls/pull/16.patch","issue_url":"https://api.github.com/repos/wsick/Fayde.Controls/issues/16","number":16,"state":"open","locked":false,"title":"Star rating","user":{"login":"Ronmenator","id":6628234,"avatar_url":"https://avatars.githubusercontent.com/u/6628234?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronmenator","html_url":"https://github.com/Ronmenator","followers_url":"https://api.github.com/users/Ronmenator/followers","following_url":"https://api.github.com/users/Ronmenator/following{/other_user}","gists_url":"https://api.github.com/users/Ronmenator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronmenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronmenator/subscriptions","organizations_url":"https://api.github.com/users/Ronmenator/orgs","repos_url":"https://api.github.com/users/Ronmenator/repos","events_url":"https://api.github.com/users/Ronmenator/events{/privacy}","received_events_url":"https://api.github.com/users/Ronmenator/received_events","type":"User","site_admin":false},"body":"Star Rating control.","created_at":"2015-11-24T22:54:46Z","updated_at":"2015-12-18T15:42:11Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9994c1bba0c622dad0d2dc096f4344c558949b18","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16/commits","review_comments_url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16/comments","review_comment_url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wsick/Fayde.Controls/issues/16/comments","statuses_url":"https://api.github.com/repos/wsick/Fayde.Controls/statuses/752a9786af356aa65c4f0e36c4f3f9acff3abfcf","head":{"label":"Ronmenator:Star_Rating","ref":"Star_Rating","sha":"752a9786af356aa65c4f0e36c4f3f9acff3abfcf","user":{"login":"Ronmenator","id":6628234,"avatar_url":"https://avatars.githubusercontent.com/u/6628234?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronmenator","html_url":"https://github.com/Ronmenator","followers_url":"https://api.github.com/users/Ronmenator/followers","following_url":"https://api.github.com/users/Ronmenator/following{/other_user}","gists_url":"https://api.github.com/users/Ronmenator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronmenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronmenator/subscriptions","organizations_url":"https://api.github.com/users/Ronmenator/orgs","repos_url":"https://api.github.com/users/Ronmenator/repos","events_url":"https://api.github.com/users/Ronmenator/events{/privacy}","received_events_url":"https://api.github.com/users/Ronmenator/received_events","type":"User","site_admin":false},"repo":{"id":46820451,"name":"Fayde.Controls","full_name":"Ronmenator/Fayde.Controls","owner":{"login":"Ronmenator","id":6628234,"avatar_url":"https://avatars.githubusercontent.com/u/6628234?v=3","gravatar_id":"","url":"https://api.github.com/users/Ronmenator","html_url":"https://github.com/Ronmenator","followers_url":"https://api.github.com/users/Ronmenator/followers","following_url":"https://api.github.com/users/Ronmenator/following{/other_user}","gists_url":"https://api.github.com/users/Ronmenator/gists{/gist_id}","starred_url":"https://api.github.com/users/Ronmenator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ronmenator/subscriptions","organizations_url":"https://api.github.com/users/Ronmenator/orgs","repos_url":"https://api.github.com/users/Ronmenator/repos","events_url":"https://api.github.com/users/Ronmenator/events{/privacy}","received_events_url":"https://api.github.com/users/Ronmenator/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Ronmenator/Fayde.Controls","description":"Extended controls library for Fayde","fork":true,"url":"https://api.github.com/repos/Ronmenator/Fayde.Controls","forks_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/forks","keys_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/teams","hooks_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/hooks","issue_events_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/issues/events{/number}","events_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/events","assignees_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/assignees{/user}","branches_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/branches{/branch}","tags_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/tags","blobs_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/statuses/{sha}","languages_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/languages","stargazers_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/stargazers","contributors_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/contributors","subscribers_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/subscribers","subscription_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/subscription","commits_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/contents/{+path}","compare_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/merges","archive_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/downloads","issues_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/issues{/number}","pulls_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/pulls{/number}","milestones_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/milestones{/number}","notifications_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/labels{/name}","releases_url":"https://api.github.com/repos/Ronmenator/Fayde.Controls/releases{/id}","created_at":"2015-11-24T21:43:00Z","updated_at":"2015-11-24T22:42:10Z","pushed_at":"2015-11-25T01:02:56Z","git_url":"git://github.com/Ronmenator/Fayde.Controls.git","ssh_url":"git@github.com:Ronmenator/Fayde.Controls.git","clone_url":"https://github.com/Ronmenator/Fayde.Controls.git","svn_url":"https://github.com/Ronmenator/Fayde.Controls","homepage":"","size":1541,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","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":"wsick:master","ref":"master","sha":"7d12d05d988793385f05a455d507941a42d8dd45","user":{"login":"wsick","id":10374907,"avatar_url":"https://avatars.githubusercontent.com/u/10374907?v=3","gravatar_id":"","url":"https://api.github.com/users/wsick","html_url":"https://github.com/wsick","followers_url":"https://api.github.com/users/wsick/followers","following_url":"https://api.github.com/users/wsick/following{/other_user}","gists_url":"https://api.github.com/users/wsick/gists{/gist_id}","starred_url":"https://api.github.com/users/wsick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsick/subscriptions","organizations_url":"https://api.github.com/users/wsick/orgs","repos_url":"https://api.github.com/users/wsick/repos","events_url":"https://api.github.com/users/wsick/events{/privacy}","received_events_url":"https://api.github.com/users/wsick/received_events","type":"Organization","site_admin":false},"repo":{"id":22010553,"name":"Fayde.Controls","full_name":"wsick/Fayde.Controls","owner":{"login":"wsick","id":10374907,"avatar_url":"https://avatars.githubusercontent.com/u/10374907?v=3","gravatar_id":"","url":"https://api.github.com/users/wsick","html_url":"https://github.com/wsick","followers_url":"https://api.github.com/users/wsick/followers","following_url":"https://api.github.com/users/wsick/following{/other_user}","gists_url":"https://api.github.com/users/wsick/gists{/gist_id}","starred_url":"https://api.github.com/users/wsick/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wsick/subscriptions","organizations_url":"https://api.github.com/users/wsick/orgs","repos_url":"https://api.github.com/users/wsick/repos","events_url":"https://api.github.com/users/wsick/events{/privacy}","received_events_url":"https://api.github.com/users/wsick/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wsick/Fayde.Controls","description":"Extended controls library for Fayde","fork":false,"url":"https://api.github.com/repos/wsick/Fayde.Controls","forks_url":"https://api.github.com/repos/wsick/Fayde.Controls/forks","keys_url":"https://api.github.com/repos/wsick/Fayde.Controls/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wsick/Fayde.Controls/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wsick/Fayde.Controls/teams","hooks_url":"https://api.github.com/repos/wsick/Fayde.Controls/hooks","issue_events_url":"https://api.github.com/repos/wsick/Fayde.Controls/issues/events{/number}","events_url":"https://api.github.com/repos/wsick/Fayde.Controls/events","assignees_url":"https://api.github.com/repos/wsick/Fayde.Controls/assignees{/user}","branches_url":"https://api.github.com/repos/wsick/Fayde.Controls/branches{/branch}","tags_url":"https://api.github.com/repos/wsick/Fayde.Controls/tags","blobs_url":"https://api.github.com/repos/wsick/Fayde.Controls/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wsick/Fayde.Controls/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wsick/Fayde.Controls/git/refs{/sha}","trees_url":"https://api.github.com/repos/wsick/Fayde.Controls/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wsick/Fayde.Controls/statuses/{sha}","languages_url":"https://api.github.com/repos/wsick/Fayde.Controls/languages","stargazers_url":"https://api.github.com/repos/wsick/Fayde.Controls/stargazers","contributors_url":"https://api.github.com/repos/wsick/Fayde.Controls/contributors","subscribers_url":"https://api.github.com/repos/wsick/Fayde.Controls/subscribers","subscription_url":"https://api.github.com/repos/wsick/Fayde.Controls/subscription","commits_url":"https://api.github.com/repos/wsick/Fayde.Controls/commits{/sha}","git_commits_url":"https://api.github.com/repos/wsick/Fayde.Controls/git/commits{/sha}","comments_url":"https://api.github.com/repos/wsick/Fayde.Controls/comments{/number}","issue_comment_url":"https://api.github.com/repos/wsick/Fayde.Controls/issues/comments{/number}","contents_url":"https://api.github.com/repos/wsick/Fayde.Controls/contents/{+path}","compare_url":"https://api.github.com/repos/wsick/Fayde.Controls/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wsick/Fayde.Controls/merges","archive_url":"https://api.github.com/repos/wsick/Fayde.Controls/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wsick/Fayde.Controls/downloads","issues_url":"https://api.github.com/repos/wsick/Fayde.Controls/issues{/number}","pulls_url":"https://api.github.com/repos/wsick/Fayde.Controls/pulls{/number}","milestones_url":"https://api.github.com/repos/wsick/Fayde.Controls/milestones{/number}","notifications_url":"https://api.github.com/repos/wsick/Fayde.Controls/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wsick/Fayde.Controls/labels{/name}","releases_url":"https://api.github.com/repos/wsick/Fayde.Controls/releases{/id}","created_at":"2014-07-19T13:40:32Z","updated_at":"2015-03-30T05:50:29Z","pushed_at":"2015-11-25T01:02:56Z","git_url":"git://github.com/wsick/Fayde.Controls.git","ssh_url":"git@github.com:wsick/Fayde.Controls.git","clone_url":"https://github.com/wsick/Fayde.Controls.git","svn_url":"https://github.com/wsick/Fayde.Controls","homepage":"","size":1443,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":4,"mirror_url":null,"open_issues_count":5,"forks":4,"open_issues":5,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16"},"html":{"href":"https://github.com/wsick/Fayde.Controls/pull/16"},"issue":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/issues/16"},"comments":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/issues/16/comments"},"review_comments":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16/comments"},"review_comment":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/pulls/16/commits"},"statuses":{"href":"https://api.github.com/repos/wsick/Fayde.Controls/statuses/752a9786af356aa65c4f0e36c4f3f9acff3abfcf"}}}}