XAML Binding
Trying to bind an input from an input in our viewlayer, but it comes back as null and i'm a bit uncertain as to what's going wrong. Linking everything i think is important (first time asking here, and very new to coding)
Employee class:
namespace MATURIXSHIFTPROJECT.Models
{
public class Employee
{
public int EmployeeID { get; set; }
public string Initials { get; set; }
public string Name { get; set; }
public string PhoneNumber { get; set; }
public string Email { get; set; }
public Employee(int employeeID, string initals, string name, string phoneNumber, string email)
{
EmployeeID = employeeID;
Initials = initals;
Name = name;
PhoneNumber = phoneNumber;
Email = email;
}
public Employee()
{
}
}
}
9 Replies
$code
To post C# code type the following:
```cs
// code here
```
Get an example by typing
$codegif
in chat
For longer snippets, use: https://paste.mod.gg/$codegif
BlazeBin - cnvgvrhjrerb
A tool for sharing your source code with the world!
cs
BlazeBin - zgzvkizxrmam
A tool for sharing your source code with the world!
Sorry here is the wanted code format. I didn't know