Ejemplo n.º 1
0
 /// <summary>
 /// 点击本地视频
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void LocalVideoTapped(object sender, TappedRoutedEventArgs e)
 {
     if (Rua.CurrentSourcePageType != typeof(LocalVideo))
     {
         Rua.Navigate(typeof(LocalVideo), null, new DrillInNavigationTransitionInfo());
     }
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 点击下载队列
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void DownloadListTapped(object sender, TappedRoutedEventArgs e)
 {
     if (Rua.CurrentSourcePageType != typeof(DownloadList))
     {
         Rua.Navigate(typeof(DownloadList), null, new DrillInNavigationTransitionInfo());
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// 点击设置
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Setting_Tapped(object sender, TappedRoutedEventArgs e)
 {
     HamburgerMenu.IsPaneOpen = false;
     if (Rua.CurrentSourcePageType != typeof(Setting))
     {
         Rua.Navigate(typeof(Setting), null, new DrillInNavigationTransitionInfo());
     }
 }
Ejemplo n.º 4
0
 private void Index_Tapped(object sender, TappedRoutedEventArgs e)
 {
     if (Rua.CurrentSourcePageType != typeof(Index))
     {
         App.Link.BackStack.Clear();
         Rua.Navigate(typeof(Index), null, new DrillInNavigationTransitionInfo());
     }
 }
Ejemplo n.º 5
0
 /// <summary>
 /// 点击搜索
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void Search_Tapped(object sender, TappedRoutedEventArgs e)
 {
     //打开搜索页面
     if (Rua.CurrentSourcePageType != typeof(Search))
     {
         Rua.Navigate(typeof(Search), null, new DrillInNavigationTransitionInfo());
     }
 }
Ejemplo n.º 6
0
        public Link()
        {
            currentObject = this;
            this.InitializeComponent();
            //设置标题栏
            var coreTitleBar = CoreApplication.GetCurrentView().TitleBar;

            if (!coreTitleBar.IsVisible)
            {
                AppTitleBar.Visibility = Visibility.Collapsed;
            }
            Thickness thickness = new Thickness()
            {
                Top = coreTitleBar.IsVisible ? 32 : 0
            };

            PaneGrid.Padding = thickness;
            TopBar.Padding   = thickness;
            coreTitleBar.IsVisibleChanged += CoreTitleBar_IsVisibleChanged;
            Window.Current.SetTitleBar(DraggableArea);
            //设置导航
            SystemNavigationManager.GetForCurrentView().BackRequested += OnBackrequested;
            Rua.Navigated        += Content_Navigated;
            Rua.NavigationFailed += App.OnNavigationFailed;
            Rua.Navigate(typeof(Index), null, new DrillInNavigationTransitionInfo());
            App.Link   = Rua;
            frameTitle = PageName;
            toastArea  = ToastArea;
            //如果第一次打开这个版本则弹出提示
            string appVersion = Methods.GetAppVersion();

            if (SettingHelper.Values.Version != appVersion)
            {
                var dialog = new UpdateLog();
                var task   = dialog.ShowAsync();
                SettingHelper.Values.Version = appVersion;
            }
        }