using StrixMusic.Sdk.ViewModels; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace StrixMusic.Sdk.WinUI.Controls.NowPlaying { /// /// Media info for the currently playing track. /// public partial class MediaInfo : Control { /// /// Initializes a new instance of the class. /// public MediaInfo() { this.DefaultStyleKey = typeof(MediaInfo); } /// /// The ViewModel that holds the active device. /// public DeviceViewModel Device { get { return (DeviceViewModel)GetValue(DeviceProperty); } set { SetValue(DeviceProperty, value); } } /// /// Dependency property for . /// public static readonly DependencyProperty DeviceProperty = DependencyProperty.Register(nameof(Device), typeof(DeviceViewModel), typeof(MediaInfo), new PropertyMetadata(null)); } }