forked from ryandnguyen/SimpleBlog
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBlog.xaml
More file actions
25 lines (21 loc) · 1.34 KB
/
Copy pathBlog.xaml
File metadata and controls
25 lines (21 loc) · 1.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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"
prism:ViewModelLocator.AutowireViewModel="True"
Title="{Binding Title}"
x:Class="SimpleBlog.Views.Blog">
<Frame Margin="10" VerticalOptions="FillAndExpand">
<Frame.Content>
<StackLayout VerticalOptions="FillAndExpand">
<StackLayout HorizontalOptions="FillAndExpand" Orientation="Horizontal">
<Label Text="{Binding BlogDetail.BlogTitle}" HorizontalOptions="StartAndExpand"/>
<Label Text="{Binding BlogDetail.CreatedBy, StringFormat='Author: {0}'}" HorizontalOptions="End"/>
</StackLayout>
<BoxView Color="LightGray" HeightRequest="1" HorizontalOptions="FillAndExpand" Margin="0,5,0,0" />
<Label Text="{Binding BlogDetail.BlogDescription}" LineBreakMode="WordWrap" VerticalOptions="FillAndExpand"></Label>
<Label Text="{Binding BlogDetail.CreatedDate, StringFormat='Date: {0: MM-dd-yyy}'}" VerticalOptions="End" HorizontalOptions="EndAndExpand"/>
</StackLayout>
</Frame.Content>
</Frame>
</ContentPage>