tagged [tabcontrol]

In C# WPF, why is my TabControl's SelectionChanged event firing too often?

In C# WPF, why is my TabControl's SelectionChanged event firing too often? I have a tabbed GUI with each tab containing a Frame. In one of these Frames there is a DataGrid. When the user selects this ...

7 Sep at 15:3

What is Control.IsHandleCreated needed for?

What is Control.IsHandleCreated needed for? I'm examining the source of the built-in .net control for TabControl, and I see that it references this property before deciding whether to Add or Insert a ...

6 Feb at 03:53

Where can I find a nice .NET Tab Control for free?

Where can I find a nice .NET Tab Control for free? I'm doing this application in C# using the free Krypton Toolkit but the Krypton Navigator is a paid product which is rather expensive for me and this...

3 Apr at 15:6

Set TabPage Header Color

Set TabPage Header Color Greetings, I have a tab control and I want to have 1 of the tabs have it's text color changed on a event. I've found answers like [C# - TabPage Color event](https://stackoverf...

23 May at 12:9

Vertical Tab Control with horizontal text in Winforms

Vertical Tab Control with horizontal text in Winforms I would like to have the tabs on my TabControl displayed on the left, or sometimes right. Unlike the System.Windows.Forms.TabControl, however, I w...

21 Sep at 10:43

How to create trapezoid tabs in WPF tab control

How to create trapezoid tabs in WPF tab control How to create trapezoid tabs in WPF tab control? I'd like to create non rectangular tabs that look like tabs in Google Chrome or like tabs in code edito...

8 Feb at 14:10

How to change the color of the selected tab in the TabControl?

How to change the color of the selected tab in the TabControl? I am implementing a `TabControl` for a dialog box in WPF. The color of the selected tab (mouse-down) is white by default. I want to chang...

27 Aug at 18:30

Hide TabControl buttons to manage stacked Panel controls

Hide TabControl buttons to manage stacked Panel controls I need to handle multiple panels, containing variuous data masks. Each panel shall be visible using a TreeView control. At this time, I handle ...

9 May at 16:3

WPF C# Programmatically adding and moving tabs

WPF C# Programmatically adding and moving tabs I'm currently working on something that is probably done in plenty of examples out there. But after some searching I can't find anything. I'm working wit...

21 Jan at 09:29

Customizing a TabControl for the Closing of Individual Tabs

Customizing a TabControl for the Closing of Individual Tabs ## My scenario is the following: I am working on a winforms application in C# that has a button inside the main page of a tabcontrol that wi...

How do I bind a TabControl to a collection of ViewModels?

How do I bind a TabControl to a collection of ViewModels? Basically I have in my MainViewModel.cs: However, I need to somehow be able to not only create the tabs, but have the tabs content be loaded a...

2 Dec at 17:13

Bind Data to Windows Form TabControl

Bind Data to Windows Form TabControl I'm attempting my first Windows Form project, having been entirely web based previously and experiencing some issues. I want to bind a list of objects to a TabCont...

30 Aug at 10:30

TabPage Click Events

TabPage Click Events I'm trying to automatically trigger events based on the tab page that is clicked on the tab control. In design mode of my form, when I click on the tabs the properties box says Ta...

13 Mar at 12:49

Visual studio - TabControl.TabPages.Insert not working

Visual studio - TabControl.TabPages.Insert not working Here's my code: ``` public MainForm() { InitializeComponent(); MyServiceSettings obj = (MyServiceSettings)ConfigurationManager.GetSecti...

7 Oct at 15:40

Change the Tab size of tabControl

Change the Tab size of tabControl I redraw the graphics of the `Tab` for the `TabControl` but I can't set the `Width` of it. What I want is that the text of the `Tab` and the icon is contained in its ...

2 Feb at 14:41

Stop TabControl from recreating its children

Stop TabControl from recreating its children I have an `IList` of viewmodels which are bound to a `TabControl`. This `IList` will not change over the lifetime of the `TabControl`. ```

23 May at 12:34

TabControl with Close and Add Button

TabControl with Close and Add Button I'm tring to make a tab control have a "x" (close button) and "+" (new tab button). I found a solution to add a [x button](https://stackoverflow.com/questions/3183...

How to change background color of TabControl.Header

How to change background color of TabControl.Header I need to change the background color of the TabControl header, but TabControl haven't property for it, how can I do it. Help me please. Here is my ...

29 May at 11:0

Issue with WPF validation(IDataErrorInfo) and tab focusing

Issue with WPF validation(IDataErrorInfo) and tab focusing I have a `TextBox` bound to a property of an object which implements `IDataErrorInfo`. I set up the `Validation.ErrorTemplate` of the `TextBo...

WPF TabControl - Cannot programmatically select tabs

WPF TabControl - Cannot programmatically select tabs I have a user interface with a TabControl that initially displays a start page. Other items can be added to it by double-clicking on content in, fo...

25 May at 23:12

WPF Caliburn.Micro and TabControl with UserControls issue

WPF Caliburn.Micro and TabControl with UserControls issue I'm pretty sure this has been answered somewhere, but I can't seem to find it for the life of me. I'm trying to use a TabControl to switch bet...

2 Jan at 13:16

WPF Error Styles only being rendered properly on visible tab of a tab control

WPF Error Styles only being rendered properly on visible tab of a tab control I have a data object used to contain my UI data that supports `INotifyPropertyChanged` and `IDataErrorInfo`. Originally I ...

7 Nov at 14:55