綁定我在WPF組合框是這樣的:WPF與組合框
combobox.ItemsSource = await clientelocal.ObtenerVariablesAsync();
combobox.DisplayMemberPath = "Nombre";
在DisplayMemberPath
我想有兩個字段,是這樣的:
combobox.ItemsSource = await clientelocal.ObtenerVariablesAsync();
combobox.DisplayMemberPath = "ID + Nombre";
但不知道如何做到這一點,任何想法?
感謝的人,它的工作原理 – user3042410