Closed guangoon closed 4 years ago
You set RotaryFocusObject="{x:Reference VolumeProgress}
. this mean display volumeProgress slider. If you want to hide volumeProgress slider. you don't set RotaryFocusObject when enter page.
you should set RotaryFocusObject when user press volume button.
following code is example, OnClick
is click event of volume button
void OnClick(object sender, EventArgs args)
{
RotaryFocusObject = VolumeProgress;
}
Or, you can binding RotaryFocus object (e.g RotaryFocusTarget, you set this value in code )
<views:CirclePageEx
x:Name="PlaybackPage"
x:Class="VoiceMemo.Views.PlayBackPage"
xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:converters="clr-namespace:VoiceMemo.Converters;"
xmlns:views="clr-namespace:VoiceMemo.Views;"
xmlns:vm="clr-namespace:VoiceMemo.ViewModels;"
xmlns:w="clr- namespace:Tizen.Wearable.CircularUI.Forms;assembly=Tizen.Wearable.CircularUI.Forms"
RotaryFocusObject="{Binding RotaryFocusTarget}">
void OnClick(object sender, EventArgs args)
{
RotaryFocusTarget = VolumeProgress;
}
Describe the bug when Enter a page, we need slider is invisible, and press volume button, the slider is visible. but slider always visible. <views:CirclePageEx x:Name="PlaybackPage" x:Class="VoiceMemo.Views.PlayBackPage" xmlns="http://xamarin.com/schemas/2014/forms" xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:converters="clr-namespace:VoiceMemo.Converters;" xmlns:views="clr-namespace:VoiceMemo.Views;" xmlns:vm="clr-namespace:VoiceMemo.ViewModels;" xmlns:w="clr-namespace:Tizen.Wearable.CircularUI.Forms;assembly=Tizen.Wearable.CircularUI.Forms" RotaryFocusObject="{x:Reference VolumeProgress}">