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 ArtistCollectionStyle : ResourceDictionary { /// /// Initializes a new instance of the class. /// public ArtistCollectionStyle() { this.InitializeComponent(); } private void OpenArtist(object sender, ItemClickEventArgs e) { var navigationService = Shell.Ioc.GetService>() ?? ThrowHelper.ThrowInvalidOperationException>(); navigationService.NavigateTo(typeof(ArtistView), false, e.ClickedItem); } } }