using System;
using System.Threading.Tasks;
using LibTVRefCommonPortable.Utils;
+using System.Windows.Input;
namespace TVApps.Controls
{
}
}
+ public ICommand OnChangeFocusChainingCommand { get; set; }
+
/// <summary>
/// A constructor
/// Adds PropertyChanged event handler
AppCount = AppCount + 1;
}
+
+ if (OnChangeFocusChainingCommand != null)
+ {
+ OnChangeFocusChainingCommand.Execute("");
+ }
}
/// <summary>
*/
/// <summary>
- /// A method runs animation when TV Apps is started
- /// </summary>
- private async void PlayShowAnimation()
- {
- await AppList.TranslateTo(0, showTransitionHeight, 0);
-#pragma warning disable CS4014
- AppList.TranslateTo(0, 0, 667);
-#pragma warning restore CS4014
- await PageDimBox.FadeTo(0.0, 667);
- PageDimBox.IsVisible = false;
- await Task.Delay(1);
- AppList.InitializeFocus();
- }
-
- /// <summary>
/// A constructor
/// Adds PropertyChanged event handler and MenuKey event listener
/// </summary>
MessagingCenter.Send<MainPage, string>(this, "ChangeCurrentStatus", AppsStatus.LongPress.ToString());
}
});
+
+ AppList.OnChangeFocusChainingCommand = new Command(() =>
+ {
+ MakeFocusChaining();
+ });
}
protected override async void OnAppearing()
PageDimBox.IsVisible = false;
await Task.Delay(1);
AppList.InitializeFocus();
+ MakeFocusChaining();
+ }
+ private void MakeFocusChaining()
+ {
List<View> upperList = AppList.GetAppsUpperList().ToList();
List<View> lowerList = AppList.GetAppsLowerList().ToList();
break;
}
- SetFocusChainingWithCurrentStatus(status);
+ MakeFocusChaining();
}
/// <summary>