0

我将 UIElement 作为控件传递,然后调用 SetValue,我想知道如何将第一个参数作为控件类型从 UIElement 传递,而不是硬编码,如下所示的 ListBox

Control As UIElement
Control.SetValue(ListBox.DisplayMemberPathProperty, ControlBinding.DataFieldName)
4

1 回答 1

1

而不是 ListBox 使用 ItemsControl.DisplayMemberPathProperty

于 2018-09-17T07:49:23.773 回答