Skip to content

Commit

Permalink
[WApps] Add ItemOpacity property
Browse files Browse the repository at this point in the history
Signed-off-by: huiyu.eun <[email protected]>
  • Loading branch information
huiyueun committed Jul 10, 2020
1 parent 1b1f3ce commit c392622
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -152,12 +152,12 @@ internal void AnimateShowPage(RotaryItemWrapper wrapper, bool isReverse = true,
rotaryItem.Position = new Position(pos.X + (isReverse ? 70 : -70), pos.Y); ;

animationCore.AnimateTo(rotaryItem, "Position", pos, 167 + sTime, 84 + sTime + 334, alphaSineOut33);
animationCore.AnimateTo(rotaryItem, "Opacity", 1.0f, 167 + sTime, 84 + sTime + 334, alphaSineOut33);
animationCore.AnimateTo(rotaryItem, "Opacity", rotaryItem.ItemOpacity, 167 + sTime, 84 + sTime + 334, alphaSineOut33);
}
else
{
animationCore.AnimatePath(rotaryItem, mAniUtil.GetItemRotaryPath(wrapper, isReverse), Vector3.Zero, 200, 699, alphaGlideOut);
animationCore.AnimateTo(rotaryItem, "Opacity", 1.0f, 200, 300, alphaGlideOut);
animationCore.AnimateTo(rotaryItem, "Opacity", rotaryItem.ItemOpacity, 200, 300, alphaGlideOut);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,20 @@ public class RotarySelectorItem : ImageView
private RotaryBadege deleteBadge;
public bool IsDeleteAble { get; set; }

private float itemOpacity = 1.0f;
public float ItemOpacity
{
get
{
return itemOpacity;
}
set
{
itemOpacity = value;
Opacity = itemOpacity;
}
}

/// <summary>
/// Creates a new instance of a RotarySelectorItem.
/// </summary>
Expand Down

0 comments on commit c392622

Please sign in to comment.