Bind Grid.Row / Grid.Column inside a DataTemplate

后端 未结 1 920
隐瞒了意图╮
隐瞒了意图╮ 2020-12-05 11:37

Hope this is not a dupe.

I would like to be able to do the following in XAML:

        
            


        
1条回答
  •  眼角桃花
    2020-12-05 11:52

    Solved it myself with help from the blogs.

    As far as I understand you simply can't do the attached property binding inside.

    The following solves the problem in an instant (ItemContainerStyle!):

    
            
                
                    
                
                
                    
                        
                            
                                
                                                            
                            
                            
                                
                                
                                                    
                        
                    
                
            
    
    

    0 讨论(0)
提交回复
热议问题