Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
2
2018-app-inutralia
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
inutralia
2018-app-inutralia
Commits
5f1f8862
Commit
5f1f8862
authored
Feb 06, 2019
by
Javier Piris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adaptación del chat de preguntas al especialista
parent
363d5a57
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
43 additions
and
14 deletions
+43
-14
TextInViewCell.xaml
inutralia/inutralia/CustomCells/TextInViewCell.xaml
+13
-4
TextOutViewCell.xaml
inutralia/inutralia/CustomCells/TextOutViewCell.xaml
+15
-5
NewQuestionViewModel.cs
...ia/ViewModels/QuestionsSpecialist/NewQuestionViewModel.cs
+3
-0
NewConsultationView.xaml
inutralia/inutralia/Views/Question/NewConsultationView.xaml
+7
-5
NewConsultationView.xaml.cs
...alia/inutralia/Views/Question/NewConsultationView.xaml.cs
+5
-0
No files found.
inutralia/inutralia/CustomCells/TextInViewCell.xaml
View file @
5f1f8862
...
...
@@ -3,26 +3,34 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.CustomCells.TextInViewCell">
<Grid ColumnSpacing="2" Padding="5">
<Grid ColumnSpacing="2"
RowSpacing="20"
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 Grid.Row="0" Grid.Column="1" CornerRadius="15">
<Frame.HasShadow>
<OnPlatform x:TypeArguments="x:Boolean" iOS="false" Android="true"/>
</Frame.HasShadow>
<StackLayout>
<Label TextColor="White" Text="{Binding Text}" />
<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>
<Label FontSize="Micro"
Grid.Row="1"
Grid.Column="1"
Text="{Binding MessageDateTime, StringFormat='{0:MM/dd/yyyy hh:mm tt}'}"
TextColor="Black">
</Label>
</Grid>
</ViewCell>
\ No newline at end of file
inutralia/inutralia/CustomCells/TextOutViewCell.xaml
View file @
5f1f8862
...
...
@@ -3,19 +3,19 @@
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
x:Class="inutralia.CustomCells.TextOutViewCell">
<Grid ColumnSpacing="2" Padding="
5
">
<Grid ColumnSpacing="2" Padding="
15,10,15,10
">
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="2"></ColumnDefinition>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="Auto"></RowDefinition>
</Grid.RowDefinitions>
<Frame Grid.Row="0"
Grid.Column="1" CornerRadius="15
">
<Frame Grid.Row="0"
Grid.Column="1" CornerRadius="15" BorderColor="#FFA2C300
">
<Frame.HasShadow>
<OnPlatform x:TypeArguments="x:Boolean" Android="true" iOS="True"/>
</Frame.HasShadow>
...
...
@@ -24,10 +24,19 @@
</Frame.BackgroundColor>
<StackLayout>
<Label TextColor="Black" Text="{Binding Text}" />
<Label TextColor="Black"
Text="{Binding Text}" />
</StackLayout>
</Frame>
<Label Grid.Row="1" FontSize="Micro" Grid.Column="1" HorizontalTextAlignment="End" Text="{Binding MessageDateTime, StringFormat='{0:MM/dd/yyyy hh:mm tt}'}" TextColor="Gray"></Label>
<Label Grid.Row="1"
FontSize="Micro"
Grid.Column="1"
HorizontalTextAlignment="End"
Text="{Binding MessageDateTime, StringFormat='{0:MM/dd/yyyy hh:mm tt}'}"
TextColor="Black">
</Label>
</Grid>
</ViewCell>
\ No newline at end of file
inutralia/inutralia/ViewModels/QuestionsSpecialist/NewQuestionViewModel.cs
View file @
5f1f8862
...
...
@@ -14,6 +14,7 @@ namespace inutralia.ViewModels
public
NewQuestionViewModel
()
{
IsBusy
=
true
;
ListMessages
=
new
ObservableRangeCollection
<
Message
>();
...
...
@@ -34,6 +35,8 @@ namespace inutralia.ViewModels
}
});
IsBusy
=
false
;
}
...
...
inutralia/inutralia/Views/Question/NewConsultationView.xaml
View file @
5f1f8862
...
...
@@ -7,7 +7,6 @@
x:Name="newConsultationView"
Title="Nueva Consulta"
Icon="Add1"
BackgroundColor="{DynamicResource BasePageColor}"
NavigationPage.HasBackButton="True">
<ContentPage.Resources>
...
...
@@ -17,20 +16,23 @@
</ContentPage.Resources>
<ContentPage.Content>
<Grid RowSpacing="0" ColumnSpacing="0" >
<Grid RowSpacing="0" ColumnSpacing="0"
Padding="0,10,0,0"
>
<Grid.RowDefinitions>
<RowDefinition Height="*"/>
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<ScrollView>
<ScrollView
>
<ListView x:Name="MessagesListView"
ItemTemplate="{StaticResource MessageTemplateSelector}"
ItemsSource="{Binding ListMessages}"
ItemTapped="ItemTapped"
BackgroundColor="White"
HasUnevenRows="True"
SeparatorVisibility="None"
Footer="
"
/>
CachingStrategy="RecycleElement
"
Footer=""
/>
</ScrollView>
<StackLayout Orientation="Horizontal" Grid.Row="1" BackgroundColor="White" Padding="0,0,0,10">
...
...
inutralia/inutralia/Views/Question/NewConsultationView.xaml.cs
View file @
5f1f8862
...
...
@@ -32,6 +32,11 @@ namespace inutralia.Views.Question
//buttonNewQuestion.Clicked += ButtonNewQuestion_Clicked;
}
protected
void
ItemTapped
(
object
sender
,
ItemTappedEventArgs
e
)
{
((
ListView
)
sender
).
SelectedItem
=
null
;
}
//protected override void OnBindingContextChanged()
//{
// base.OnBindingContextChanged();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment