using Microsoft.Toolkit.Diagnostics; using StrixMusic.Sdk.Services.Navigation; using StrixMusic.Sdk.WinUI.Controls.Shells; using StrixMusic.Sdk.WinUI.Controls.Views.Secondary; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace StrixMusic.Shells.Strix.Styles { /// /// A containing the style and template for the in the Strix Shell. /// public sealed partial class AlbumCollectionStyle : ResourceDictionary { /// /// Initializes a new instance of the class. /// public AlbumCollectionStyle() { this.InitializeComponent(); } private void OpenAlbum(object sender, ItemClickEventArgs e) { INavigationService navigationService = Shell.Ioc.GetService>() ?? ThrowHelper.ThrowInvalidOperationException>(); navigationService.NavigateTo(typeof(AlbumView), false, e.ClickedItem); } } }