添加项目文件。
This commit is contained in:
35
XXCpzs/Views/PageOrder.xaml.cs
Normal file
35
XXCpzs/Views/PageOrder.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 PageOrder : ContentPage
|
||||
{
|
||||
private OrderViewModel ViewModel;
|
||||
|
||||
|
||||
public PageOrder(UserInfo userInfo)
|
||||
{
|
||||
InitializeComponent();
|
||||
this.BindingContext = ViewModel = new OrderViewModel();
|
||||
}
|
||||
|
||||
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