私はこれを使いたいですが、私の人生のためにアイテムをバインドする方法を理解できません。Prism and AnimatedTabControl
私は簡単な例を見てみたい、
のようなもの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));
}
}
}
変更時にアニメーションがTestRegion
にあります。 AnimatedTabControlまたは通常のタブコントロールに何かをバインドする方法を理解できないようです...