I’m trying to use a IRotaryFocusable
object along a ToolbarItems
, But I’m having a hard time understanding the RotaryfocusObject. In the gif below, I show this situation where the BezelInteractionPage loses focus after opening a tool bar.
gif: https://imgur.com/a/mENIIcA
Here is the xaml of the main page, nothing has been changed in the code behind:
<?xml version="1.0" encoding="utf-8" ?>
<c:BezelInteractionPage
x:Class="RotaryFocusProblem.Views.MainPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:c="clr-namespace:Tizen.Wearable.CircularUI.Forms;assembly=Tizen.Wearable.CircularUI.Forms"
xmlns:res="clr-namespace:RotaryFocusProblem.Resources"
RotaryFocusObject="{Reference slider}">
<c:BezelInteractionPage.Content>
<Grid>
<Label
Text="{x:Static res:AppResources.MainPageTitle}"
VerticalOptions="CenterAndExpand"
HorizontalOptions="CenterAndExpand" />
</Grid>
</c:BezelInteractionPage.Content>
<c:CircleSurfaceView>
<c:CircleSurfaceView.CircleSurfaceItems>
<c:CircleSliderSurfaceItem
x:Name="slider" />
</c:CircleSurfaceView.CircleSurfaceItems>
</c:CircleSurfaceView>
<c:BezelInteractionPage.ToolbarItems>
<c:CircleToolbarItem
Text="Test" />
</c:BezelInteractionPage.ToolbarItems>
</c:BezelInteractionPage>
Little problems like these tend to make me lose focus too!
How could I get the focus back on this slider?
Thank you