Working player contained within main page and control delegated to viewmodels
This commit is contained in:
@ -7,9 +7,6 @@ namespace Aurora.Design.Components.MediaPlayer
|
||||
{
|
||||
public Player()
|
||||
{
|
||||
// this.PreviousButton.Clicked += OnPreviousButtonClicked;
|
||||
// this.PlayButton.Clicked += OnPlayButtonClicked;
|
||||
// this.NextButton.Clicked += OnNextButtonClicked;
|
||||
|
||||
InitializeComponent();
|
||||
}
|
||||
@ -33,7 +30,7 @@ namespace Aurora.Design.Components.MediaPlayer
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnSongTitlePropertyChanged(BindableObject bindable, object newValue, object oldValue)
|
||||
private static void OnSongTitlePropertyChanged(BindableObject bindable, object oldValue, object newValue)
|
||||
{
|
||||
Player component = bindable as Player;
|
||||
component.SongTitleLabel.Text = (string)newValue;
|
||||
@ -60,7 +57,7 @@ namespace Aurora.Design.Components.MediaPlayer
|
||||
}
|
||||
}
|
||||
|
||||
private static void OnArtistNamePropertyChanged(BindableObject bindable, object newValue, object oldValue)
|
||||
private static void OnArtistNamePropertyChanged(BindableObject bindable, object oldValue, object newValue)
|
||||
{
|
||||
Player component = bindable as Player;
|
||||
component.ArtistNameLabel.Text = (string)newValue;
|
||||
|
Reference in New Issue
Block a user