我想在从一个用户控件导航到另一个用户控件时创建一些动画。它可以是任何简单的动画,如我们在MS PowerPoint中的效果。用户控件间导航时的动画
我该如何开始?
编辑:
让我们下面的XAML
<StackPanel>
<Label>
<Hyperlink Click="ConfigureAccounts_Click">
<TextBlock>Configure Accounts</TextBlock>
</Hyperlink>
</Label>
<Label>
<Hyperlink Click="ConfigurePassangersList_Click">
<TextBlock>Accounts</TextBlock>
</Hyperlink>
</Label>
</StackPanel>
这里的超链接的点击我这样做 -
private void ConfigureAccounts_Click(object sender, RoutedEventArgs e)
{
ContentGrid.Children.Clear();
//Here is the animation
ContentGrid.Children.Add(new ConfigureAccounts());
}
private void ConfigurePassangersList_Click(object sender, RoutedEventArgs e)
{
ContentGrid.Children.Clear();
//Here is the animation
ContentGrid.Children.Add(new ConfigurePassangersList());
}
两个构造函数其中我打电话只是用户控件。
http://whathaveyoutried.com/?请参阅[常见问题]和[提问] – 2013-03-05 10:41:45