DesignTime data not showing in Blend when bound against CollectionViewSource

后端 未结 3 1008
名媛妹妹
名媛妹妹 2021-02-07 09:55

I have a datatemplate for a viewmodel where an itemscontrol is bound against a CollectionViewSource (to enable sorting in xaml).



        
3条回答
  •  伪装坚强ぢ
    2021-02-07 11:00

    Been there done that (now at least) :)

    This is the solution I've found. The trick is to override the source for the CollectionViewSource designtime. I use the d:DesignSource property to use another static resource designtime:

    
        
            
        
    
    
    
    
    
    
    

提交回复
热议问题