I found sliverlight have strange Problem. I already remove the themes/generic.xaml ,but it still throw this error.
I don't know what is problem. I search this problem in google, but I don't find any resources about this error.
I think that my controls the xaml syntax may be have problem. so I remove the control one by one. however , I have still happen , I become grief.
the Last I take a look the app.xaml ,I found the app.xaml have a style in the xaml .
the xaml is here:
<ResourceDictionary.MergedDictionaries>
<ResourceDictionary Source="Themes/generic.xaml"/>
</ResourceDictionary.MergedDictionaries>
I comment it ,the problem fix at once. I am so happy. this code is ms auto general when I create the themes/genericl.xal. but I remove it , the ms don't detect this action,so it don't remove this style in app.xaml.