problem about tabitem-Collection of common programming errors


  • Andre Gross
    c# wpf contextmenu tabitem
    I wanted to add a contextmenu to a tabitem. But it should only be opened by clicking on the header of the tab. I added the Contextmenu like this:ContextMenu _contextMenu; TabItem _tabItem; //Initialize the components _tabItem.ContextMenu = _contextMenu;Only if you klick on the header of the TabItem, the ContextMenu should be opened. But if you klick at another position of the tabItem, it shouldn´t be displayed.I need to do that programmatically during the runtime. A solution in xaml is ok, t

  • Killercam
    c# wpf mvvm tabitem
    All, I have the following XAML in my main window <TabControl ItemsSource=”{Binding Path=Workspaces}” Grid.Column=”1″ Grid.ColumnSpan=”3″ HorizontalAlignment=”Stretch” VerticalAlignment=”Stretch” TabStripPlacement=”Top”><TabControl.ItemContainerStyle><Style TargetType=”TabItem”><Setter Property=”Header” Value=”{Binding Path=DisplayName}”/><Setter Property=”HorizontalContentAlignment” Value=”Stretch”/><Setter Property=”VerticalContentAlignment” Value=”Stretch”/>

  • Henriksjodahl
    wpf binding tabitem
    I have a TabControl where every item contains a User Control called Timeline. This “Timeline” has a property called “Number” which changes during runtime.I want to make the property “Number” to be displayed in the TabItem header. And i have really no idea how to do that to be honest.My first thought is that i have to create a Custom Control that derives from the original TabItem Control and create a DependencyProperty or something with a custom ControlTemplate.I feel that i’m pretty bad on expla

  • ghiboz
    wpf styles wpf-controls tabitem
    I need to use, with a stile of mahapps.metro, the tabitem with a text and an image.. this is my code:<TabItem Style=”{StaticResource gMetroTabItem}”><TabItem.Header><StackPanel Orientation=”Horizontal”><Image Name=”img” Height=”auto” Width=”auto” Source=”/myProject;component/Resources/Black_Tools.png” /><TextBlock Text=”tabItem2″ Margin=”2,0,0,0″ VerticalAlignment=”Center” /></StackPanel></TabItem.Header> </TabItem>and this is the code of the style

  • Alex Marshall
    wpf tabcontrol controltemplate tabitem
    I’m writing an application with WPF and part of it involves managing for the user various files which are used configure custom, in-house devices. I need to be able to manipulate different types of configurations in tabs in the same TabControl, meaning that the content of the TabItems must be dynamically generated. I’d like to do this with ControlTemplates, but I haven’t been successful in getting a working template yet. I have a ControlTemplate called “pendantConfigurationTabItemTemplate” def

  • H.B.
    wpf tabcontrol tabitem
    I have five TabItem’s in my TabControl and I need to move the position of each tab continuously at runtime. Can anyone tell me how can I change tab index from one position to another position at runtime.Thanks, @nagaraju.

  • Community
    cocoa tabitem tabview
    I am creating a tab view app in cocoa like a web browser app:I am loading my first tab with subview web View Controller ( having a webview and a text field) in the awakefromnib method. There is another tab item with “+” label. When I click on it the didTabSelected delegate method is called. In it I creating a new tab item and adding the subview of webViewController class ( having a webview and a text field). In the textfield of webViewController.xib i am setting its action to a IBAction which i

  • paqogomez
    c# wpf mvvm grid tabitem
    In my program I have tabItems that have their commands bound to a View Model. I am in the process of implementing a function that will copy the design structure of a “master” tabItem, along with it’s command functionality in order to create a new tabItem. I need to do this because the user of this program will be allowed to add new tabItems. Currently I am using the question Copying a TabItem with an MVVM structure, but I seem to be having trouble when the function tries to copy the Grid object

Web site is in building