ContentTemplateSelector is only called one time showing always the same datatemplate

前端 未结 3 1361
予麋鹿
予麋鹿 2021-01-02 09:32

I have made a sample demo VS 2010 RC sample project, because in my production project I have the same error using MVVM.

In my sample demo project I use only Code-beh

3条回答
  •  无人及你
    2021-01-02 10:08

    I like Neil's solution (found on Josh's post via the link you provided):

    
        
        
            
                
            
            
                
            
        
    
    

    Edit: I couldn't actually get the above code to work, but this works using a style:

    
        
            
          
    
    

提交回复
热议问题