I would love to use this, but cannot for the life of me figure out how to bind items to it.
I would like to see a simple example, something like
Shell.xaml
<Controls:AnimatedTabControl x:Name="TestTab" SelectedIndex="0" VerticalAlignment="Stretch" cal:RegionManager.RegionName="{x:Static inf:RegionNames.TestRegion}" Grid.Row="1" /> using Microsoft.Practices.Composite.Modularity; using Microsoft.Practices.Composite.Regions; namespace HelloWorldModule { public class HelloWorldModule : IModule { private readonly IRegionManager regionManager; public HelloWorldModule(IRegionManager regionManager) { this.regionManager = regionManager; } public void Initialize()
{
regionManager.RegisterViewWithRegion(
RegionNames.SecondaryRegion, typeof(Views.HelloWorldView));
regionManager.RegisterViewWithRegion(
RegionNames.TestRegion, typeof(Views.TestTab));
}
}
}
<UserControl x:Class="HelloWorldModule.Views.HelloWorldView" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:cal="http://www.codeplex.com/CompositeWPF" > <Grid > <TextBlock Text="Hello" Foreground="Green" ></TextBlock> </Grid> </UserControl>
and finally. to where I am STUCK:
What would be the code for the TestRegion to be able to have multiple tabs that do the animation on change? I cannot seem to figure out how to bind anything to AnimatedTabControl or even a regular tab control...