{"action":"closed","issue":{"url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2708","repository_url":"https://api.github.com/repos/MahApps/MahApps.Metro","labels_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2708/labels{/name}","comments_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2708/comments","events_url":"https://api.github.com/repos/MahApps/MahApps.Metro/issues/2708/events","html_url":"https://github.com/MahApps/MahApps.Metro/issues/2708","id":184048018,"number":2708,"title":"Set MetroTabItem ControlsHelper.HeaderFontSize using code","user":{"login":"vladano","id":5688721,"avatar_url":"https://avatars.githubusercontent.com/u/5688721?v=3","gravatar_id":"","url":"https://api.github.com/users/vladano","html_url":"https://github.com/vladano","followers_url":"https://api.github.com/users/vladano/followers","following_url":"https://api.github.com/users/vladano/following{/other_user}","gists_url":"https://api.github.com/users/vladano/gists{/gist_id}","starred_url":"https://api.github.com/users/vladano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladano/subscriptions","organizations_url":"https://api.github.com/users/vladano/orgs","repos_url":"https://api.github.com/users/vladano/repos","events_url":"https://api.github.com/users/vladano/events{/privacy}","received_events_url":"https://api.github.com/users/vladano/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-10-19T19:07:26Z","updated_at":"2016-10-20T20:19:36Z","closed_at":"2016-10-20T20:19:36Z","body":"## What steps will reproduce this issue?\r\n\r\nI add additional button on TabControlExamples.xaml from MetroDemo\r\n    <Button Click=\"AddNewTab_Click\">Add New Tab</Button>\r\n\t\r\nOn click event I try to add additional MetroTabItem using code to existing MetroTabControl \r\n```\r\n<Controls:MetroTabControl Name=\"TabCloseControl\" TabItemClosingEvent=\"MetroTabControl_TabItemClosingEvent\">\r\n...\r\n</Controls:MetroTabControl>\r\n```\r\n\r\n```\r\nprivate void AddNewTab_Click(object sender, RoutedEventArgs e)\r\n{\r\n\tMetroTabControl tc = (MetroTabControl)this.FindName(\"TabCloseControl\");\r\n\tMetroTabItem cti = new MetroTabItem();\r\n\tcti.Header = \"can\";\r\n\tcti.CloseButtonEnabled = true;\r\n\tcti.FontSize = 16;\r\n\ttc.Items.Insert(2,cti);\r\n}\r\n```\r\n\r\nI don't know how to set value for HeaderFontSize using code ?\r\nIn XAML that can be set using Controls:ControlsHelper.HeaderFontSize=\"20\", how to do this using code ?\r\nI try do that using \"cti.FontSize = 16;\", but it doesn't work.\r\n\r\nAny idea ?\r\n\r\n_Write problem description here_\r\n\r\n### Expected outcome\r\n\r\n_Write expected outcome here_\r\n\r\n\r\n--\r\n### Environment\r\n\r\n- MahApps.Metro __v1.4.0__\r\n- Windows __10__Pro_x64\r\n- Visual Studio __2015__Enterprise\r\n- .NET Framework __4__\r\n"}}
{"actor":{"display_login":"vladano"}}