/// </summary>
/// <param name="taggedViews">Returned tagged view list..</param>
/// <param name="view">Root View to get tagged child View.</param>
- /// <param name="isPage">Flag to check current View is page or not</param>
- private void RetrieveTaggedViews(List<View> taggedViews, View view, bool isPage)
+ /// <param name="isRoot">Flag to check current View is page or not</param>
+ private void RetrieveTaggedViews(List<View> taggedViews, View view, bool isRoot)
{
- if (!isPage)
+ if (!isRoot && view.TransitionOptions != null)
{
if (!string.IsNullOrEmpty(view.TransitionOptions?.TransitionTag))
{
taggedViews.Add((view as View));
+ if (view.TransitionOptions.TransitionWithChild)
+ {
+ return;
+ }
}
- if (view.ChildCount == 0)
- {
- return;
- }
-
- if (view.TransitionOptions?.TransitionWithChild ?? false)
- {
- return;
- }
}
+
foreach (View child in view.Children)
{
RetrieveTaggedViews(taggedViews, child, false);
TransitionGroup transitionGroup = new TransitionGroup()
{
- UseGroupTimePeriod = true,
UseGroupAlphaFunction = true,
- StepTransition = true,
- TimePeriod = new TimePeriod(500, 3000),
AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.EaseInOut),
};
SlideTransition slide = new SlideTransition()
{
- TimePeriod = new TimePeriod(1000),
+ TimePeriod = new TimePeriod(400),
AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Default),
Direction = SlideTransitionDirection.Top
};
FadeTransition fade = new FadeTransition()
{
Opacity = 0.3f,
- TimePeriod = new TimePeriod(1000),
+ TimePeriod = new TimePeriod(400),
AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Default)
};
transitionGroup.AddTransition(fade);
ScaleTransition scale = new ScaleTransition()
{
ScaleFactor = new Vector2(0.3f, 0.3f),
- TimePeriod = new TimePeriod(1000),
+ TimePeriod = new TimePeriod(400),
AlphaFunction = new AlphaFunction(AlphaFunction.BuiltinFunctions.Default)
};
transitionGroup.AddTransition(scale);