{"action":"closed","issue":{"url":"https://api.github.com/repos/PrismLibrary/Prism/issues/327","labels_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/327/labels{/name}","comments_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/327/comments","events_url":"https://api.github.com/repos/PrismLibrary/Prism/issues/327/events","html_url":"https://github.com/PrismLibrary/Prism/issues/327","id":119918225,"number":327,"title":"Add support in PRISM for setting header of TabControl","user":{"login":"tiesmaster","id":460904,"avatar_url":"https://avatars.githubusercontent.com/u/460904?v=3","gravatar_id":"","url":"https://api.github.com/users/tiesmaster","html_url":"https://github.com/tiesmaster","followers_url":"https://api.github.com/users/tiesmaster/followers","following_url":"https://api.github.com/users/tiesmaster/following{/other_user}","gists_url":"https://api.github.com/users/tiesmaster/gists{/gist_id}","starred_url":"https://api.github.com/users/tiesmaster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tiesmaster/subscriptions","organizations_url":"https://api.github.com/users/tiesmaster/orgs","repos_url":"https://api.github.com/users/tiesmaster/repos","events_url":"https://api.github.com/users/tiesmaster/events{/privacy}","received_events_url":"https://api.github.com/users/tiesmaster/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-02T11:02:25Z","updated_at":"2015-12-02T15:56:28Z","closed_at":"2015-12-02T15:56:28Z","body":"When you host a region in a `TabControl`, the views and view models that are in the region don't have control over the header text. I would like PRISM to have support for this out of the box.\r\n\r\nI know @brianlagunas discussed in his excellent Pluralsight Course (\"Prism Problems & Solutions: Mastering TabControl\"), that you can easily set the header text of a TabControl using a style. Even though, that is a very simple solution to the problem, I do think it has some downsides: (1) you always need to customize all the `TabControl`s that you use with a custom style, which leads to code duplication, and (2) it is \"untyped\", there is nothing in the view or view model stating that it's participating in being hosted in a TabControl.\r\n\r\nWe have a [behavior](https://gist.github.com/tiesmaster/cf9e808e744e8f0cc2f4#file-regionhostedintabcontrolawarebehavior-cs) that enables a view model to be [\"region hosted in TabControl\"-aware](https://gist.github.com/tiesmaster/cf9e808e744e8f0cc2f4#file-iregionhostedintabcontrolaware-cs)\r\nso you can implement that, and give the view model that information back to PRISM, similar to how IActiveAware works, and all of its friends. \r\n\r\nCould this be part of PRISM?"}}