Merge branch 'vnext' of github.com:pazof/yavsc into vnext
commit
16afaad765
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 6.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.9 KiB |
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -1,22 +1,96 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
|
<TabbedPage xmlns="http://xamarin.com/schemas/2014/forms"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
x:Class="BookAStar.Pages.ChatPage"
|
x:Class="BookAStar.Pages.ChatPage"
|
||||||
|
xmlns:views="clr-namespace:BookAStar.Views;assembly=BookAStar"
|
||||||
|
xmlns:controls="clr-namespace:XLabs.Forms.Controls;assembly=XLabs.Forms"
|
||||||
|
xmlns:toolkit="clr-namespace:XLabs.Forms.Mvvm;assembly=XLabs.Forms"
|
||||||
>
|
>
|
||||||
|
<TabbedPage.Children>
|
||||||
<StackLayout Padding="5, 5, 5, 5">
|
<ContentPage Title="Public" Icon="chat_icon_s.png" >
|
||||||
<StackLayout Spacing = "12"
|
<StackLayout Padding="5, 5, 5, 5">
|
||||||
Orientation = "Horizontal"
|
<StackLayout Spacing = "12"
|
||||||
Padding="5, 0, 5, 0">
|
Orientation = "Horizontal"
|
||||||
<Entry x:Name="messageEntry" Placeholder = "enter your Message"
|
Padding="5, 0, 5, 0">
|
||||||
VerticalOptions = "Center"
|
<Entry x:Name="messageEntry" Placeholder = "enter your Message"
|
||||||
HorizontalOptions = "FillAndExpand"></Entry>
|
VerticalOptions = "Center"
|
||||||
<Button x:Name="sendButton" Text = "Send" HorizontalOptions = "End"
|
HorizontalOptions = "FillAndExpand"></Entry>
|
||||||
VerticalOptions = "Center"></Button>
|
<Button x:Name="sendButton" Text = "Send" HorizontalOptions = "End"
|
||||||
|
VerticalOptions = "Center"></Button>
|
||||||
<Label Text="{Binding MainText}" VerticalOptions="Center" HorizontalOptions="Center" />
|
</StackLayout>
|
||||||
|
<ListView x:Name="messageList" HasUnevenRows="true">
|
||||||
|
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<StackLayout Orientation="Horizontal" VerticalOptions="StartAndExpand">
|
||||||
|
<Label Text="{Binding Date, StringFormat='{0:HH:mm}'}" FontAttributes="Italic" />
|
||||||
|
<Label Text="{Binding SenderId}" FontFamily="monospace" FontAttributes="Italic" />
|
||||||
|
<BoxView WidthRequest="1" HeightRequest="15" Color="#000090"/>
|
||||||
|
<Label Text="{Binding Message}" FontFamily="monospace" />
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
<ContentPage Title="Notifications" Icon="exclam.png" >
|
||||||
|
<StackLayout Padding="5, 5, 5, 5">
|
||||||
|
<ListView x:Name="notifList" HasUnevenRows="true">
|
||||||
|
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<StackLayout Orientation="Horizontal" VerticalOptions="StartAndExpand">
|
||||||
|
<Label Text="{Binding Date, StringFormat='{0:hh:mm}'}" FontAttributes="Italic" />
|
||||||
|
<Label Text="{Binding SenderId}" FontFamily="monospace" FontAttributes="Italic" />
|
||||||
|
<BoxView Color="#000090" WidthRequest="1" HeightRequest="15" />
|
||||||
|
<Label Text="{Binding Message}" FontFamily="monospace" />
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</StackLayout>
|
||||||
|
</ContentPage>
|
||||||
|
|
||||||
|
<ContentPage Title="Contacts" Icon="peer_to_peer.png" >
|
||||||
|
<StackLayout Padding="5, 5, 5, 5">
|
||||||
|
<StackLayout Spacing = "12"
|
||||||
|
Orientation = "Horizontal"
|
||||||
|
Padding="5, 0, 5, 0">
|
||||||
|
<Entry x:Name="pvEntry" Placeholder = "enter your private message"
|
||||||
|
VerticalOptions = "Center"
|
||||||
|
HorizontalOptions = "FillAndExpand"></Entry>
|
||||||
|
<!--
|
||||||
|
<controls:ExtendedPicker x:Name="contactPicker" Display="{Binding UserName}"></controls:ExtendedPicker>
|
||||||
|
-->
|
||||||
|
<controls:ExtendedPicker x:Name="contactPicker" />
|
||||||
|
<Button x:Name="sendPVButton" Text = "Send" HorizontalOptions = "End"
|
||||||
|
VerticalOptions = "Center"></Button>
|
||||||
|
</StackLayout>
|
||||||
|
<ListView x:Name="PVList" HasUnevenRows="true">
|
||||||
|
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<StackLayout Orientation="Horizontal" VerticalOptions="StartAndExpand">
|
||||||
|
<Label Text="{Binding Date, StringFormat='{0:hh:mm}'}" FontAttributes="Italic" />
|
||||||
|
<Label Text="{Binding SenderId}" FontFamily="monospace" FontAttributes="Italic" />
|
||||||
|
<BoxView Color="#000090" WidthRequest="1" HeightRequest="15" />
|
||||||
|
<Label Text="{Binding Message}" FontFamily="monospace" />
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
<!-- <views:UserListView ItemsSource="" /> -->
|
||||||
</StackLayout>
|
</StackLayout>
|
||||||
<ListView x:Name="messageList"></ListView>
|
|
||||||
</StackLayout>
|
</ContentPage>
|
||||||
</ContentPage>
|
</TabbedPage.Children>
|
||||||
|
</TabbedPage>
|
@ -0,0 +1,35 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<ContentView xmlns="http://xamarin.com/schemas/2014/forms"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="BookAStar.Views.UserListView"
|
||||||
|
xmlns:local="clr-namespace:BookAStar;assembly=BookAStar"
|
||||||
|
xmlns:extensions="clr-namespace:BookAStar.Extensions;assembly=BookAStar">
|
||||||
|
<ContentView.Resources>
|
||||||
|
<ResourceDictionary>
|
||||||
|
<Style TargetType="Label">
|
||||||
|
<Setter Property="Style" Value="{StaticResource ContentLabelStyle}" />
|
||||||
|
</Style>
|
||||||
|
<Style TargetType="Button">
|
||||||
|
<Setter Property="Style" Value="{StaticResource ButtonStyle}" />
|
||||||
|
</Style>
|
||||||
|
</ResourceDictionary>
|
||||||
|
</ContentView.Resources>
|
||||||
|
<ContentView.Content>
|
||||||
|
<ListView x:Name="list" ItemTapped="OnViewDetail" HasUnevenRows="true" RowHeight="80">
|
||||||
|
<ListView.ItemTemplate HeightRequest="80" VerticalOptions="StartAndExpand">
|
||||||
|
<DataTemplate>
|
||||||
|
<ViewCell>
|
||||||
|
<ViewCell.View>
|
||||||
|
<StackLayout Orientation="Horizontal" Padding="10,10,10,10" VerticalOptions="StartAndExpand">
|
||||||
|
<Image Source="{Binding AvatarOrNot}" Aspect="AspectFit" />
|
||||||
|
<Label Text="{Binding UserName}" />
|
||||||
|
<Label Text="{Binding EMail}" />
|
||||||
|
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell.View>
|
||||||
|
</ViewCell>
|
||||||
|
</DataTemplate>
|
||||||
|
</ListView.ItemTemplate>
|
||||||
|
</ListView>
|
||||||
|
</ContentView.Content>
|
||||||
|
</ContentView>
|
Loading…
Reference in New Issue