Using System.Diagnostics.Debug. First pass at player controls styling
This commit is contained in:
@ -17,7 +17,9 @@ namespace Aurora.Design.Views.Main
|
||||
/// <param name="media"></param>
|
||||
public delegate void SetPlayerMetadataDelegate(BaseMedia media);
|
||||
|
||||
public delegate void SetPlayerVisibleDelegate(Boolean visible);
|
||||
public delegate void SetPlayerVisibleDelegate(bool visible);
|
||||
|
||||
public delegate void SetIsPlayingDelegate(bool playing);
|
||||
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class MainView : ContentPage//, IDisposable
|
||||
@ -139,6 +141,7 @@ namespace Aurora.Design.Views.Main
|
||||
{
|
||||
vm.SetPlayerMetadata = null;
|
||||
vm.SetPlayerVisible = null;
|
||||
vm.SetIsPlaying = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -152,8 +155,10 @@ namespace Aurora.Design.Views.Main
|
||||
_player.PreviousButtonCommand = new Command(vm.OnPreviousButtonExecute, vm.CanPreviousButtonExecute);
|
||||
|
||||
//Assign SetPlayer delegate
|
||||
|
||||
vm.SetPlayerMetadata = SetPlayer;
|
||||
vm.SetPlayerVisible = SetPlayerVisible;
|
||||
vm.SetIsPlaying = SetIsPlaying;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@ -178,6 +183,11 @@ namespace Aurora.Design.Views.Main
|
||||
{
|
||||
_player.IsVisible = visible;
|
||||
}
|
||||
|
||||
private void SetIsPlaying(bool playing)
|
||||
{
|
||||
_player.IsPlaying = playing;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user