WPF Show Open TabItem Names in a List View

Posted by mr justinator on Stack Overflow See other posts from Stack Overflow or by mr justinator
Published on 2011-01-08T03:21:17Z Indexed on 2011/01/08 3:53 UTC
Read the original article Hit count: 431

Filed under:
|
|
|
|

I'm trying to display a list of open tab names in a listview or listbox (recommendations?).

Been going through the different type of binding options and I'm able to bind to a single tab name but it displays vertical instead of horizontal. Here is my XAML:

<ListView DockPanel.Dock="Left"
          Height="352"
          Name="listView1"
          Width="132"
          ItemsSource="{Binding ElementName=RulesTab, Path=Name}"
          IsSynchronizedWithCurrentItem="True"
          FlowDirection="LeftToRight"
          HorizontalAlignment="Left"
          HorizontalContentAlignment="Left"
          DataContext="{Binding}">

Any pointers would be greatly appreciated as I'd like to be able to see a list of all the tabs open and then double click on one to bring the tab into focus. Many thanks!

© Stack Overflow or respective owner

Related posts about c#

Related posts about wpf