void DeativateRotaryFocusable(IRotaryFocusable focusable) { if (focusable is IRotaryEventReceiver) { _rotaryReceiver = null; RotaryEventManager.Rotated -= OnRotaryEventChanged; } else if (focusable is IRotaryFocusable) { var consumer = focusable as BindableObject; if (consumer != null) { var renderer = Xamarin.Forms.Platform.Tizen.Platform.GetRenderer(consumer); (renderer?.NativeView as IRotaryActionWidget)?.Deactivate(); } } }
void DeativateRotaryFocusable(IRotaryFocusable focusable) { var consumer = focusable as BindableObject; if (consumer != null) { var nview = Platform.GetRenderer(consumer)?.NativeView; if (nview == null) { return; } if (nview is IRotaryEventReceiver) { _rotaryReceiver = null; RotaryEventManager.Rotated -= OnRotaryEventChanged; } else { (nview as IRotaryActionWidget).Deactivate(); } } }