Implemented propertychanged pattern to connect UI with entity
This commit is contained in:
@ -66,6 +66,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\AdventureWorks.EntityLayer\AdventureWorks.EntityLayer.csproj" />
|
||||
<ProjectReference Include="..\Common.Library\Common.Library.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
@ -8,10 +8,20 @@ public partial class UserDetailView : ContentPage
|
||||
{
|
||||
InitializeComponent();
|
||||
UserObject = (User)this.Resources["viewModel"];
|
||||
UserObject.LoginId = "jkzxck0q94375";
|
||||
}
|
||||
|
||||
public User UserObject { get; set; }
|
||||
|
||||
protected override void OnAppearing()
|
||||
{
|
||||
base.OnAppearing();
|
||||
|
||||
UserObject.LoginId = "PeterPiper384";
|
||||
UserObject.FirstName = "Peter";
|
||||
UserObject.LastName = "Piper";
|
||||
UserObject.Email = "peter@piper.com";
|
||||
}
|
||||
private void SaveButton_Clicked(object sender, EventArgs e)
|
||||
{
|
||||
System.Diagnostics.Debugger.Break();
|
||||
|
||||
Reference in New Issue
Block a user