private HeaderedContentControl GetTabItem() { HeaderedContentControl tabItem; Type tabItemType = RestApiAuthMgrWpf.GetCustomControlType(CustomWpfControlType.TabItem); if (tabItemType == null) { tabItem = new TabItem(); } else { tabItem = (HeaderedContentControl)Activator.CreateInstance(tabItemType); } return(tabItem); }
private Selector GetTabControl() { Selector selector; Type tabControlType = RestApiAuthMgrWpf.GetCustomControlType(CustomWpfControlType.TabControl); if (tabControlType == null) { selector = new TabControl(); } else { selector = (Selector)Activator.CreateInstance(tabControlType); } return(selector); }
private Button GetButton() { Button button; Type buttonType = RestApiAuthMgrWpf.GetCustomControlType(CustomWpfControlType.Buttons); if (buttonType == null) { button = new Button(); } else { button = (Button)Activator.CreateInstance(buttonType); } button.Margin = new Thickness(5, 0, 5, 0); button.Height = 25; return(button); }