Beispiel #1
0
        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);
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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);
        }