tabcontrol

TabItems from View collection

I am using MVVM. I have a tab control. I will have a collection of items. I want to display each of this item in the collection as a tab item. The view in each tab item is different and may have its own viewmodel. How do I achieve this? E.g. I have 3 items in the collection. The Tab item template contains an ItemControl. I would like to ...

C# TabControl - is it possible to "disable" individual TabPages?

Is it somehow possible to disable one (or more) tabs of tab control? At some point I need to make user stay on the active tab and prevent him from leaving... I know I can disable the whole TabControl component, but that disables also all components on active tab... I also tried to use the Selecting method of TabControl: private void Ta...

How to implement MVP pattern for a tabcontrol?

I have an application that has a tabcontrol with 5 tabpages of information that user interacts with. Also, there are contextual menus and toolbars for editing and formatting the information. Do I create a different view & presenter for each tab page or the tabcontrol iteself? How do I apply the pattern to the toolbars and menus that ca...

C# infragistics UltraDockManager

I have created a side tab that opens just fine(basically turned a UltraGrid into a tab, not a form w/ an UltraGrid ), but when pinning the side tab it gets sized in back of the main form. How do I set the pinned tab layout to open up based on my sizing? ...

WPF TabControl/ScrollIntoView Issue

Hi, I have a TabControl with two tabs containing lists that should always be scrolled to the bottom: <TabControl> <TabItem Header="Tab1"> <ScrollViewer VerticalScrollBarVisibility="Auto"> <ListBox x:Name="List1"> <ListBox.ItemTemplate> <DataTemplate Dat...

I want to use a silverlight TabItem as a button container

I want zero functionality and appearance. I also want it to be all the way to the right of the tab strip. does anyone have any pointers as to how I can accomplish this? ...

How do i create nice looking controls?

hi guys, I found a nice controls used by a software so wanted to use or build similar nice looking controls for my applications in vb.net First Sample control is nice rounded cornor group box [ i guess so ]: http://sachicomputer.com/kabin/samples/control1.jpg and second control is nice looking tab control: http://sachicomputer.com/ka...

WPF- Is there a way to make a TabContol ignore CTRL-Tab and still fire CTRL-TAB keybindings on the parent window?

I have a TabControl in the mainwindow of my app. I also Have a keyBinding for CTRL-TAB. However, whenever the TabControl is selected and CTRL-TAB is pressed the keybinding is not triggered because the TabControl handles the input and cycles through the tabs. Is there any way that I can fix this? ...

adding tabs to tabcontrol from inside usercontrol

How can I add tabs to a tabcontrol that exists in one usercontrol from another usercontrol that is contained within a tab itself?? Can I do it without passing in the tabcontrol as a parameter in the constructor, perhaps via some static global method? I've tried public static ObservableTabCollection FindCollectionFromUC(this Dependency...

Navigating a WPF Tab Control from within a User Control ?

My WPF application consists of a main window with a tab control which has a series of tab items, each hosting a user control. I'd like one of the user controls to be able to trigger the application to change focus from the current tab to a different one. Is there a way for the user control to trigger its tab control container to chan...

How to resize controls to fit the browser window in C#, Silverlight 4

I have a tab control in my main page. When I have it in the Design view in Visual Studio, everything looks perfect, the tab control is set to fill the entire page. However when I run the program, and I have it in a maximized browser window, the tab control is still the same size as it originally was. In other words, the tab control do...

TabControl blinks if image is background

I have noticed that if I have a TabControl in a Panel that has an Image Background, when the mouse hovers over a tab it blinks and redraws. Is there a workaround to prevent this from happening? ...

TabControl.DrawItem not firing on user painted TabControl

Hey, I've been trying to paint my own TabControl to get rid of the 3D Shadow but I am not having much success. The DrawItem event isn't firing at the moment. Do I have to shoot it myself? How do I do that? Code: namespace NCPad { public partial class NCE_TabControl : TabControl { Rectangle TabBoundary; Rectangle...

Remove gutters from TabControl?

Im writing a user drawn TabControl. The class inherits from the base TabControl class and for some reason I can't get rid of this ugly gutter. I want the TabPage to span the entire width of the control. Do I need to draw my own TabPage? ...

How do you add content to a tab control dynamically in wcf?

How do you add content to a tab control dynamically in wcf? I mean add content to the display area that comes visibile when clicking on the tab control. Allow me to rephrase this. I have a WCF app. In this app, I have a tab control that id defined in the XAML. It is easy to add content to the pages of the tab control in the XAML. H...

How to make only the header of the tabitem respond to the mouse event

I'm trying to make only the header of the TabItem send an event. So far I have my xaml... <TabControl> <TabItem Header="tab 1"> Any text </TabItem> <TabItem Header="tab 2"> <TextBox>blah</TextBox> </TabItem> <TabControl.Resources> <Style TargetType="Ta...

Problem getting custom content in a TabItem visible.

I have a custom ItemsControl (WorKArea) that marks all items it has into a WorkSheet instance. I have a style for the ItemsControl that uses a TabControl to show the content. Every sheet creates a tab. The style is: <Style TargetType="{x:Type local:WorkArea}"> <Setter Property="Template"> <Setter.Value> <Control...

Create a slanted-tab header in Silverlight

Hi, I wanted to create a slanted tab header using the tabitem control in the silverlight toolkit. I want it to look like the image below but i'm not sure how to accomplish this. http://img713.imageshack.us/img713/1462/silverlighttabs.png Any help and direction would be gladly appreciated Thanks, Keith ...

Close button in tabControl

hi all, is there anyone can tell me how to add close button in each tab in using tabControl in C#? i plan to use button pic for replacing [x] in my tab.. thank you ...

How can I add WPF form into tab item of tab control

Hi, How can I add WPF form into tab item of tab control? like I have make wpf form, I need to add in tab control collection just like when we open wpf form in VS 2010 and it is open in Tab MDI form and different forms are showing in different tab. Thanks ...