添加项目文件。
This commit is contained in:
35
XXCpzs/Views/PageCustomer.xaml.cs
Normal file
35
XXCpzs/Views/PageCustomer.xaml.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
|
||||
using Xamarin.Forms;
|
||||
using Xamarin.Forms.Xaml;
|
||||
using XXCpzs.Models;
|
||||
using XXCpzs.ViewModels;
|
||||
|
||||
namespace XXCpzs.Views
|
||||
{
|
||||
[XamlCompilation(XamlCompilationOptions.Compile)]
|
||||
public partial class PageCustomer : ContentPage
|
||||
{
|
||||
private CustomerViewModel ViewModel;
|
||||
|
||||
public PageCustomer(UserInfo userInfo)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.BindingContext = ViewModel = new CustomerViewModel();
|
||||
}
|
||||
|
||||
|
||||
|
||||
public void OnMore(object sender, EventArgs e)
|
||||
{
|
||||
var mi = ((MenuItem)sender);
|
||||
DisplayAlert("More Context Action", mi.CommandParameter + " more context action", "OK");
|
||||
}
|
||||
|
||||
public void OnDelete(object sender, EventArgs e)
|
||||
{
|
||||
var mi = ((MenuItem)sender);
|
||||
DisplayAlert("Delete Context Action", mi.CommandParameter + " delete context action", "OK");
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user