34 lines
675 B
C#
34 lines
675 B
C#
using System;
|
|
using System.ComponentModel;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using Xamarin.Forms;
|
|
using Xamarin.Forms.Xaml;
|
|
|
|
using Gallery.Models;
|
|
using Gallery.Views;
|
|
using Gallery.ViewModels;
|
|
|
|
namespace Gallery.Views
|
|
{
|
|
public partial class ItemsPage : ContentPage
|
|
{
|
|
ItemsViewModel _viewModel;
|
|
|
|
public ItemsPage()
|
|
{
|
|
InitializeComponent();
|
|
|
|
BindingContext = _viewModel = new ItemsViewModel();
|
|
}
|
|
|
|
protected override void OnAppearing()
|
|
{
|
|
base.OnAppearing();
|
|
_viewModel.OnAppearing();
|
|
}
|
|
}
|
|
}
|