Example of Chat in Xamarin.Forms applications - http://julianocustodio.com/chat
<?xml version="1.0" encoding="utf-8" ?> | |
<ViewCell xmlns="http://xamarin.com/schemas/2014/forms" | |
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" | |
x:Class="DemoChat.CustomCells.TextInViewCell"> | |
<Grid ColumnSpacing="2" Padding="5"> | |
<Grid.ColumnDefinitions> | |
<ColumnDefinition Width="2"></ColumnDefinition> | |
<ColumnDefinition Width="Auto"></ColumnDefinition> | |
<ColumnDefinition Width="*"></ColumnDefinition> | |
</Grid.ColumnDefinitions> | |
<Grid.RowDefinitions> | |
<RowDefinition Height="*"></RowDefinition> | |
<RowDefinition Height="Auto"></RowDefinition> | |
</Grid.RowDefinitions> | |
<Frame Grid.Row="0" Grid.Column="1" BackgroundColor="#0535f0" CornerRadius="15"> | |
<Frame.HasShadow> | |
<OnPlatform x:TypeArguments="x:Boolean" iOS="false" Android="true"/> | |
</Frame.HasShadow> | |
<StackLayout> | |
<Label TextColor="White" Text="{Binding Text}" /> | |
</StackLayout> | |
</Frame> | |
<Label FontSize="Micro" Grid.Row="1" Grid.Column="1" Text="{Binding MessageDateTime, StringFormat='{0:MM/dd/yyyy hh:mm tt}'}" TextColor="Gray"></Label> | |
</Grid> | |
</ViewCell> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment