{"action":"created","comment":{"url":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments/76980787","id":76980787,"diff_hunk":"@@ -0,0 +1,63 @@\n+---\n+title: LayoutControlToolBoxView\n+page_title: LayoutControlToolBoxView\n+description: LayoutControlToolBoxView\n+slug: radlayoutcontrol-features-toolbox-toolboxview\n+tags: layout, toolbox, layoutcontroltoolbox, layoutcontroltoolboxview\n+published: True\n+position: 1\n+---\n+\n+# LayoutControlToolBoxView\n+\n+__LayoutControlToolBoxView__ is the control that represents the toolbox. This article demonstrates how to set it up and associate it with RadLayoutControl. \n+\n+#### __[XAML] Example 1: Setting up the toolbox__  \n+\t <StackPanel Orientation=\"Horizontal\">\n+        <telerik:RadLayoutControl x:Name=\"layout\" Width=\"300\" Height=\"250\">\n+            <Button Content=\"Item\" />\n+            <telerik:LayoutControlGroup Orientation=\"Vertical\">\n+                <Button Content=\"Item\" />\n+                <Button Content=\"Item\"/>\n+            </telerik:LayoutControlGroup>\n+        </telerik:RadLayoutControl>\n+        <telerik:LayoutControlToolBoxView LayoutControl=\"{Binding ElementName=layout}\" Width=\"300\" Height=\"250\"/>\n+    </StackPanel>\n+\t\n+The toolbox can be associated with RadLayoutControl through its __LayoutControl__ property (see __Example 1__).\n+\t\n+#### __Figure 1: Final result__  \n+![](images/radlayoutcontrol-features-toolbox-toolboxview-01.png)\n+\n+>Drop from the toolbox is allowed only if the layout control is in [edit mode]({%slug radlayoutcontrol-edit-the-layout%}).\n+\n+You can __get, add or remove__ the elements from the toolbox using the __NewItems__ and __DeletedItems__ collections of the __LayoutControlToolBoxView__ control.\n+\n+## Tracking the deleted items\n+\n+The toolbox allows you to track and restore the items that was removed from the layout. They are displayed in the __Deleted Items__ visual section of the control. Once an item is deleted, it is added in the __DeletedItems__ collection of the LayoutControlToolBoxView. You can restore the element back in the layout by drag/droping it from the Deleted Items to the __RadLayoutControl__.\n+\n+This feature is disabled by default. You can enable it by setting the the __TrackDeletedItems__ property to __True__.\n+\n+#### __[XAML] Example 2: Enabling the deleted items tracking__\n+\t<telerik:LayoutControlToolBoxView TrackDeletedItems=\"True\"/>\n+\t\n+#### __Figure 2: Deleted items__\n+![](images/radlayoutcontrol-features-toolbox-toolboxview-02.png)\n+\n+## LayoutControlHierarchicalNodeProxy\n+\n+__LayoutControlHierarchicalNodeProxy__ is the model of the toolbox items. The __LayoutControlToolBoxView__ element exposes two collections – one with the elements displayed in the __New Items__ section and another one displayed in the __Deleted Items__ section. The collections can be accessed respectively through the __NewItems__ and __DeletedItems__ properties which are of type __ObservableCollection&lt;LayoutControlHierarchicalNodeProxy&gt;__. \n+\n+The proxy object contains information about the elements in the toolbox.\n+* __Header__: You can use this property to set a string that represents the header of the toolbox item","path":"controls/radlayoutcontrol/features/toolbox/layoutcontroltoolboxview.md","position":53,"original_position":53,"commit_id":"40f26dba6a54a218d9b729fcb4012d29391893a3","original_commit_id":"40f26dba6a54a218d9b729fcb4012d29391893a3","user":{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false},"body":"Missing period at the end of the line","created_at":"2016-08-31T12:50:14Z","updated_at":"2016-08-31T12:50:14Z","html_url":"https://github.com/telerik/xaml-docs/pull/726#discussion_r76980787","pull_request_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/726","_links":{"self":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments/76980787"},"html":{"href":"https://github.com/telerik/xaml-docs/pull/726#discussion_r76980787"},"pull_request":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/726"}}},"pull_request":{"url":"https://api.github.com/repos/telerik/xaml-docs/pulls/726","id":82718589,"html_url":"https://github.com/telerik/xaml-docs/pull/726","diff_url":"https://github.com/telerik/xaml-docs/pull/726.diff","patch_url":"https://github.com/telerik/xaml-docs/pull/726.patch","issue_url":"https://api.github.com/repos/telerik/xaml-docs/issues/726","number":726,"state":"open","locked":false,"title":"LayoutControl: Added documentation for the new toolbox feature.  Also…","user":{"login":"martinivanoff","id":8738379,"avatar_url":"https://avatars.githubusercontent.com/u/8738379?v=3","gravatar_id":"","url":"https://api.github.com/users/martinivanoff","html_url":"https://github.com/martinivanoff","followers_url":"https://api.github.com/users/martinivanoff/followers","following_url":"https://api.github.com/users/martinivanoff/following{/other_user}","gists_url":"https://api.github.com/users/martinivanoff/gists{/gist_id}","starred_url":"https://api.github.com/users/martinivanoff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martinivanoff/subscriptions","organizations_url":"https://api.github.com/users/martinivanoff/orgs","repos_url":"https://api.github.com/users/martinivanoff/repos","events_url":"https://api.github.com/users/martinivanoff/events{/privacy}","received_events_url":"https://api.github.com/users/martinivanoff/received_events","type":"User","site_admin":false},"body":"…, documentation for the new layout splitter control.","created_at":"2016-08-25T13:22:51Z","updated_at":"2016-08-31T12:50:14Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa45e9ee78ca056eb1a608fa6cb8afa1b114b4f1","assignee":{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false},"assignees":[{"login":"TanyaDimitrova","id":5954950,"avatar_url":"https://avatars.githubusercontent.com/u/5954950?v=3","gravatar_id":"","url":"https://api.github.com/users/TanyaDimitrova","html_url":"https://github.com/TanyaDimitrova","followers_url":"https://api.github.com/users/TanyaDimitrova/followers","following_url":"https://api.github.com/users/TanyaDimitrova/following{/other_user}","gists_url":"https://api.github.com/users/TanyaDimitrova/gists{/gist_id}","starred_url":"https://api.github.com/users/TanyaDimitrova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TanyaDimitrova/subscriptions","organizations_url":"https://api.github.com/users/TanyaDimitrova/orgs","repos_url":"https://api.github.com/users/TanyaDimitrova/repos","events_url":"https://api.github.com/users/TanyaDimitrova/events{/privacy}","received_events_url":"https://api.github.com/users/TanyaDimitrova/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/726/commits","review_comments_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/726/comments","review_comment_url":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/issues/726/comments","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/40f26dba6a54a218d9b729fcb4012d29391893a3","head":{"label":"telerik:LayoutControl_ToolBox_And_Splitter","ref":"LayoutControl_ToolBox_And_Splitter","sha":"40f26dba6a54a218d9b729fcb4012d29391893a3","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":23070893,"name":"xaml-docs","full_name":"telerik/xaml-docs","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/xaml-docs","description":"Public Documentation for Telerik UI for WPF and Silverlight","fork":false,"url":"https://api.github.com/repos/telerik/xaml-docs","forks_url":"https://api.github.com/repos/telerik/xaml-docs/forks","keys_url":"https://api.github.com/repos/telerik/xaml-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/xaml-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/xaml-docs/teams","hooks_url":"https://api.github.com/repos/telerik/xaml-docs/hooks","issue_events_url":"https://api.github.com/repos/telerik/xaml-docs/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/xaml-docs/events","assignees_url":"https://api.github.com/repos/telerik/xaml-docs/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/xaml-docs/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/xaml-docs/tags","blobs_url":"https://api.github.com/repos/telerik/xaml-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/xaml-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/xaml-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/xaml-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/xaml-docs/languages","stargazers_url":"https://api.github.com/repos/telerik/xaml-docs/stargazers","contributors_url":"https://api.github.com/repos/telerik/xaml-docs/contributors","subscribers_url":"https://api.github.com/repos/telerik/xaml-docs/subscribers","subscription_url":"https://api.github.com/repos/telerik/xaml-docs/subscription","commits_url":"https://api.github.com/repos/telerik/xaml-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/xaml-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/xaml-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/xaml-docs/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/xaml-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/xaml-docs/merges","archive_url":"https://api.github.com/repos/telerik/xaml-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/xaml-docs/downloads","issues_url":"https://api.github.com/repos/telerik/xaml-docs/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/xaml-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/xaml-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/xaml-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/xaml-docs/labels{/name}","releases_url":"https://api.github.com/repos/telerik/xaml-docs/releases{/id}","deployments_url":"https://api.github.com/repos/telerik/xaml-docs/deployments","created_at":"2014-08-18T12:46:34Z","updated_at":"2016-06-22T00:26:19Z","pushed_at":"2016-08-31T12:45:22Z","git_url":"git://github.com/telerik/xaml-docs.git","ssh_url":"git@github.com:telerik/xaml-docs.git","clone_url":"https://github.com/telerik/xaml-docs.git","svn_url":"https://github.com/telerik/xaml-docs","homepage":"http://docs.telerik.com/devtools/wpf/","size":134377,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":19,"forks":103,"open_issues":19,"watchers":13,"default_branch":"master"}},"base":{"label":"telerik:R3-2016","ref":"R3-2016","sha":"8db6e4ab0625ff09948cdb7654b6ebbcdd4908f8","user":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"repo":{"id":23070893,"name":"xaml-docs","full_name":"telerik/xaml-docs","owner":{"login":"telerik","id":568561,"avatar_url":"https://avatars.githubusercontent.com/u/568561?v=3","gravatar_id":"","url":"https://api.github.com/users/telerik","html_url":"https://github.com/telerik","followers_url":"https://api.github.com/users/telerik/followers","following_url":"https://api.github.com/users/telerik/following{/other_user}","gists_url":"https://api.github.com/users/telerik/gists{/gist_id}","starred_url":"https://api.github.com/users/telerik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/telerik/subscriptions","organizations_url":"https://api.github.com/users/telerik/orgs","repos_url":"https://api.github.com/users/telerik/repos","events_url":"https://api.github.com/users/telerik/events{/privacy}","received_events_url":"https://api.github.com/users/telerik/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/telerik/xaml-docs","description":"Public Documentation for Telerik UI for WPF and Silverlight","fork":false,"url":"https://api.github.com/repos/telerik/xaml-docs","forks_url":"https://api.github.com/repos/telerik/xaml-docs/forks","keys_url":"https://api.github.com/repos/telerik/xaml-docs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/telerik/xaml-docs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/telerik/xaml-docs/teams","hooks_url":"https://api.github.com/repos/telerik/xaml-docs/hooks","issue_events_url":"https://api.github.com/repos/telerik/xaml-docs/issues/events{/number}","events_url":"https://api.github.com/repos/telerik/xaml-docs/events","assignees_url":"https://api.github.com/repos/telerik/xaml-docs/assignees{/user}","branches_url":"https://api.github.com/repos/telerik/xaml-docs/branches{/branch}","tags_url":"https://api.github.com/repos/telerik/xaml-docs/tags","blobs_url":"https://api.github.com/repos/telerik/xaml-docs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/telerik/xaml-docs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/telerik/xaml-docs/git/refs{/sha}","trees_url":"https://api.github.com/repos/telerik/xaml-docs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/telerik/xaml-docs/statuses/{sha}","languages_url":"https://api.github.com/repos/telerik/xaml-docs/languages","stargazers_url":"https://api.github.com/repos/telerik/xaml-docs/stargazers","contributors_url":"https://api.github.com/repos/telerik/xaml-docs/contributors","subscribers_url":"https://api.github.com/repos/telerik/xaml-docs/subscribers","subscription_url":"https://api.github.com/repos/telerik/xaml-docs/subscription","commits_url":"https://api.github.com/repos/telerik/xaml-docs/commits{/sha}","git_commits_url":"https://api.github.com/repos/telerik/xaml-docs/git/commits{/sha}","comments_url":"https://api.github.com/repos/telerik/xaml-docs/comments{/number}","issue_comment_url":"https://api.github.com/repos/telerik/xaml-docs/issues/comments{/number}","contents_url":"https://api.github.com/repos/telerik/xaml-docs/contents/{+path}","compare_url":"https://api.github.com/repos/telerik/xaml-docs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/telerik/xaml-docs/merges","archive_url":"https://api.github.com/repos/telerik/xaml-docs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/telerik/xaml-docs/downloads","issues_url":"https://api.github.com/repos/telerik/xaml-docs/issues{/number}","pulls_url":"https://api.github.com/repos/telerik/xaml-docs/pulls{/number}","milestones_url":"https://api.github.com/repos/telerik/xaml-docs/milestones{/number}","notifications_url":"https://api.github.com/repos/telerik/xaml-docs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/telerik/xaml-docs/labels{/name}","releases_url":"https://api.github.com/repos/telerik/xaml-docs/releases{/id}","deployments_url":"https://api.github.com/repos/telerik/xaml-docs/deployments","created_at":"2014-08-18T12:46:34Z","updated_at":"2016-06-22T00:26:19Z","pushed_at":"2016-08-31T12:45:22Z","git_url":"git://github.com/telerik/xaml-docs.git","ssh_url":"git@github.com:telerik/xaml-docs.git","clone_url":"https://github.com/telerik/xaml-docs.git","svn_url":"https://github.com/telerik/xaml-docs","homepage":"http://docs.telerik.com/devtools/wpf/","size":134377,"stargazers_count":13,"watchers_count":13,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":103,"mirror_url":null,"open_issues_count":19,"forks":103,"open_issues":19,"watchers":13,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/726"},"html":{"href":"https://github.com/telerik/xaml-docs/pull/726"},"issue":{"href":"https://api.github.com/repos/telerik/xaml-docs/issues/726"},"comments":{"href":"https://api.github.com/repos/telerik/xaml-docs/issues/726/comments"},"review_comments":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/726/comments"},"review_comment":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/telerik/xaml-docs/pulls/726/commits"},"statuses":{"href":"https://api.github.com/repos/telerik/xaml-docs/statuses/40f26dba6a54a218d9b729fcb4012d29391893a3"}}}}
{"actor":{"display_login":"TanyaDimitrova"}}