Created
August 4, 2017 18:06
-
-
Save heinst/f10c05c5335bd0e8ece55b685289ec23 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<ContentView xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:telerikDataControls="clr-namespace:Telerik.XamarinForms.DataControls;assembly=Telerik.XamarinForms.DataControls" | |
xmlns:telerikListView="clr-namespace:Telerik.XamarinForms.DataControls.ListView;assembly=Telerik.XamarinForms.DataControls" | |
x:Class="D7MobileMain.Views.AssetsView" | |
xmlns:local="clr-namespace:D7MobileMain.Helper;assembly=D7MobileMain"> | |
<ContentView.Resources> | |
<ResourceDictionary> | |
<local:Base64ImageConverter x:Key="base64Converter"></local:Base64ImageConverter> | |
</ResourceDictionary> | |
</ContentView.Resources> | |
<ContentView.Content> | |
<StackLayout Orientation="Vertical" Padding="0, 0, 0, 0"> | |
<Grid Grid.ColumnSpacing="0" Grid.RowSpacing="0" > | |
<Grid.RowDefinitions> | |
<RowDefinition> | |
<RowDefinition.Height> | |
<OnPlatform x:TypeArguments="GridLength" | |
iOS="64" | |
Android="56"/> | |
</RowDefinition.Height> | |
</RowDefinition> | |
</Grid.RowDefinitions> | |
<Grid Grid.ColumnSpacing="0" Grid.RowSpacing="0" BackgroundColor="#15315A"> | |
<Grid.Padding> | |
<OnPlatform x:TypeArguments="Thickness"> | |
<On Platform="Android" Value="0, 0, 0, 0"/> | |
<On Platform="iOS" Value="14, 8, 0, 0"/> | |
</OnPlatform> | |
</Grid.Padding> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="Auto"/> | |
<ColumnDefinition Width="*"/> | |
</Grid.ColumnDefinitions> | |
<Grid x:Name="drawerOpener" Grid.ColumnSpacing="0" Grid.RowSpacing="0"> | |
<Grid.WidthRequest> | |
<OnPlatform x:TypeArguments="x:Double"> | |
<On Platform="Android" Value="32" /> | |
<On Platform="iOS" Value="24"/> | |
</OnPlatform> | |
</Grid.WidthRequest> | |
<Grid.HeightRequest> | |
<OnPlatform x:TypeArguments="x:Double"> | |
<On Platform="Android" Value="32" /> | |
<On Platform="iOS" Value="24"/> | |
</OnPlatform> | |
</Grid.HeightRequest> | |
<Grid.Padding> | |
<OnPlatform x:TypeArguments="Thickness"> | |
<On Platform="Android" Value="16, 0, 16, 0" /> | |
<On Platform="iOS" Value="0, 0, 0, 0"/> | |
</OnPlatform> | |
</Grid.Padding> | |
<Image HorizontalOptions="Start" VerticalOptions="Center"> | |
<Image.Source> | |
<OnPlatform x:TypeArguments="ImageSource" | |
iOS="menu_icon.png" | |
Android="menu_icon.png"/> | |
</Image.Source> | |
</Image> | |
</Grid> | |
<Label Grid.Column="1" Text="Dossier 7" TextColor="#F3F9F5" VerticalOptions="Center" x:Name="title" HorizontalOptions="StartAndExpand"> | |
<Label.FontSize> | |
<OnPlatform x:TypeArguments="x:Double" | |
iOS="19" | |
Android="17" /> | |
</Label.FontSize> | |
</Label> | |
</Grid> | |
</Grid> | |
<ContentView Padding="0, -10, 0, 0"> | |
<SearchBar x:Name="assetSearch" Placeholder="Search Assets" TextChanged="assetSearch_TextChanged"/> | |
</ContentView> | |
<ContentView Padding="0, -6, 0, 0"> | |
<telerikDataControls:RadListView BackgroundColor="White" x:Name="listView" ItemTapped="listView_ItemTapped"> | |
<telerikDataControls:RadListView.ItemTemplate> | |
<DataTemplate> | |
<telerikListView:ListViewTemplateCell> | |
<telerikListView:ListViewTemplateCell.View> | |
<StackLayout Orientation="Horizontal" VerticalOptions="Center"> | |
<Image x:Name="assetImage" Source="{Binding AssetImage, Converter={StaticResource base64Converter}}" VerticalOptions="Center" /> | |
<StackLayout Orientation="Vertical" Spacing="10" VerticalOptions="Center"> | |
<Label x:Name="primarySecondaryId" Text="{Binding PrimarySecondaryId}" /> | |
<Label x:Name="siteName" Text="{Binding SiteName}" /> | |
</StackLayout> | |
</StackLayout> | |
</telerikListView:ListViewTemplateCell.View> | |
</telerikListView:ListViewTemplateCell> | |
</DataTemplate> | |
</telerikDataControls:RadListView.ItemTemplate> | |
</telerikDataControls:RadListView> | |
</ContentView> | |
</StackLayout> | |
</ContentView.Content> | |
</ContentView> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment