Ignoring an error in Visual Studio?


  • I have build a custom RoutedEvent and a custom FireRoutedEventAction.. however when i use the following xaml,
      <gti:FireRoutedEventAction RoutedEvent="ap:GtUserInterface.ContentResize"/>

    i got this error :Attachable event 'GtUserInterface.ContentResize' cannot be attached to objects of type 'RoutedEvent'. which i can run perfectly fine but the designer is not showing my visual design because of this error... 

    Expression Blend renders fine.

    is there anyway i can ignore this error?

    • Moved by Sheldon _Xiao Friday, July 08, 2011 6:02 AM (From:Windows Presentation Foundation (WPF))
    Wednesday, July 06, 2011 2:29 PM

All replies

  • Hey ICube, I hope you're doing great.

    The answer is NO, unfortunately. The whole XAML document must be interpreted with no problems in order to be shown in VS designer.

    Please, mark my reply as "Answer" if it helped.

    Ahmed M. Gamil
    Wednesday, July 06, 2011 3:50 PM
  • can u suggest a workaround? write the following code in code behind?

    it is just bad user experience being not able to see the designer in Visual Studio!

    Thursday, July 07, 2011 4:32 PM
  • Hi icube,

    I will move your thread to Designer forum to get better responses, thank you for your understanding.


    Best regards,

    Sheldon _Xiao[MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Friday, July 08, 2011 6:01 AM