I have a TabControl where each tab contains a DataGrid. When the user switches between tabs it seems that the DataGrid is created from scratch. I say this becuase of three things that I've noticed: the columns are automatticaly recreated, the current sorted column is lost, and selection is lost.
I would love to be able to retain the cur...
In silverlight app I create tab items dynamically in code (MainView's code-behind):
TabItem tab = new TabItem();
CustomerView view = new CustomerView();
view.DataContext = customerViewModel; //or tab.DataContext = customerViewModel;??
tab.Content = view;
DataTemplate template = this.Resources["CustomTabItemHeader"] as DataTemplate;
tab....
I have close button in the header of each tab of TabControl. Tabs are created dynamically in code and a datatemplate (in which the close button was defined) is applied. Now I want close-buttons to be visible only when tab is active. Is it possible to bind button's visibility property to tabitem's activeness (probably IsSelected property)...
Hi,
I'm making a context menu strip appear during the right clicking of either a selected or unselected tab in the tab strip of a winforms tabcontrol. It's going to have close, and close all but this for now. Anyway, I need to be able to capture which tab the mouse is over when the right click is pressed. Anyone know how?
Another solut...
I've been trying to create a custom skin/template for a TabControl in WPF.
I want the tabs to be displayed in a ComboBox. When you select the item from the ComboBox, I want the content area of the tab control to display the TabItem contents.
Here's an image showing what I'm looking for:
I could do this using some sort of master-deta...
Code i have used.
For j = 0 To dataset4Category(i).Tables.Count - 1
Dim Finder As Integer = Decimal.Floor(((dataset4Category(i).Tables(0).Rows.Count) / 30))
key = dataset4Category(i).DataSetName
name = Space(1) & StrConv(dataset4Category(i).Tables(0).TableName, VbStrConv.Proper...
Just being new to WPF I"m not sure what control or approach would be best for this requirement, for a WPF application.
I want to present a summary table of information, but the user should be able to decide to view the information based on either: "All Time", Month, Week or Day.
I'd like to visually have the selection of the option a...
I have a TabControl binding to some items. Underneath it is a Button where I can add items dynamically. On adding an item, the new item should become the active Tab (works fine with TabControl.SelectedItem):
<Window x:Class="WpfApplication1.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xml...
Hi,
I am following wpf/mvvm method. I need to have a tab control...with multiple rows..i mean parent/child rows. When user click on a tab, all child tabs under that should be displayed...but only the page under one child tab should be loaded.
Can anyone help me regarding this please?
...
I want to get the header of a selected tab-item of a tab-control and activate another tab-item of another tab-control appropriately, eg. select tab "A"/"B" of tab-control TC1 will activate tab "A"/"B" on tab-control TC2.
I want "A", "B", ... to be a enum value so that no string comparation is used. So, how can I use an enum value to se...
Hi,
Im trying to change the default highlight colour of a tab item in a tab control in WPF.
In the image the highlight colour is orange, I just want to know if there is away to change it to another solid colour?
Here is my XAML which declares the TabControl and 2 TabItems
<TabControl>
<TabControl.Background>
...
Hai all,
I am using TabControl in c#.NET application.By default first tab page of TabControl is showing in form loading .I want to activate/show other tab pages in form loading. programmatically how can i show other tab page .
Please help.
...
From what I read on MSDN, TabControl is seemingly the wrapped version of property sheets. (About Property Sheets on MSDN).
Now sending messages to the property sheets, one can apparently turn them into an automatically created wizard: (Creating Wizards on MSDN).
My question is: Is there a way to send those p/invoke messages to our TabC...
I have a WPF application using a TabControl bound to a collection of the MyTab class. Each TabItem has a ListView bound to the Items property of the MyTab class.
My problem is that scrolling up or down in any ListView is affecting the position of all the others.
XAML:
<Window>
<Window.Resources>
<DataTemplate x:Key="TabHeaderTem...
I am using Visual Studio 2005, C++, and I have a tabcontrol with a couple tabs. I have changed the color of each tab to have a back color of Transparent, to match the color of the rest of the program (Control grey), however the color behind the text for the title of the tab is white. Is there any way to change this?
...
How to build vertical tab sets in WPF? The tabs will stack up in top-to-bottom just like the "Properties" of a project shown in visual studio.
...
Hello,
I would like to enable tabbing for my application. And so far it seems I could use a tab control. The problem with it is, though, that it creates a border around the client area. What I want, is more like a FireFox tab control, that only takes up a row in the application and doesn't create any frames around client area.
Does any...
I have an ObservableCollection<Item> and I want to set it as the ItemsSource property of a TabControl. The Item class contains a Property TabItem that returns a System.Windows.Controls.TabItem. I want the TabControl to display the TabItems from the collection.
(In reality, there are lots of properties on the "Item" class.)
Code:
Ite...
Hi,
I have a wpf application which uses mvvm pattern.
I need to have a collection in my view-model...which i can bind to multi level tab control.
What type of collection I can use in this case ???
Is there any hierarchical collection in C# 3.5 ???
...
In C# using VS2005 I have a Winforms TabControl with 7 tabs, but I want the last tab to be only visible if a certain configuration option is set.
How to make the TabControl only show the first six tabs? In other words, how do I make the seventh tab not visible?
...