Wpf ICollectionView Binding item cannot resolve property of type object

前端 未结 3 1400
孤城傲影
孤城傲影 2021-02-19 15:00

I have bound a GridView with an ICollectionView in the XAML designer the properties are not known because the entity in the CollectionView

3条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-19 15:47

    The warnings that Resharper is giving you in the XAML view is because the design-time view of the control does not know what type it's data-context is. You can use a d:DesignInstance to help with your bindings.

    Add the following (replacing Assembly/Namespace/Binding Target names appropriately)

    
    

提交回复
热议问题