XAML parse Exception: Attribute {StaticResource PhoneAccentBrush} value is out of range

后端 未结 1 1493
离开以前
离开以前 2021-01-17 02:30

I have a problem with an Exception, couldn\'t find the answer on how to fix it. Attribute {StaticResource PhoneAccentBrush} value is out of range.

System.Win         


        
1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-17 02:50

    The problem is in this line:

    
    

    You are trying to set a brush resource value to a style, which is what is causing the exception. You could try changing the XAML to:

    
    

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