Hi
I am using the EntranceThemeTransition on a panel I have entering on the right similar to the setting pane however after the first time the theme animation don't seem to work anymore?? I have also tried the ContentThemeTransition still the same issue.. can
someone tell me why this is?
double ContentAnimationOffset = 100;
//open panel
private void bnFlyout_Click(object sender, RoutedEventArgs e)
{
gdFlyout.Visibility = Windows.UI.Xaml.Visibility.Visible;
FlyoutContent.Visibility = Windows.UI.Xaml.Visibility.Visible;
FlyoutContent1.Visibility = Windows.UI.Xaml.Visibility.Visible;
FlyoutContent.Transitions.Clear();
FlyoutContent.Transitions.Add(new ContentThemeTransition()
{
// IsStaggeringEnabled = true,
HorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? ContentAnimationOffset : (ContentAnimationOffset * -1)
});
FlyoutContent1.Transitions.Add(new EntranceThemeTransition()
{
IsStaggeringEnabled = true,
FromHorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Right) ? ContentAnimationOffset : (ContentAnimationOffset * -1)
});
}
//close panel
private void bnFlyoutBack_Click(object sender, RoutedEventArgs e)
{
FlyoutContent.Transitions.Add(new ContentThemeTransition()
{
// IsStaggeringEnabled = true,
HorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Left) ? ContentAnimationOffset : (ContentAnimationOffset * -1)
});
FlyoutContent1.Transitions.Add(new EntranceThemeTransition()
{
IsStaggeringEnabled = true,
FromHorizontalOffset = (SettingsPane.Edge == SettingsEdgeLocation.Left) ? ContentAnimationOffset : (ContentAnimationOffset * -1)
});
FlyoutContent.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
FlyoutContent1.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
gdFlyout.Visibility = Windows.UI.Xaml.Visibility.Collapsed;
}
Juan Rodriguez Celltrac Software