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(); } } } }
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}"); } }
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); } } }
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); } } } }
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(); } } } }
private void OnStageWheel(object sender, Window.WheelEventArgs e) { }
public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e) { ////NUILog.Debug("OnWindowWheelEventOccured()!"); ////NUILog.Debug("direction=" + e.Wheel.Direction); ////NUILog.Debug("type=" + e.Wheel.Type); }
private void OnChildViewWindowWheelEvent(object sender, Window.WheelEventArgs e) { log.Fatal(tag, $"OnChildViewWindowWheelEvent() called!"); }
public void OnWindowWheelMoved(object sender, Window.WheelEventArgs e) { Tizen.Log.Error("NUI", $"OnWindowWheelMoved()! direction={e.Wheel.Direction} type={e.Wheel.Type}"); }
public void OnWindowWheelEvent(object source, Window.WheelEventArgs e) { Log("OnWindowWheelEvent() is called!"); //Log("OnWindowWheelEvent() is called!direction="+ e.WheelEvent.direction + " timeStamp=" + e.WheelEvent.timeStamp ); }