/// <summary>
        /// ページの遷移イベント
        /// </summary>
        /// <param name="e">ナビゲーションのイベント</param>
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
            ComHistgramData param = (ComHistgramData)e.Parameter;

            m_softwareBitmapOriginal = param.SoftwareBitmapOriginal;
            m_softwareBitmapAfter    = param.SoftwareBitmapAfter;
            SystemNavigationManager.GetForCurrentView().AppViewBackButtonVisibility = Frame.CanGoBack ? AppViewBackButtonVisibility.Visible : AppViewBackButtonVisibility.Collapsed;
            SystemNavigationManager.GetForCurrentView().BackRequested += GoBack;
            base.OnNavigatedTo(e);

            DrawHistgram();
        }
Esempio n. 2
0
        public async void OnClickBtnShowHistgram(object sender, RoutedEventArgs e)
        {
            if (m_bitmap == null)
            {
                return;
            }

            var histgramData = new ComHistgramData();

            if (m_bitmap != null)
            {
                histgramData.SoftwareBitmapOriginal = await ComFunc.CreateSoftwareBitmap(m_storageFile, m_bitmap);
            }
            string strCurImgName = ComFunc.GetStringApplicationDataContainer(ComInfo.IMG_TYPE_SELECT_NAME);

            if (SelectGetStatus(strCurImgName) == (int)ComInfo.ImageProcStatus.Implemented)
            {
                histgramData.SoftwareBitmapAfter = SelectGetBitmap(strCurImgName);
            }
            if (m_bitmap != null)
            {
                Frame.Navigate(typeof(HistgramLiveChartsPage), histgramData);
            }
        }