コード例 #1
0
        public PlaylistDetailPage(PlaylistViewModel playlist)
        {
            _playlist = playlist;

            InitializeComponent();

            title.Text = _playlist.Title;
        }
コード例 #2
0
        private async Task SelectPlaylist(PlaylistViewModel playlist)
        {
            if (playlist == null)
            {
                return;
            }

            playlist.IsFavorite = !playlist.IsFavorite;

            SelectedPlaylist = null;

            await _pageService.PushAsync(new PlaylistDetailPage(playlist));
        }