public static FileManagerPhotoPage CreateInstance() { if (m_instance == null) { m_instance = new FileManagerPhotoPage(); } return m_instance; }
private void NaviToPhotoView(object sender, EventArgs e) { // 更改top图标与相关内容 BitmapImage image = new BitmapImage(new Uri("../Image/icon_iOS_Ads_Remover.png", UriKind.Relative)); m_iconImg.Source = image; m_tbFileName.Text = "Photo"; if (m_filesManagerPhotoPage == null) { m_filesManagerPhotoPage = FileManagerPhotoPage.CreateInstance(); } m_mainWidget.Navigate(m_filesManagerPhotoPage); m_naviWidget = NaviWidget.FileManagerPhotoPage; BackBtn.Visibility = System.Windows.Visibility.Visible; }