Provide value on 'System.Windows.Markup.StaticResourceHolder' threw an exception

前端 未结 5 1501
清歌不尽
清歌不尽 2020-12-09 15:26

I am using http://blogs.microsoft.co.il/blogs/justguy/archive/2009/01/19/wpf-combobox-with-checkboxes-as-items-it-will-even-update-on-the-fly.aspx?CommentPosted=true#comment

5条回答
  •  不思量自难忘°
    2020-12-09 15:51

    I had stumbled upon this exact problem. There is a problem with the XAML file. SolidBorderBrush is missing from the XAML. By adding it, the sample works fine.

    
    

    Bellow follows the complete contents of the XAML file.

    
    
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                
            
        
    
        
    
        
            
                
                    
                    
                
            
        
    
        
            
                
                    
                    
                    
                    
                
            
        
    
        
    
        
    
        
    
        
    
        
    
        
            
                
                    
                    
                
                
                
                
            
            
                
                    
                
                
                    
                
                
                    
                    
                    
                    
                
            
        
    
        
            
        
    
        
    
    
    
        
            
                
            
        
    
        
            
                
                    
                    
                    
                        
                            
                        
                    
                    
                    
                        
                            
                            
                                
                            
                        
                    
                
                
                    
                        
                    
                    
                        
                    
                    
                        
                    
                    
                        
                        
                    
                    
                        
                        
                        
                    
                
            
        
    
    

提交回复
热议问题