I have a small application for editing elements on a Canvas placed inside a ListBox as the ItemsPanel. As the CurrentSlide via timer or pager buttons I would like the Transitions to be displayed against the entire canvas.
What would be the best way to place the Canvas into a TransitionControl and notify it that the outer CurrentSlide has changed. I would prefer not placing the entire ListBox within a DataTemplate which is the only available option I can see off hand. Any help would be appreciated.
What would be the best way to place the Canvas into a TransitionControl and notify it that the outer CurrentSlide has changed. I would prefer not placing the entire ListBox within a DataTemplate which is the only available option I can see off hand. Any help would be appreciated.
<TextBlock Text="{Binding CurrentSlide.Name}" /><TextBlock Text="{Binding CurrentSlide.Description}" /> // Would like to overlay Transitions onto the Listbox below when the CurrentSlide changes. Listbox uses a canvas to position and render elements.<ListBox x:Name="SlideList" BorderBrush="Transparent" BorderThickness="0" ItemsSource="{Binding CurrentSlide.Elements}" SelectionChanged="SlideList_SelectionChanged" > <ListBox.ItemsPanel> <ItemsPanelTemplate> <Canvas x:Name="editCanvas" Background="{Binding CurrentSlide.Background, Converter={StaticResource BackgroundConverter}}" /> </ItemsPanelTemplate> </ListBox.ItemsPanel></ListBox>