コード例 #1
0
        private async void LibraryItemInfo_Loaded(object sender, Windows.UI.Xaml.RoutedEventArgs e)
        {
            StorageFile file = await _viewModel.GetStorageFile(_item);

            _existsOnDisk = file is null ? "No" : "Yes";
            OnPropertyChanged(nameof(_existsOnDisk));

            if (file != null)
            {
                _musicProps = await file.Properties.GetMusicPropertiesAsync();

                OnPropertyChanged(nameof(_musicProps));
            }
        }