Exemplo n.º 1
0
 private void DefaultWindow_WheelEvent(object sender, Window.WheelEventArgs e)
 {
     if (e.Wheel.Type == Wheel.WheelType.CustomWheel)
     {
         Tizen.Log.Error("MYLOG", "wheel: " + e.Wheel.Direction);
         Tizen.Log.Error("MYLOG", "galleryType: " + galleryType);
         if (e.Wheel.Direction == 1)
         {
             if (galleryType + 1 <= 3)
             {
                 galleryType++;
                 gallery.SetLayoutManager(lm[galleryType]);
             }
             else
             {
                 gallery.Next();
             }
         }
         else if (e.Wheel.Direction == -1)
         {
             if (galleryType + 1 <= 3)
             {
                 //galleryType++;
                 //gallery.SetLayoutManager(lm[galleryType]);
             }
             else
             {
                 gallery.Prev();
             }
         }
     }
 }
Exemplo n.º 2
0
        private void Win_WheelEvent(object sender, Window.WheelEventArgs e)
        {
            tlog.Fatal(tag, $"Win_WheelEvent()");

            if (e.Wheel.Type == Wheel.WheelType.CustomWheel)
            {
                tlog.Fatal(tag, $"z: {e.Wheel.Z}");
            }
        }
Exemplo n.º 3
0
 private void OnWindowWheelEvent(object sender, Window.WheelEventArgs e)
 {
     if (e != null)
     {
         if (e.Wheel.Type == Wheel.WheelType.CustomWheel)
         {
             var arg = new WheelEventArgs()
             {
                 Wheel = e.Wheel,
             };
             WindowWheelEventHandler?.Invoke(this, arg);
         }
     }
 }
Exemplo n.º 4
0
 private void Pagination_WheelEvent(object source, Window.WheelEventArgs e)
 {
     // CustomWheel means Bezel in wearable device.
     if (e.Wheel.Type == Wheel.WheelType.CustomWheel)
     {
         // Direction 1 is CW and 2 is CCW
         if (e.Wheel.Direction == 1)
         {
             if (pagination.SelectedIndex < pagination.IndicatorCount - 1)
             {
                 pagination.SelectedIndex = pagination.SelectedIndex + 1;
                 scrollable.ScrollToIndex(pagination.SelectedIndex);
             }
         }
         else
         {
             if (pagination.SelectedIndex > 0)
             {
                 pagination.SelectedIndex = pagination.SelectedIndex - 1;
                 scrollable.ScrollToIndex(pagination.SelectedIndex);
             }
         }
     }
 }
Exemplo n.º 5
0
 private void Slider_WheelEvent(object source, Window.WheelEventArgs e)
 {
     // CustomWheel means Bezel in wearable device.
     if (e.Wheel.Type == Wheel.WheelType.CustomWheel)
     {
         // Direction 1 is CW and 2 is CCW
         if (e.Wheel.Direction == 1)
         {
             if (slider.CurrentValue < slider.MaxValue)
             {
                 slider.CurrentValue++;
                 label.Text = slider.CurrentValue.ToString();
             }
         }
         else
         {
             if (slider.CurrentValue > slider.MinValue)
             {
                 slider.CurrentValue--;
                 label.Text = slider.CurrentValue.ToString();
             }
         }
     }
 }
Exemplo n.º 6
0
 private void OnStageWheel(object sender, Window.WheelEventArgs e)
 {
 }
Exemplo n.º 7
0
 public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e)
 {
     ////NUILog.Debug("OnWindowWheelEventOccured()!");
     ////NUILog.Debug("direction=" + e.Wheel.Direction);
     ////NUILog.Debug("type=" + e.Wheel.Type);
 }
Exemplo n.º 8
0
 private void OnChildViewWindowWheelEvent(object sender, Window.WheelEventArgs e)
 {
     log.Fatal(tag, $"OnChildViewWindowWheelEvent() called!");
 }
Exemplo n.º 9
0
 public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e)
 {
     Tizen.Log.Error("NUI", $"OnWindowWheelMoved()! direction={e.Wheel.Direction} type={e.Wheel.Type}");
 }
Exemplo n.º 10
0
 public void OnWindowWheelEvent(object source, Window.WheelEventArgs e)
 {
     Log("OnWindowWheelEvent() is called!");
     //Log("OnWindowWheelEvent() is called!direction="+ e.WheelEvent.direction + " timeStamp=" + e.WheelEvent.timeStamp );
 }