tabcontrol

Frame Navigation in Silverlight app

I have a WebRibbon control for a menu. I have a TabControl on the page that holds all content. As you click on a menu I create a TabItem, add a frame to the tab item, navigate to a specific xaml page in that frame and then add the frame to the tab item. It works fine for the first page. The content of the xaml page displays correctly in ...

Keep TabItems in a TabControl from repositioning?

Hi everyone, In WPF, Is there a simple way to stop TabItems in a TabControl from being repositioned when the selected TabItem changes? So that clicking on a TabItem would simply display its contents, but not reposition the TabItems as it usually does (by moving the selected TabItem to the bottom row of tabs if it wasn't there already). ...

WPF TabControl & TabItems with DropShadows

Hi Guys, I'm looking for a way to control DropShadow (DS) effects on the TabControl and TabItems in Blend 3. I want a DS effect on the selected TabItem and TabControl and then a different DS effect on the unselected TabItems. There is an image here to show what I mean: http://www.funkadeelia.com/imageHosting/TabControl_example.jpg Ba...

Design-time issue with tabcontrol in Expression Blend 3

I have a xaml page with a tabcontrol on. This tabcontrol has 2 tabitems on. The one tabitem has a few controls on eg. database grid, textboxes, checkboxes etc. I can not drag or select any of these controls in design time in Expression Blend 3. It must be something with the tabcontrol because I can drag and select controls on other page...

Launch User Control in a tab control dynamically

I have a custom built menu system in which I would like to load user controls from another project into a tab control on my main project (menu control) User control Project : foobar Menu system Project : Menu The function to load them into the tab control: private void LaunchWPFApplication(string header, string pPath) { ...

Draggable tab control for Delphi?

Are there any tab controls available for Delphi where the tabs can be clicked and dragged to reorder them, like in a web browser? ...

WPF usercontrols on separate tabs: why is radiobutton groupname shared between tabs?

I am using a WPF tab control to present separate repeated instances of a user control. i.e. Tab1 for Item1 settings, Tab2 for Item2 settings, and so on. It appears that the radio button group names are being shared between tabs. What is going on? Simple example: A window contains tabs. Each tab contains a user control. <Window x:Clas...

Custom Tabcontrol in silverlight 4

Hello, I'm trying to design a tab control which will have a tabs on left hane hand side, and will have a text displayed vertically besides it. And will have the Page displayed in the main tab control. For reference you can visit : http://www.nseindia.com/ and click on any tab in the main menu. How can it be designed? I have created ...

Please critique this method

Hi I've been looking around the net for some tab button close functionality, but all those solutions had some complicated eventhandler, and i wanted to try and keep it simple, but I might have broken good code ethics doing so, so please review this method and tell me what is wrong. public void AddCloseItem(string header, object conte...

[Silverlight, Navigation] Layout of elements added to a tabcontrol on a different navigation page wrong.

Hello, I am developing a Silverlight client using the provided navigation template for an imageboard I developed. I have a "search" tab which lists all searches for tags which were executed. I also have a show post tab which shows (also in tab-form) posts, opened from the search tab. When I open a post from the search page, it instan...

How to set "TabControl" BackColor property in VS2005?

Hi, I created a TabControl in VS2005 and I bound two TabPages. I found I can change the TabPage BackColor property easily. but I can't change the TabControl BackColor as well. How Can I Change the TabControl BackColor to match my TabPage BackColor? Please See Screen Capture . Thank you. ...

Setting CommandTarget to selected control in a TabControl

I have a WPF window with a few buttons and a tabcontrol having a tab for each 'document' the user is working on. The tabcontrol uses a DataTemplate to render the data in ItemSource of the tabcontrol. The question: If one of the buttons is clicked, the command should be executed on the control rendering the document in the active tab, b...

Tabcontrol in Silverlight Navigation Application

How to use a common TabControl in Silverlight 4 Navigation Application? For example, It would be kept at same position in all views like here the Manu bar is kept which has Questions,Tags,Users etc. as headers. When the user clicks on any TabItem I want to load the respective page in the frame provided by default. I also want the back/f...

How can I find any control in the ItemTemplate of a TabControl?

Hi, I have a TabControl <TabControl Name="myTabControl" IsSynchronizedWithCurrentItem="True" ItemsSource="{Binding}"> <TabControl.ItemTemplate> <DataTemplate> <DockPanel Width="120"> <Button Na...

TabControl without the tabs (QStackWidget in c#)

I am writing an application who's GUI changes depending on several conditions. I implemented this in Qt4 and internally used QStackWidget (basically, it's a series of controls, which only one can be visible each time). I am currently using a TabControl - what are my alternatives in C#? EDIT: I wrote a Qt4 application which was using Q...

In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable?

In a winforms tabcontrol, is there a way to make a certain tab visible but not selectable? I can make it Visible = false, but I would like the tab to show up but simply not be clickable/selectable. ...

Adding a Design time Panel to a TabPage at run time

Hi, I wish to have a Panel with the controls on it at design time but I want to add this panel to a desired tabPage of my TabControl at run time. I wrote something like this, did not work : the panel does not show up in the tab page. please help me. panel2.Parent = tabGuy.TabPages[0]; tabGuy.SuspendLayout(); tabGuy.TabPages[0].Control...

Adding the same Panel to multiple TabPages

In my previous question I could add a design time panel to a tab page at run time and my code looks like this and it works Ok. tabControl1.SuspendLayout(); tabControl1.TabPages[0].Controls.Add(panel1); tabControl1.ResumeLayout(); but now I need to do something like this: tabControl1.SuspendLayout(); ta...

How to exit grid with ctrl-TAB when grid is on a tabpage (onkeydown works when grid not on tabpage)

winforms .net 3.5 Ultrawingrid 9.2 In my subclass of Ultrawingrid.Ultragrid : Protected Overrides Sub OnKeyDown(ByVal e As System.Windows.Forms.KeyEventArgs) If e.KeyCode = Windows.Forms.Keys.Tab andalso e.control = True then SetFocusToNextControl(True) End if Mybase.OnKeyDown(e) End Sub This works fine. But w...

WPF: dynamically adding a windowsformshost control to TabControl

Hi All, I am trying to add a control to a tabcontrol in the code. I have the following: txUserControl htmlControl = new txUserControl(Utils.FileMode.Open, Utils.TxMode.Edit, 0); System.Windows.Forms.Integration.WindowsFormsHost host = new System.Windows.Forms.Integration.WindowsFormsHost(); host.Child = htmlControl; DockPanel panel = n...