Created
May 16, 2018 17:02
-
-
Save brunoportess/4398d71cecd7f86182f688c545897e36 to your computer and use it in GitHub Desktop.
This file contains 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" ?> | |
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" | |
x:Class="AppCliente.Views.Ofertas.OfertasExclusivas" | |
xmlns:local="clr-namespace:AppCliente.Converters;assembly=AppCliente" | |
xmlns:template="clr-namespace:AppCliente.Views.Ofertas;assembly=AppCliente" | |
Title="Assinantes" | |
BackgroundColor="#FFFFFF"> | |
<ContentPage.Resources> | |
<ResourceDictionary> | |
<local:IsVisible x:Key="cnvIsVisbible"></local:IsVisible> | |
<template:TemplateListOferta x:Key="MessageTemplateSelector"/> | |
</ResourceDictionary> | |
</ContentPage.Resources> | |
<StackLayout CompressedLayout.IsHeadless="True" | |
BackgroundColor="#FFFFFF"> | |
<SearchBar Placeholder="Pesquisar" | |
PlaceholderColor="Gray" | |
TextChanged="SearchBar_OnTextChanged" | |
CancelButtonColor="Red" | |
HeightRequest="50" | |
TextColor="#2d2d2d"></SearchBar> | |
<ActivityIndicator Margin="0,15,0,0" | |
Color="#f2b605" | |
IsRunning="{Binding IsBusy}" | |
IsVisible="{Binding IsBusy}"></ActivityIndicator> | |
<ListView | |
x:Name="listaExclusiva" | |
CachingStrategy="RecycleElement" | |
ItemsSource="{Binding ListaOfertasPremium}" | |
ItemTemplate="{StaticResource MessageTemplateSelector}" | |
SeparatorVisibility="None" | |
BackgroundColor="#FFFFFF" | |
HasUnevenRows="true"> | |
<!--- | |
<ListView.ItemTemplate> | |
<DataTemplate> | |
<ViewCell> | |
<ViewCell.View> | |
<Grid Padding="0,0,0,10" > | |
<Grid.GestureRecognizers> | |
<TapGestureRecognizer | |
Command="{Binding Path=BindingContext.ItemCommand, Source={x:Reference listaExclusiva}}" | |
CommandParameter="{Binding .}"></TapGestureRecognizer> | |
</Grid.GestureRecognizers> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
<RowDefinition Height="Auto" /> | |
</Grid.RowDefinitions> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="*" /> | |
<ColumnDefinition Width="*" /> | |
</Grid.ColumnDefinitions> | |
<Image Grid.Row="0" | |
Grid.ColumnSpan="2" | |
HeightRequest="200" | |
Aspect="AspectFill" | |
HorizontalOptions="FillAndExpand" | |
Grid.Column="0" | |
Source="{Binding UrlImagem}"></Image> | |
<Label Grid.Row="1" | |
Grid.Column="0" | |
Grid.ColumnSpan="2" | |
Margin="5,0,5,0" | |
FontSize="Medium" | |
FontAttributes="Bold" | |
TextColor="#2b2b2b" | |
HorizontalOptions="CenterAndExpand" | |
Text="{Binding DescricaoProduto}"></Label> | |
<Label Grid.Row="2" | |
Grid.Column="0" | |
Grid.ColumnSpan="2" | |
HorizontalTextAlignment="Center" | |
TextColor="#2b2b2b" | |
Text="{Binding Endereco}"></Label> | |
<Label Grid.Row="3" | |
Grid.Column="0" | |
FontSize="Medium" | |
HorizontalTextAlignment="Center" | |
TextColor="#2b2b2b" | |
Text="{Binding NomeEmpresa}"></Label> | |
<Label Grid.Row="3" | |
Grid.Column="1" | |
FontSize="Medium" | |
HorizontalTextAlignment="Center" | |
TextColor="#2b2b2b" | |
Text="{Binding NomeCidade}"></Label> | |
<Label Grid.Row="4" | |
Grid.Column="0" | |
TextColor="#2b2b2b" | |
HorizontalOptions="End" | |
VerticalTextAlignment="Center" | |
Text="{Binding ValorProduto, StringFormat='DE: {0}'}"></Label> | |
<Label Grid.Row="4" | |
Grid.Column="1" | |
TextColor="#2b2b2b" | |
FontAttributes="Bold" | |
FontSize="Medium" | |
VerticalTextAlignment="Center" | |
HorizontalOptions="Start" | |
Text="{Binding ValorOferta, StringFormat='POR: {0}'}"></Label> | |
<Label Grid.Row="5" | |
Grid.Column="0" | |
Grid.ColumnSpan="2" | |
TextColor="#f2b605" | |
FontAttributes="Bold" | |
FontSize="Medium" | |
HorizontalOptions="Center" | |
IsVisible="{Binding ValorAssinante, Converter={StaticResource cnvIsVisbible}}" | |
Text="{Binding ValorAssinante, StringFormat='ASSINANTE PAGA: {0}'}"></Label> | |
</Grid> | |
</ViewCell.View> | |
</ViewCell> | |
</DataTemplate> | |
</ListView.ItemTemplate> | |
--> | |
</ListView> | |
</StackLayout> | |
</ContentPage> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment