Esempio n. 1
0
        public ExpenseDetailsPage(Expense selectedExpense)
        {
            InitializeComponent();

            ViewModel = Resources["vm"] as ExpenseDetailsVM;
            ViewModel.SelectedExpense = selectedExpense;
        }
Esempio n. 2
0
        public ExpenseDetailsPage(Expense expense)
        {
            InitializeComponent();

            ViewModel         = Resources["vm"] as ExpenseDetailsVM;
            ViewModel.Expense = expense;
        }
Esempio n. 3
0
        public ExpenseDetailsPage(Expense expense)
        {
            InitializeComponent();

            expenseDetailsVM         = Resources["vm"] as ExpenseDetailsVM;
            expenseDetailsVM.Expense = expense;
        }
 /// <summary>
 /// Second Contructor
 /// </summary>
 /// <param name="expense"></param>
 public ExpenseDetailsPage(Expense expense)
 {
     InitializeComponent();
     //better to do this in xaml! using the bindingcontext attribute
     TheViewModel         = Resources["vm"] as ExpenseDetailsVM;
     TheViewModel.Expense = expense;
 }