using StrixMusic.Sdk.ViewModels; using Windows.UI.Xaml; using Windows.UI.Xaml.Controls; namespace StrixMusic.Sdk.WinUI.Controls.NowPlaying { /// /// The Media Transparent controls /// public partial class MediaTransports : Control { /// /// Initializes a new instance of the class. /// public MediaTransports() { this.DefaultStyleKey = typeof(MediaTransports); } /// /// The ViewModel that holds the active device. /// public DeviceViewModel Device { get { return (DeviceViewModel)GetValue(DeviceProperty); } set { SetValue(DeviceProperty, value); } } /// /// Dependency property for . /// // Using a DependencyProperty as the backing store for MyProperty. This enables animation, styling, binding, etc... public static readonly DependencyProperty DeviceProperty = DependencyProperty.Register(nameof(Device), typeof(DeviceViewModel), typeof(MediaTransports), new PropertyMetadata(null)); } }