tabcontrol

Dynamically creating many instances of ASP.NET usercontrols: How do I create it, and where will my conflicts be?

I haven't seen this implemented before in ASP.NET, but am thinking about a UI that would look and act like this: Conceptual Overview A TabControl is loaded and the first tab contains a grid When a row is double-clicked, a new tab is created with the record detail The content of the tab/record detail is created by a usercontrol Many ta...

.NET Tab Contol. Not scroling when chield control have a min size and anchor right.

Hi all, please help. I have a simple dialog with tab control whit property Dock = Fill. On the tab page I add another control and set its properties Anchor as 'Left, Top, Right' and min size as '600,300' for example. I set the property of tab page AutoScrolling to true. But when I resize the dialog the horizontal scrolling of the tab p...

How to use left over space in wpf tab items row

Upper part of TabControl consists of TabItem controls. Is there a way to reuse remaining space there to put some WPF content? I think I could use a "fake" TabItem with different styling and put my stuff in TabItem.Header but I was hoping there's a better way. Solution Based on the answer below, I got the desired behavior by wrapping T...

C# - TabControl with TabPages all around

Hi... Is there a way, how to create tabControl with tabPages alignmented not only Bottom, but BOTTOM | TOP | LEFT | RIGHT ? Thanks ...

.Net WinForms TabControl Steals Focus on form activation

Hi Guys, I wonder if there is anyone who can help me? The issue I have is a windows form TabPage stealing focus upon form re-activation. The form has a TabControl with four or five TabPages. Each tab page has many various controls. The scenario is as follows: A user tabs through a few controls on the first TabPage and a new form is sp...

TabControl's TabItems sharing same content... Do Not Want.

The following example xaml causes each tab item to share the same TextBox. It makes sense, on some level I guess... but it's unexpected behavior, and almost feels like a bug. And I couldn't find any information in the docs explaining the behavior, or how to correctly get around it. <TabControl> <TabControl.Resources> <Style ...

WPF TabControl - visibility-based enabling of display-calculations

Suppose I have a tab-based interface like Internet Explorer. In each tabpage cpu-intensive stuff can happen (f.e. displaying a waveform and calculating and displaying a realtime FFT) that is only relevant as realtime statistic - so only when it's actuallty visible to the user. What's the best way to approach this ? ...

How to Achieve Lazy Binding of Tab Page Controls in WPF?

Hi, I have an entity class. This entity has lots of properties and entity's data is shown to the user in several tabpages of a tab control. I also implement mvvm approach. When the screen is shown to the user first, I want to bind only the active tab page controls and when the user navigates through tab pages seperate bindings will b...

WPF Styles for TabControl / TabPanel / TabItem

Here's a newbie question on the WPF TabControl, TabItem and TabPanel. There is a related question on StackOVF with an answer I happily used in my app. Here's a link to the answer, and the code snippet as well: http://stackoverflow.com/questions/2273567/wpf-center-tabitems-in-a-tabcontrol/2273724#2273724 <TabControl> <TabControl.Res...

Silverlight stretching TabItem Headers to parent control width

Hello. I am creating a SL App that has a TabControl with dynamically created TabItems which are added via code behind. I'd like said TabItems to size proportionally to the TabControls full width, much like what is described here. Now Silverlight does not have IMultiValueConverter, and not knowing how many tab I will have, I am a bit st...

Why is a control destroyed twice when it's nested in a tab control?

I've been trying to debug why closing windows forms designer is crashing visual studio and have discovered by adding a series of message boxes that if my controls are nested inside a System::Windows::Forms::TabControl the destructor of those controls are called twice. Is that expected behaviour and is there a way of avoiding it? ...

Preventing the User to select a tab WPF Tab Item

I had to prevent the user from selecting a tabitem in a WPF TabControl, 1)unless and untill the user checks a check box in one condition the user should be shown a message box and if he checks the check box he can navigate to any other tab 2)Checking a particular condition the user shouldnt be able to get into a particular tab on selec...

WPF TabControl - Preventing Unload on Tab Change?

Is there a way to prevent the Tab Unload/Reload when a tab changes in a WPF tab control? Or if that is not possible, is there a recommended method for caching the tabs contents so they don't have to be regenerated with each tab change? For example, one tab's UI is completely customizable and stored in the database. When the user selects...

Rearranging a collection without Add/Removing items?

I have a TabControl that can be rearranged by dragging/dropping the tabs. The current process removes an item from the list and adds it to a new location. I had some performance issues switching tabs because of how complex the tabs are, so found an alternative which stores the rendered tabs and reloads them when requested. My only proble...

Bind a Silverlight TabControl to a Collection

I have a Collection of Model-objects in my ViewModel. I would like to be able to bind a TabControl to these and use a DataTemplate to extract the information from the Model-objects. When I try to do this I get the errormessage: Unable to cast object of type Model to object of type TabItem. After spending some time looking for a solution ...

How to change appearance of TabItems in a scrolling WPF TabControl?

Hello, I have a scrolling TabControl, using a ScrollViewer and StackPanel (with the StackPanel set as IsItemsHost="true"). To begin with, I am working from a solution originally outlined here - Creating Scrolling Tabs Using WPF's TabControl . At the moment it has broken links (Edit: I have tracked down one instance of his code in a fo...

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 tab, I need my datagrid sorted, so I'm using the TabControl SelectionChanged event to trigger the sort. However, this event triggers every time an item is selected from the DataGrid, even though the tabs themselves...

WPF tab-control with the same controls for all tabs

How do I create n-numbers of tabs with the data controls in wpf? Let's say the main application has a button called "new customer" and "save data." When "new customer" is pressed a new tab appears with two text boxes "Name" and "Customer Number" contained in the tab, and so on. Once the two fields are populated, pressing the "save Data"...

Icons in TabControl C# - How?

I can't seem to find an answer for this anywhere. An icon before the label on the default tabcontrol tabs would suffice for my needs. Thanks in advance. Q: You need to clarify what library set you're using: Winforms, WPF, ASP.Net, GTK#, etc. – Nathan Ernst A: You are totally right, my mistake. I'm using Winforms. I switched back from ...

CF - TabControl - how to make the tabs bigger?

I have a tab control with tab pages (cf). The tabs are too small ... can some1 tell me how can i make them bigger? ...