protected virtual void UpdateRotaryInteraction(bool enable) { if (NativeView is IRotaryInteraction ri) { if (Specific.GetUseBezelInteraction(Application.Current)) { if (enable) { ri.RotaryWidget?.Activate(); Forms.RotaryFocusObject = Element; Specific.SetActiveBezelInteractionElement(Application.Current, Element); } else { ri.RotaryWidget?.Deactivate(); if (Forms.RotaryFocusObject == Element) { Forms.RotaryFocusObject = null; } if (Specific.GetActiveBezelInteractionElement(Application.Current) == Element) { Specific.SetActiveBezelInteractionElement(Application.Current, null); } } } } }
protected virtual void OnPickerClosed(object sender, EventArgs args) { if (Specific.GetUseBezelInteraction(Application.Current)) { if (Forms.RotaryFocusObject == Element) { Forms.RotaryFocusObject = null; } if (Specific.GetActiveBezelInteractionElement(Application.Current) == Element) { Specific.SetActiveBezelInteractionElement(Application.Current, null); } } }