2019-06-26 01:17:52 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
2019-05-31 14:12:03 +00:00
|
|
|
<ContentView
|
|
|
|
xmlns="http://xamarin.com/schemas/2014/forms"
|
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
2019-12-01 23:26:13 +00:00
|
|
|
xmlns:dg="clr-namespace:Aurora.Design.Components.DataGrid"
|
2019-12-01 11:53:30 +00:00
|
|
|
x:Class="Aurora.Design.Components.Library.Library">
|
2019-12-01 23:26:13 +00:00
|
|
|
<ContentView.Resources>
|
|
|
|
<StyleSheet
|
|
|
|
Source="Library.css"/>
|
|
|
|
</ContentView.Resources>
|
2019-05-31 14:12:03 +00:00
|
|
|
<ContentView.Content>
|
|
|
|
<dg:DataGrid
|
2019-12-01 11:53:30 +00:00
|
|
|
x:Name="LibraryDataGrid"
|
2019-05-31 14:12:03 +00:00
|
|
|
SelectionEnabled="True"
|
2019-12-01 23:26:13 +00:00
|
|
|
RowHeight="30"
|
|
|
|
BorderColor="#3a3a3a"
|
2019-12-02 04:20:55 +00:00
|
|
|
BorderThickness="0"
|
|
|
|
HeaderHeight="40"
|
2019-12-01 23:26:13 +00:00
|
|
|
HeaderBackground="#222222">
|
2019-12-02 04:20:55 +00:00
|
|
|
<dg:DataGrid.HeaderLabelStyle>
|
|
|
|
<Style TargetType="Label">
|
|
|
|
<Setter Property="HorizontalOptions" Value="Start"/>
|
|
|
|
<Setter Property="FontSize" Value="14"/>
|
|
|
|
<Setter Property="TextColor" Value="White"/>
|
|
|
|
</Style>
|
|
|
|
</dg:DataGrid.HeaderLabelStyle>
|
|
|
|
|
2019-11-04 04:17:34 +00:00
|
|
|
<dg:DataGrid.GestureRecognizers>
|
|
|
|
<TapGestureRecognizer
|
|
|
|
NumberOfTapsRequired="2"/>
|
|
|
|
</dg:DataGrid.GestureRecognizers>
|
2019-05-31 14:12:03 +00:00
|
|
|
<dg:DataGrid.Columns>
|
2019-12-01 23:26:13 +00:00
|
|
|
<dg:DataGridColumn
|
|
|
|
Title=""
|
|
|
|
PropertyName="Icon"
|
2019-12-02 00:14:36 +00:00
|
|
|
Width="15">
|
2019-12-01 23:26:13 +00:00
|
|
|
<dg:DataGridColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Image Source="../../Resources/unselected.png" />
|
|
|
|
</DataTemplate>
|
|
|
|
</dg:DataGridColumn.CellTemplate>
|
|
|
|
</dg:DataGridColumn>
|
|
|
|
|
2019-05-31 14:12:03 +00:00
|
|
|
<dg:DataGridColumn
|
|
|
|
Title="Title"
|
|
|
|
PropertyName="Metadata.Title"
|
2019-12-01 23:26:13 +00:00
|
|
|
Width="2*">
|
|
|
|
<dg:DataGridColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Label
|
|
|
|
LineBreakMode="TailTruncation"
|
2019-12-02 00:14:36 +00:00
|
|
|
Text="{Binding .}"/>
|
2019-12-01 23:26:13 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</dg:DataGridColumn.CellTemplate>
|
|
|
|
</dg:DataGridColumn>
|
|
|
|
|
2019-05-31 14:12:03 +00:00
|
|
|
<dg:DataGridColumn
|
|
|
|
Title="Album"
|
|
|
|
PropertyName="Metadata.Album"
|
2019-12-01 23:26:13 +00:00
|
|
|
Width="0.95*">
|
|
|
|
<dg:DataGridColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Label
|
|
|
|
LineBreakMode="TailTruncation"
|
2019-12-02 00:14:36 +00:00
|
|
|
Text="{Binding .}"/>
|
2019-12-01 23:26:13 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</dg:DataGridColumn.CellTemplate>
|
|
|
|
</dg:DataGridColumn>
|
2019-12-02 04:20:55 +00:00
|
|
|
|
2019-05-31 14:12:03 +00:00
|
|
|
<dg:DataGridColumn
|
|
|
|
Title="Artist"
|
|
|
|
PropertyName="Metadata.Artist"
|
2019-12-01 23:26:13 +00:00
|
|
|
Width="1*">
|
|
|
|
<dg:DataGridColumn.CellTemplate>
|
|
|
|
<DataTemplate>
|
|
|
|
<Label
|
|
|
|
LineBreakMode="TailTruncation"
|
2019-12-02 00:14:36 +00:00
|
|
|
Text="{Binding .}"/>
|
2019-12-01 23:26:13 +00:00
|
|
|
</DataTemplate>
|
|
|
|
</dg:DataGridColumn.CellTemplate>
|
|
|
|
</dg:DataGridColumn>
|
2019-05-31 14:12:03 +00:00
|
|
|
</dg:DataGrid.Columns>
|
2019-12-02 00:14:36 +00:00
|
|
|
|
2019-12-01 23:26:13 +00:00
|
|
|
<dg:DataGrid.RowsTextColorPalette>
|
|
|
|
<dg:PaletteCollection>
|
|
|
|
<Color>White</Color>
|
|
|
|
</dg:PaletteCollection>
|
|
|
|
</dg:DataGrid.RowsTextColorPalette>
|
2019-12-02 00:14:36 +00:00
|
|
|
|
2019-05-31 14:12:03 +00:00
|
|
|
<dg:DataGrid.RowsBackgroundColorPalette>
|
|
|
|
<dg:PaletteCollection>
|
2019-12-01 23:26:13 +00:00
|
|
|
<Color>Transparent</Color>
|
2019-05-31 14:12:03 +00:00
|
|
|
</dg:PaletteCollection>
|
|
|
|
</dg:DataGrid.RowsBackgroundColorPalette>
|
|
|
|
</dg:DataGrid>
|
|
|
|
</ContentView.Content>
|
|
|
|
</ContentView>
|