{
protected EventHandler OnBackButtonPressedHandler { set; get; }
+ protected ContentPageEx()
+ : base()
+ {
+ NavigationPage.SetHasBackButton(this, false);
+ NavigationPage.SetHasNavigationBar(this, false);
+ }
+
protected override void OnAppearing()
{
base.OnAppearing();
{
class Program : global::Xamarin.Forms.Platform.Tizen.FormsApplication
{
- public static Program Instance;
- public static string ResourceDirectoryPath;
+ public static Program Instance
+ {
+ get;
+ private set;
+ }
+
+ public static string ResourceDirectoryPath
+ {
+ get;
+ private set;
+ }
+
private static App app;
protected override void OnCreate()
public void TransitionTo(ContentPage page)
{
- MainPage = page;
+ //MainPage = page;
+ AppMainPage.PushAsync(page);
}
public void TransitionToMain(int tabIndex = 0)
{
+ /*
MainPage = new NavigationPage(new MediaHubMainPage(tabIndex));
MainPage.Opacity = 0;
AppMainPage = MainPage as NavigationPage;
+ */
+ if (AppMainPage == null)
+ {
+ MainPage = new NavigationPage(new MediaHubMainPage(tabIndex));
+ MainPage.Opacity = 0;
+ AppMainPage = MainPage as NavigationPage;
+ }
+ else
+ {
+ AppMainPage.PopToRootAsync();
+ }
}
public void RunHideAnimation()
}
displayingImageIndex = value;
- //OnPropertyChanged("CurrentImage");
+ OnPropertyChanged("CurrentImage");
}
}
public ImageViewerInfomation CurrentImage
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
+using System.Threading;
using System.Windows.Input;
using TVMediaHub.Tizen.Controls;
using TVMediaHub.Tizen.DataModels;
InitializeSize();
InitializeFooter();
ItemsSource.CollectionChanged += ItemsSourceCollectionChanged;
+
+
+ SynchronizationContext.Current.Post((o) =>
+ {
+ InitializePage();
+ }, "");
}
protected override void FinalizePage()
{
+ /*
ItemsSource.Clear();
GalleryContentView.Children.Clear();
BottomButtonList.Clear();
FooterDelete.IsVisible = false;
}
IsContentReady = false;
+ */
}
private void ItemsSourceCollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)
[XamlCompilation(XamlCompilationOptions.Compile)]
public partial class MediaHubMainPage : TabbedPage
{
- //private int StartTabIndex;
-
public MediaHubMainPage(int tabIndex)
{
InitializeComponent();
- // TODO : revert this, temporarily commented this out for reducing a delay when this page is showing up.
- //StartTabIndex = tabIndex;
- //CurrentPage = Children[StartTabIndex];
NavigationPage.SetHasBackButton(this, false);
NavigationPage.SetHasNavigationBar(this, true);
}
setControlAreaState(ControlAreaState.AUTO);
NavigationCommand?.Execute("Left");
- Program.TransitionTo(new SimpleImageViewer());
}
private void RightBtnClicked(object sender, EventArgs e)
setControlAreaState(ControlAreaState.AUTO);
NavigationCommand?.Execute("Right");
- Program.TransitionTo(new SimpleImageViewer());
}
private void SlideShowBtnClicked(object sender, EventArgs e)
protected override void FinalizePage()
{
+ /*
ItemsSource.Clear();
VideoTabList.Children.Clear();
BottomButtonList.Clear();
FooterDelete.IsVisible = false;
}
IsContentReady = false;
+ */
}
private void ItemsSource_CollectionChanged(object sender, System.Collections.Specialized.NotifyCollectionChangedEventArgs e)