This happens when your XAML class does not match your code-behind's class or if the base class doesn't inherit from UserControl, Window, or Page. For example, if you inherit from FrameworkElement, you will see the same error plus a lot more.
<FrameworkElement x:Class="APYDirectPaymentNewAdd"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
Public Class APYDirectPaymentNewAdd
Inherits Windows.FrameworkElement
After a lot of head scratching I remembered I had performed a manual merge on the project file during the check-in and realized the XAML files were now excluded from the project. I re-included them and everything worked correctly. Only some of them had been excluded which is why only a few pages showed this error.
No comments:
Post a Comment