Exemplo n.º 1
0
 private bool MainText_TouchEvent(object source, TouchEventArgs e)
 {
     if (!this.isEditMode && e.Touch.GetState(0) == PointStateType.Up)
     {
         item?.ClickedItem();
     }
     return(false);
 }
Exemplo n.º 2
0
        public override bool ProcessTouchUpEvent(RotarySelectorItem item)
        {
            if (!IsProcessing)
            {
                IsProcessing = true;
                if (ani != null)
                {
                    ani.Reset();
                    ani.Clear();
                    ani.Dispose();
                    ani = null;
                }

                ani = new Animation(400);
                ani.DefaultAlphaFunction = GetSineOut33();

                if (SelectedItem == null)
                {
                    ani.AnimateTo(item, "Scale", new Vector3(1.17f, 1.17f, 1.17f));
                    ani.Play();
                    SelectedItem = item;
                    SelectedItem.ClickedItem();
                    ani.Finished += Ani_Finished;
                    return(true);
                }
                else
                {
                    ani.AnimateTo(SelectedItem, "Scale", new Vector3(1.0f, 1.0f, 1.0f));
                    ani.AnimateTo(item, "Scale", new Vector3(1.17f, 1.17f, 1.17f));
                    ani.Play();

                    SelectedItem = item;
                    SelectedItem.ClickedItem();
                    ani.Finished += Ani_Finished;
                    return(true);
                }
            }

            return(false);
        }