'{DependencyProperty.UnsetValue}' is not a valid value for property 'FocusVisualStyle'

后端 未结 4 824
广开言路
广开言路 2021-01-11 09:36

I have a weird error I\'m trying to debug with no luck.

I have subclassed hwndhost showing some content, I have the following function in that class to set to fullsc

4条回答
  •  囚心锁ツ
    2021-01-11 09:44

    In case you got here by Googling the question title: Another way to cause this exception is to use a Trigger, but forget to set the Value.

    Example:

    
      
        
      
    
    

    This causes a XamlParseException where the inner exception reads:

    '{DependencyProperty.UnsetValue}' is not a valid value for property 'IsEnabled'.

    Correction:

    
      
        
      
    
    

提交回复
热议问题