tabcontrol

The correct way to find the TabItem from ContextMenu Command

I have the TabControl on which I am setting the ContextMenu. All ContextMenu elements have commands set. <ContextMenu x:Key="tabMenu"> <MenuItem Command="{x:Static tabs:TabCommands.Close}" /> <MenuItem Command="{x:Static tabs:TabCommands.CloseAllButThis}" /> <MenuItem Command="{x:Static tabs:TabCommands.CloseAll}" /> </ContextMen...

TabControl Context Menu

In a Windows Forms app I set the ContextMenuStrip property on a TabControl. How can I tell the user clicked a tab other then the one that is currently selected? How can I restrict the context menu from showing only when the top Tab portion with the label is clicked, and not elsewhere in the tab? ...

How do I get a TabControl to use the full width of its parent?

The standard System.Windows.Forms.TabControl component draws a border around the TabPages it contains. If you set its Dock to Fill, these borders run up to the edge of the parent control, but they're still there, taking up screen space. In Visual Studio, if you dock two windows in the same place, you get a TabControl-like set of tabs a...

How to programmatically add a Tab to TabControl with a ListView control docked inside it?

I'm using Visual Basic 9 (VS2008) I want to create new Tabs as and when the user clicks an Add Tab button. The Tab must have a ListView control docked inside it. How to programmatically add a Tab to TabControl with a ListView control docked inside it? ...

How to display the same control on two different tabs?

I'm using VB.NET I need same control (ListBox) to be displayed on 2 different tabs. Is it mandatory to create 2 different ListBox instances? ...

How do you get data from controls on pages on a Tab Control

I've got a WPF tab control that contain several duplicate controls as Tab Page content <TabControl ItemsSource="{Binding}" Name="tabControl"> <TabControl.ItemTemplate> <DataTemplate> <TextBlock Text="{Binding Name}"/> </DataTemplate> </TabControl.ItemTemplate> <TabControl.ContentTemplate> ...

How to hide TabPage from TabControl

How to hide TabPage from TabControl in WinForms 2.0? ...

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 editor of VS 2008. Can it be done with WPF styles or it must be drawn in code? Is there any example of code available on internet? Edit: There is lots of examples that show how to round co...

How do I get a control which looks like a TabControl with no tabs?

We have a form which displays media items in tab pages of a tab control, and I'm implementing a feature which allows users to 'pop out' the tab pages into their own forms. However, when I add the media player to a form rather than a TabPage, the background switches from the gradient fill of a tab page to the plain SystemColors.Control b...

Custom Tab Control not displaying in Visual Studio Form Design View

Hi, So I have an existing project with a custom tab control nested within panels and splitters etc. Now I need to add something to one of the pages of this tab control through the design view. However, when I view the form in question, the tab control is nowhere to be seen (and not in the drop down of current controls on the page). T...

How can I bind a List collection to TabControl headers in WPF?

I can get data into my TabControl but the headers have frames around them and I can't slick from tab to tab. What am I doing wrong with the XAML binding syntax on this TabControl? XAML: <StackPanel> <TabControl x:Name="TheTabControl"> <TabControl.ItemTemplate> <DataTemplate> <TabItem Header="{B...

ASP.Net AJAX TabControl

Hi. I have placed an AJAX Tabcontrol on my page. Inside the TabControl, I also placed a gridview. <cc1:TabContainer id="tabconLandTransPlan" runat="server" Height="300px" ActiveTabIndex="0" AutoPostBack="True"> <cc1:TabPanel runat="server" ID="tabMasterPlan" HeaderText="Master Plan" > <HeaderTemplate> <span style="font-size: 8pt; ...

multiple userControl instances in tabControl

I have a tabControl that is bound to an observable collection. In the headerTemplate, I would like to bind to a string property, and in the contentTemplate I have placed a user-control. Here's the code for the MainWindow.xaml: <Grid> <Grid.Resources> <DataTemplate x:Key="contentTemplate"> <local...

How to dynamically display one of two Winforms tabs?

I have a TabControl with 5 tabs, and the contents of one of the tabs depends on some conditions or modes - Sometimes it needs to show one set of controls, on other times it should show an entirely different set of controls. What is the easiest way to achieve this? I tried setting up two different tabs, and using something like tab.Enabl...

How to handle notify messages in child & parent classes?

I have a custom CTabCtrl which I am trying to customize (to automatically change pages). If I handle ON_NOTIFY_REFLECT(TCN_SELCHANGE, ...) in my tab control, ON_NOTIFY(TCN_SELCHANGE, ...) is not received by the parent class. How can I receive both notify messages in the child and parent classes? Currently I am using a "workaround" of...

control to interchange UIElements in WPF

What is the most minimal way to dynamically interchange UIElements at a certian "slot" on the UI? I have a number of UIElements and based on some external databinding (e.g. a combobox selection) I want one of them to be shown and the one that was currently visible to be hidden. So the behavior is sort of like the tabcontrol but without t...

Problem with Binding Close Command to Button in a Tabcontrol datatemplate

Im Using Composite Aplication Guidiance Pattern for building my WPF application. In my Shell i have a tabcontrol wich contains a region for dynamicly load Views into the region. The views is loaded into new tabs in the TabControl. <TabControl AutomationProperties.AutomationId="MainTabControl" cal:RegionManager.Region...

WPF TabControl Databinding

I'm trying to build a WPF user interface containing a TabControl, and a TextBlock. I want to bind these two controls to an underlying collection of instances of the following class: class PageModel { public string Title {get;set;} public string TabCaption {get;set;} public FrameworkElement TabContent {get;set} } The tab control...

Why can't I set the Opacity in this situation?

Here's the situation... at the top level, I have a TabControl. Each page in the TabControl consists of a ListBox: <TabControl> <TabItem Header="item 1"> <ListBox> <ListBoxItem>sub item 1</ListBoxItem> <ListBoxItem>sub item 2</ListBoxItem> <ListBoxItem>sub item 3</ListBoxItem> </Li...

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 application is being developed on my free time and it will be available to the public for free. So, I'm looking for a free control to integrate better into my Krypton application because t...