질문하기질문하기
 

질문How to debug XamlParseException in WPF?

  • 2009년 3월 2일 월요일 오후 1:53narmishaba 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hi,

      I am getting XamlParseException for one of my xamls which reads somethign like this. This xaml is for Usercontrol.

    "Cannot assign root instance of type <class name of xaml.cs> to <class name of xaml.cs>". And it is showing error occured at Line 0 and Position 0.

    I looked at the Debug -> Output window to find some more exceptions but unfortunately I couldn't found any other than the XamlParseException.

    Can someone please help me in figuring out the exact issue?

    Thanks,
    shaba.

모든 응답

  • 2009년 5월 7일 목요일 오후 1:17Dieterdp 사용자 메달사용자 메달사용자 메달사용자 메달사용자 메달
     
    Hello

    try to put a try/catch around the this.InitializeComponent(); in ctor in the of your form.
     
              
    kind regards
    D.