Advertisement
Guest User

Untitled

a guest
Mar 6th, 2018
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 6.30 KB | None | 0 0
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <ViewCell xmlns="http://xamarin.com/schemas/2014/forms"
  3.             xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
  4.             xmlns:audioViews="clr-namespace:Lama.Forms.Source.UI.CustomControls.AudioViews;assembly=Lama.Forms"
  5.             x:Class="Lama.Forms.Source.UI.Pages.MainPages.AudioViewCell"
  6.             xmlns:local="Lama.Forms.Source.UI.Pages.MainPages"
  7.             xmlns:fal="clr-namespace:SharpLibrary.Forms.Source.CustomControls.Labels;assembly=SharpLibrary.Forms"
  8.             xmlns:mainPages="clr-namespace:Lama.Forms.Source.UI.Pages.MainPages;assembly=Lama.Forms">
  9.     <ViewCell.View>
  10.         <StackLayout x:Name="slRoot" BackgroundColor="{Binding BgColor}" Orientation="Vertical" Margin="0,0,0,8">
  11.             <StackLayout HeightRequest="150">
  12.                 <Grid RowSpacing="0" ColumnSpacing="0" VerticalOptions="FillAndExpand">
  13.                     <Grid.RowDefinitions>
  14.                         <RowDefinition Height="*" />
  15.                         <RowDefinition Height="*" />
  16.                     </Grid.RowDefinitions>
  17.                     <Grid.ColumnDefinitions>
  18.                         <ColumnDefinition Width="10" />
  19.                         <ColumnDefinition Width="75" />
  20.                         <ColumnDefinition Width="*" />
  21.                         <ColumnDefinition Width="*" />
  22.                         <ColumnDefinition Width="50" />
  23.                     </Grid.ColumnDefinitions>
  24.  
  25.                     <!-- The Tagstate -->
  26.                     <BoxView Color="{Binding TagStateColor}" Grid.Column="0" Grid.Row="0" Grid.RowSpan="2" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand"/>
  27.  
  28.                     <!-- The Cover -->
  29.                     <Image x:Name="ImgCover" BackgroundColor="{StaticResource LamaControlGray}" Source="{Binding Cover}" Grid.Row="0" Grid.Column="1" VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" />
  30.  
  31.                     <!-- The Playback Buttons -->
  32.                     <Grid Grid.Row="1" Grid.Column="1">
  33.                         <Grid.ColumnDefinitions>
  34.                             <ColumnDefinition Width="*" />
  35.                             <ColumnDefinition Width="*" />
  36.                         </Grid.ColumnDefinitions>
  37.  
  38.                         <fal:FontAwesomeLabel Text="{Binding PlayButtonIcon}"
  39.                                              Style="{StaticResource FAIconedLabel}" />
  40.                         <fal:FontAwesomeLabel Text="{Binding StopButtonIcon}"
  41.                                              Grid.Column="1"
  42.                                              Style="{StaticResource FAIconedLabel}" />
  43.                     </Grid>
  44.  
  45.                     <!-- The WaveView -->
  46.                     <audioViews:AudioWaveView x:Name="AwvWaveView"
  47.                                              Grid.Row="1" Grid.Column="2" Grid.ColumnSpan="2"
  48.                                              HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand"
  49.                                              Margin="0,8,0,0"/>
  50.  
  51.                     <!-- The Expand Button -->
  52.                     <Button x:Name="BtnExpandCollapse" Text="{Binding ExpandCollapeButtonText}" TextColor="White" FontAttributes="Bold" FontSize="25"
  53.                            Grid.Row="1" Grid.Column="4"
  54.                            VerticalOptions="FillAndExpand" HorizontalOptions="FillAndExpand" Margin="0,0,0,0" Command="{Binding ExpandCollapseCommand}"/>
  55.  
  56.                     <!-- The Grid for Filename, Artist and Title -->
  57.                     <Grid Grid.Row="0" Grid.Column="2" Grid.ColumnSpan="2" RowSpacing="0" ColumnSpacing="0">
  58.                         <Grid.RowDefinitions>
  59.                             <RowDefinition Height="*" />
  60.                             <RowDefinition Height="*" />
  61.                         </Grid.RowDefinitions>
  62.                         <Grid.ColumnDefinitions>
  63.                             <ColumnDefinition Width="*" />
  64.                             <ColumnDefinition Width="*" />
  65.                         </Grid.ColumnDefinitions>
  66.  
  67.                         <!-- The Filename -->
  68.                         <StackLayout Grid.ColumnSpan="2" Margin="10,0,0,0" Spacing="0"
  69.                                     Orientation="Horizontal" >
  70.  
  71.                             <Label Text="Filename:"
  72.                                   VerticalTextAlignment="Center"
  73.                                   WidthRequest="100"
  74.                                   Style="{StaticResource CellLabel}"/>
  75.  
  76.                             <Label x:Name="LblFilename" Text="{Binding Filename}"
  77.                                   VerticalTextAlignment="Center"
  78.                                   Style="{StaticResource CellLabel}"/>
  79.                         </StackLayout>
  80.  
  81.                         <!-- The Artist -->
  82.                         <StackLayout Grid.Row="1" Grid.Column="0" Margin="10,0,0,0" Orientation="Horizontal">
  83.  
  84.                             <Label Text="Artist:"
  85.                                   WidthRequest="100"
  86.                                   VerticalTextAlignment="Center"
  87.                                   Style="{StaticResource CellLabel}"/>
  88.  
  89.                             <Label x:Name="LblArtist" Text="{Binding Artist}"
  90.                               VerticalTextAlignment="Center"
  91.                               Style="{StaticResource CellLabel}"/>
  92.                         </StackLayout>
  93.  
  94.                         <!-- The Title -->
  95.                         <StackLayout Grid.Row="1" Grid.Column="1" Margin="10,0,0,0" Orientation="Horizontal">
  96.  
  97.                             <Label Text="Title:"
  98.                                   WidthRequest="100"
  99.                                   VerticalTextAlignment="Center"
  100.                                   Style="{StaticResource CellLabel}"/>
  101.  
  102.                             <Label x:Name="LblTitle" Text="{Binding Title}"
  103.                               VerticalTextAlignment="Center"
  104.                               Style="{StaticResource CellLabel}"/>
  105.                         </StackLayout>
  106.                     </Grid>
  107.  
  108.                 </Grid>
  109.             </StackLayout>
  110.  
  111.             <StackLayout x:Name="SlAdditionalData" HeightRequest="50" BackgroundColor="Green">
  112.  
  113.             </StackLayout>
  114.         </StackLayout>
  115.     </ViewCell.View>
  116. </ViewCell>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement