Can I get TabIndex to control the order of the entries?

Nov 26, 2008 at 10:26 PM

I am using the outlook bar control and at times am adding and removing views to and from the region at run time.. I would like them to stay in a specific order, but they seem to always go in the order of addition.. I altered the style to have a setter for TabIndex bound to the data context:

<Style TargetType="{x:Type TabItem}">
                            <Setter Property="Header" Value="{Binding Path=Content.(WPFContribControls:OutlookBarControl.OutlookBarMetadata).Title, RelativeSource={RelativeSource Self}}" />
                            <Setter Property="TabIndex" Value="{Binding Content.DataContext.TabIndex, RelativeSource={RelativeSource Self}}" />
                            <Setter Property="Template">

I believe the binding is working as my properties are being accessed, but it seems to have no effect on the order of the items in the outlook bar.. is there something else I need to do or is what I am doing not possible?