Triggers collection members must be of type EventTrigger

前端 未结 4 1324
一生所求
一生所求 2020-12-16 10:24

I\'ve created a UserControl, similar to the following:


    

        

        
4条回答
  •  一个人的身影
    2020-12-16 10:55

    Managed to figure it out. Forgot that DataTriggers are meant for Style, ControlTemplate and DataTemplate per the MSDN Docs.

    Solution was to use an EventTrigger as the error message indicated. My solution was the following:

    
        
            
                
                    
                
            
        
    
    
        
            
                
                    
                
            
        
     
    

    Going to hold off marking this as the answer in case someone else has another solution.

提交回复
热议问题