BackstageTabControl with ItemsSource

Nov 23, 2010 at 12:26 AM
Edited Nov 23, 2010 at 12:28 AM

 

There seems to be a few problems with the BackstageTabControl when using ItemsSource

1) When you select one of the items from the tabControl it seems to show the other item (only tried with two items)
For example here when you click on the "Summary - Red" tab item it will show the blue textbox.
2) When you select an item, then try to select another item, both buttons become hightlighted and the content doesn't change.

Backstage still seems to be quite buggy. Shame. Other than that the new Fluent stuff is looking great guys. Will move onto 2.XX at a later date when it is cleaner.

Thanks

<Fluent:Ribbon.Menu>
	<Fluent:Backstage IsOpen="{Binding SummaryShown, Mode=TwoWay}">
		<Fluent:BackstageTabControl
			ItemContainerStyleSelector="{StaticResource bookingsBackstageItemStyleSelector}"
			ItemsSource="{Binding SummaryItems, IsAsync=True}" />
	</Fluent:Backstage>
</Fluent:Ribbon.Menu>

<Style 
	TargetType="{x:Type fluent:BackstageTabItem}" 
	x:Key="RedItem"
	BasedOn="{StaticResource {x:Type fluent:BackstageTabItem}}">
	<Setter Property="Header" Value="Summary - Red" />
	<Setter Property="ContentTemplate">
		<Setter.Value>
			<DataTemplate>
				<DockPanel Margin="0">
					<TextBox
						Background="Red"
						Text="{Binding Mode=OneWay}" />
				</DockPanel>
			</DataTemplate>
		</Setter.Value>
	</Setter>
</Style>
<Style 
	TargetType="{x:Type fluent:BackstageTabItem}" 
	x:Key="BlueItem"
	BasedOn="{StaticResource {x:Type fluent:BackstageTabItem}}">
	<Setter Property="Header" Value="ServiceGroupStyle - Blue" />
	<Setter Property="ContentTemplate">
		<Setter.Value>
			<DataTemplate>
				<DockPanel Margin="0">
					<TextBox
						Background="Blue"
						Text="{Binding Mode=OneWay}" />
				</DockPanel>
			</DataTemplate>
		</Setter.Value>
	</Setter>
</Style>


<local:BookingsBackstageItemStyleSelector 
	x:Key="bookingsBackstageItemStyleSelector"
	SummaryStyle="{StaticResource RedItem}"
	ServiceGroupStyle="{StaticResource BlueItem}" />

 

Coordinator
Nov 23, 2010 at 7:02 AM
This discussion has been copied to a work item. Click here to go to the work item and continue the discussion.