public static FileManagerMusicPage CreateInstance() { if (m_instance == null) { m_instance = new FileManagerMusicPage(); } return m_instance; }
private void NaviToMusicView(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 = "Music"; if (m_filesManagerMusicPage == null) { m_filesManagerMusicPage = FileManagerMusicPage.CreateInstance(); } m_mainWidget.Navigate(m_filesManagerMusicPage); m_naviWidget = NaviWidget.FileManagerContactPage; BackBtn.Visibility = System.Windows.Visibility.Visible; }