diff --git a/InfoBlog.Android/Resources/beautiful_scenery_02_hd_picture_166319.jpg b/InfoBlog.Android/Resources/beautiful_scenery_02_hd_picture_166319.jpg new file mode 100644 index 0000000..567d473 Binary files /dev/null and b/InfoBlog.Android/Resources/beautiful_scenery_02_hd_picture_166319.jpg differ diff --git a/InfoBlog.iOS/Resources/flower.jpg b/InfoBlog.iOS/Resources/flower.jpg new file mode 100644 index 0000000..567d473 Binary files /dev/null and b/InfoBlog.iOS/Resources/flower.jpg differ diff --git a/InfoBlog/ViewModel/BlogPostViewModel.cs b/InfoBlog/ViewModel/BlogPostViewModel.cs new file mode 100644 index 0000000..9a4937a --- /dev/null +++ b/InfoBlog/ViewModel/BlogPostViewModel.cs @@ -0,0 +1,20 @@ +using System; +using System.Collections.ObjectModel; +using System.Windows.Input; +using InfoBlog.Models; +using Xamarin.Forms; + +namespace InfoBlog.ViewModel +{ + public class BlogPostViewModel + { + public ObservableCollection + PostList{ get; set; } + public BlogPostViewModel() + { + PostList = new ObservableCollection(); + PostList.Add(new PostForm { Topic = "Topic.Text", Image = "Image.Text", Contents = "Contents.Text", User = "User.Text" }); + } + + } +} diff --git a/InfoBlog/Views/BlogPageDetail.xaml b/InfoBlog/Views/BlogPageDetail.xaml new file mode 100644 index 0000000..17959b9 --- /dev/null +++ b/InfoBlog/Views/BlogPageDetail.xaml @@ -0,0 +1,25 @@ + + + + + + + + + diff --git a/InfoBlog/Views/BlogPageDetail.xaml.cs b/InfoBlog/Views/BlogPageDetail.xaml.cs new file mode 100644 index 0000000..c8c20a5 --- /dev/null +++ b/InfoBlog/Views/BlogPageDetail.xaml.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Threading.Tasks; +using InfoBlog.Models; +using SQLite; +using Xamarin.Forms; + +namespace InfoBlog.Views +{ + public partial class BlogPageDetail : ContentPage + { + public BlogPageDetail() + { + InitializeComponent(); + } + + public BlogPageDetail(string Topic, string Image, string Contents, string User) + { + InitializeComponent(); + BlogTopic.Text = Topic; + BlogContent.Text = Contents; + BlogUser.Text = User; + BlogImage.Source = new UriImageSource() + { + Uri = new Uri(Image) + }; + } + } +} diff --git a/InfoBlog/Views/WelcomePage.xaml b/InfoBlog/Views/WelcomePage.xaml new file mode 100644 index 0000000..4d6728a --- /dev/null +++ b/InfoBlog/Views/WelcomePage.xaml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + diff --git a/InfoBlog/Views/WelcomePage.xaml.cs b/InfoBlog/Views/WelcomePage.xaml.cs new file mode 100644 index 0000000..76fcc58 --- /dev/null +++ b/InfoBlog/Views/WelcomePage.xaml.cs @@ -0,0 +1,28 @@ +using System; +using System.Collections.Generic; +using InfoBlog.Views; + +using Xamarin.Forms; + +namespace InfoBlog.Views +{ + public partial class WelcomePage : ContentPage + { + public WelcomePage() + { + InitializeComponent(); + } + void RegisterBtn(object sender, System.EventArgs e) + { + Navigation.PushAsync(new Register()); + } + void LoginBtn(object Sender, System.EventArgs e) + { + + Navigation.PushAsync(new Login()); + + + } + + } +}