Using System.Diagnostics.Debug. First pass at player controls styling
This commit is contained in:
@ -3,7 +3,7 @@
|
||||
}
|
||||
|
||||
#Header {
|
||||
background-color: #232323;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#Header > Entry {
|
||||
@ -14,7 +14,7 @@
|
||||
|
||||
#TitleContainer {
|
||||
margin-top: 10;
|
||||
background-color: #3a3a3a;
|
||||
background-color: transparent;
|
||||
}
|
||||
|
||||
#TitleContainer Label {
|
||||
|
@ -17,10 +17,15 @@
|
||||
<RowDefinition Height="*"/>
|
||||
<RowDefinition Height="60"/>
|
||||
</Grid.RowDefinitions>
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--Header-->
|
||||
<StackLayout
|
||||
x:Name="Header"
|
||||
Grid.Row="0"
|
||||
Grid.ColumnSpan="2"
|
||||
Orientation="Horizontal">
|
||||
<Entry Text="Search"/>
|
||||
</StackLayout>
|
||||
@ -28,35 +33,31 @@
|
||||
<!--Title-->
|
||||
<StackLayout
|
||||
Grid.Row="1"
|
||||
Grid.ColumnSpan="2"
|
||||
x:Name="TitleContainer">
|
||||
<Label Text="{Binding Title}" TextColor="White"/>
|
||||
</StackLayout>
|
||||
|
||||
<!--Library Grid-->
|
||||
<Grid Grid.Row="2">
|
||||
<Grid.ColumnDefinitions>
|
||||
<ColumnDefinition Width="150"/>
|
||||
<ColumnDefinition Width="*"/>
|
||||
</Grid.ColumnDefinitions>
|
||||
<!--Sidebar-->
|
||||
<navigation:NavigationMenu
|
||||
Grid.Column="0"
|
||||
Grid.RowSpan="3"
|
||||
x:Name="MasterPage"
|
||||
Items="{Binding Pages}"
|
||||
SelectedItem="{Binding SelectedItem}"/>
|
||||
|
||||
<navigation:NavigationMenu
|
||||
Grid.Column="0"
|
||||
x:Name="MasterPage"
|
||||
Items="{Binding Pages}"
|
||||
SelectedItem="{Binding SelectedItem}"/>
|
||||
|
||||
<views:PageContainer
|
||||
Grid.Column="1"
|
||||
Grid.Row="0"
|
||||
x:Name="ContentPage"/>
|
||||
|
||||
</Grid>
|
||||
<!--Page Container-->
|
||||
<views:PageContainer
|
||||
Grid.Column="1"
|
||||
Grid.Row="2"
|
||||
x:Name="ContentPage"/>
|
||||
|
||||
<!--Music Player-->
|
||||
<mp:Player
|
||||
x:Name="Player"
|
||||
Grid.Row="3"
|
||||
HeightRequest="50"/>
|
||||
x:Name="Player"
|
||||
Grid.Row="3"
|
||||
Grid.ColumnSpan="2"
|
||||
HeightRequest="50"/>
|
||||
</Grid>
|
||||
|
||||
</ContentPage>
|
@ -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