[TPLAPP-4006] Implemented BackKey event handler for the DropDownSort. 63/152763/2
authorSung-jae Park <nicesj@nicesj.com>
Wed, 27 Sep 2017 04:57:53 +0000 (13:57 +0900)
committerSung-jae Park <nicesj@nicesj.com>
Wed, 27 Sep 2017 05:21:15 +0000 (14:21 +0900)
commit6633e99af796188e456aff4995e57afa2a16ac4b
treee7a308f44c1e11a567b1839239a76804b499c881
parentea1232fba852afd3737f96825a7ad2968674bc7a
[TPLAPP-4006] Implemented BackKey event handler for the DropDownSort.

The "exit" popup has not to be displayed if the DropDownSort is expanded.

The BackKey event is handled from the MediaHubMainPage,
and the DropDownSort is implemented in the FooterNormalStatus.

I added a flag named "DisableBackKeyHandler" to the MediaHubMainPage to control the BackKey event handler.
and the "DisableBackKeyHandler" is toggled by the FooterNormalStatus instance.

The FooterNormalStatus instance was able to access the MediaHubMainPage via the AppMainPage object of the App instance,
so I added event handlers such as the collased and the expanded for the DropDownSort instance.

When DropDownSort is expanded, I set true to the "DisableBackKeyHandler" then the BackKey would blocked.

I also added KeyDown event handler in the FooterNormalStatus instance.
In the event handler, if the DropDownSort is expanded, I collased it.

The KeyDown event handler is added and removed from the Expanded and Collapsed event handler of the DropDownSort instance.

Change-Id: I106d53569471a66c6ff867d92c3d012d3b34f80b
Signed-off-by: Sung-jae Park <nicesj@nicesj.com>
TVMediaHub/TVMediaHub.Tizen/ViewModels/MediaHubMainPageViewModel.cs
TVMediaHub/TVMediaHub.Tizen/Views/FooterNormalStatus.xaml.cs
TVMediaHub/TVMediaHub.Tizen/Views/MediaHubMainPage.xaml
TVMediaHub/TVMediaHub.Tizen/Views/MediaHubMainPage.xaml.cs