我想在從一個用戶控件導航到另一個用戶控件時創建一些動畫。它可以是任何簡單的動畫,如我們在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