0
当我从一个窗口中分离出有界的(由ItemsSource属性)datagrid并将其附加到另一个窗口时,datagrid中的项目不会呈现。从一个窗口到另一个窗口分离/附加WPF数据网格导致项目不被渲染
window1.Content = null; //before this, my datagrid is displayed without problems
window2.Content = myDataGrid; //now I only see the column headers
我已经打过电话UpdateLayout请在窗口和两个数据网格,我已经试过测量/安排。我不确定问题是什么。任何想法,为什么这是?提前致谢。