Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/wpf/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
在wpf C#中为患者管理创建菜单_C#_Wpf_Menu - Fatal编程技术网

在wpf C#中为患者管理创建菜单

在wpf C#中为患者管理创建菜单,c#,wpf,menu,C#,Wpf,Menu,我在WPF C#的一个小项目“患者管理”中工作,我想为患者创建列表(如图左侧的列表)。 我不知道该用什么工具。 请帮忙。 多谢各位 在C#中,您在图片中显示的患者列表可以定义如下: public class PatientItem { public string FirstName { get; set; } public string LastName { get; set; } public string Gender { get; set; } public int Age

我在WPF C#的一个小项目“患者管理”中工作,我想为患者创建列表(如图左侧的列表)。 我不知道该用什么工具。 请帮忙。 多谢各位

在C#中,您在图片中显示的患者列表可以定义如下:

public class PatientItem
{
  public string FirstName { get; set; }
  public string LastName { get; set; }
  public string Gender { get; set; }
  public int Age { get; set; }
  public int VisitorId { get; set; }
  public string Diagnosis { get; set; }
  public string FileNamePicture { get; set; }
 }
患者名单定义为:

 List<PatientItem>
列表
下一步是定义布局XAML和C#

一个例子可以在

在该示例中,将TodoItem替换为PatientItem,并更改绑定和XAML,以从PatientItem而不是TodoItem更新布局

要绑定图片,有几个选项,例如,请参阅此处的答案