Skip to content

Instantly share code, notes, and snippets.

@icebeam7
Created April 12, 2018 14:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save icebeam7/d90ab4409be92201ee48e972d034a618 to your computer and use it in GitHub Desktop.
Save icebeam7/d90ab4409be92201ee48e972d034a618 to your computer and use it in GitHub Desktop.
SentimentalTweets: PaginaAnalisisTweet.xaml
<?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:labelTextColor="clr-namespace:SentimentalTweets.Helpers;assembly=SentimentalTweets"
x:Class="SentimentalTweets.Paginas.PaginaAnalisisTweet">
<ContentPage.Resources>
<ResourceDictionary>
<labelTextColor:StringToColorConverter x:Key="StringToColorConverter"/>
</ResourceDictionary>
</ContentPage.Resources>
<ContentPage.Content>
<StackLayout BackgroundColor="White" Padding="10">
<Label Text="Análisis" TextColor="Blue" FontSize="Large"/>
<ActivityIndicator x:Name="indicator" Color="Green" VerticalOptions="Center" HorizontalOptions="Center"/>
<Label Text="Tweet" FontSize="Small" TextColor="Gray"/>
<Label Text="{Binding Mensaje}" FontSize="Medium" LineBreakMode="WordWrap"
TextColor="{Binding Sentimiento, Converter={StaticResource StringToColorConverter}}"/>
<BoxView HeightRequest="3" Margin="10" />
<Label Text="Palabras Clave" FontSize="Small" TextColor="Gray"/>
<Label Text="{Binding PalabrasClave}" FontSize="Medium" LineBreakMode="WordWrap" TextColor="Black"/>
<BoxView HeightRequest="3" Margin="10" />
<Label Text="Idioma" FontSize="Small" TextColor="Gray"/>
<Label Text="{Binding Idioma}" FontSize="Medium" TextColor="Black"/>
</StackLayout>
</ContentPage.Content>
</ContentPage>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment