using OwlCore.Extensions; using StrixMusic.Sdk.ViewModels; using StrixMusic.Shells.Groove.ViewModels.Pages; using Windows.UI; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace StrixMusic.Shells.Groove.Controls.Pages { /// /// A to display an . /// public partial class GrooveArtistPage : Control { /// /// Initializes a new instance of the class. /// public GrooveArtistPage() { DefaultStyleKey = typeof(GrooveArtistPage); } /// /// Backing property for . /// public static readonly DependencyProperty BackgroundColorProperty = DependencyProperty.Register(nameof(BackgroundColor), typeof(Color?), typeof(GrooveAlbumPage), new PropertyMetadata(null, null)); /// /// Gets or sets the color of the background for the . /// public Color? BackgroundColor { get => (Color)GetValue(BackgroundColorProperty); set => SetValue(BackgroundColorProperty, value); } /// /// The artist to display in this control. /// public ArtistViewModel? Artist { get { return (ArtistViewModel?)GetValue(ArtistProperty); } set { SetValue(ArtistProperty, value); } } /// /// Backing dependency property for . /// public static readonly DependencyProperty ArtistProperty = DependencyProperty.Register(nameof(Artist), typeof(ArtistViewModel), typeof(GrooveArtistPage), new PropertyMetadata(null, (d, e) => d.Cast().OnArtistChanged())); private void OnArtistChanged() { } } }