hi,
i am using Above actipro version and i want to display list of toolwindows in my combobox.
what i am doing is i am just replacing the codeOf File MainWindow.xaml of Programatically creating toolwindow sample code of doking given by your sample project
with following linesas per above code combobox should show list of toolwindows and when selected it should show title of selected toolwindow but it is showing some thing else..
please help me in these topic how can i fix these issue.
i am using Above actipro version and i want to display list of toolwindows in my combobox.
what i am doing is i am just replacing the code
<ListBox x:Name="toolWindowsListBox" Margin="0,3,0,0" Height="150" ItemsSource="{Binding ElementName=dockSite, Path=ToolWindows}" SelectedIndex="1">
<ListBox.ItemTemplate>
<DataTemplate DataType="docking:ToolWindow">
<TextBlock x:Name="title" Text="{Binding Title}" />
<DataTemplate.Triggers>
<DataTrigger Binding="{Binding IsOpen}" Value="True">
<Setter TargetName="title" Property="FontWeight" Value="Bold" />
</DataTrigger>
</DataTemplate.Triggers>
</DataTemplate>
</ListBox.ItemTemplate>
</ListBox>
with following lines
<ComboBox x:Name="toolWindowsListBox" Margin="0,3,0,0" Height="150" ItemsSource="{Binding ElementName=dockSite, Path=ToolWindows}" SelectedIndex="1">
<ComboBox.ItemTemplate>
<DataTemplate DataType="docking:ToolWindow">
<TextBlock x:Name="title" Text="{Binding Title}" />
</DataTemplate>
</ComboBox.ItemTemplate>
</ComboBox>
please help me in these topic how can i fix these issue.