This project is read-only.

Selected Index of Dockable Pane Not Working

Feb 18, 2010 at 4:41 PM

No matter what I seem to do I can't seem to have the first Dockable content be the one that is selected by default.



<ad:DockablePane Name="paneSetup" ad:ResizingPanel.ResizeWidth="325" SelectedIndex="0" Loaded="paneSetup_Loaded" SelectionChanged="paneSetup_SelectionChanged">
	<ad:DockableContent Name ="contentSetup" Title="Setup" IsCloseable="False" DockableStyle="Dockable">
		<ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto" Margin="0,0,0,0">
			<A lot of Stuff>
	<ad:DockableContent Title="Vehicle Selection"  DockableStyle="Dockable" IsCloseable="False">
		<ListBox Name="lbSelectedVehicles" Margin ="0,0,0,0" Width="200" VerticalAlignment="Stretch" HorizontalAlignment="Left" SelectionMode="Multiple" SelectionChanged="lbSelectedVehicles_SelectionChanged"/>

I have even tried doing the following c# code on the pane load to no avail


private void paneSetup_Loaded(object sender, RoutedEventArgs e)
            paneSetup.SelectedIndex = 0;