Welcome to the WPF feedback portal. We’re happy you’re here! If you have feedback on how to improve the WPF, we’d love to hear it!

  • Check out the features or bugs others have reported and vote on your favorites. Feedback will be prioritized based on popularity.
  • If you have feedback that’s not listed yet, submit your own.

Thanks for joining our community and helping improve Syncfusion products!

1
Vote

"Object does not match target type exception" is occurred when binding the collection which has overridden property from base class. For example, refer the below code example,


Class A

{

      public virtual int Number { get;set;}

}

Class B :  A

{

    public override int Number { get;set; }

}

Class C : A

{

}



In ViewModel Collection same like as below,


ObservableCollection<A> collection = new ObservableCollection<A>();

collection.Add(new B() { Number  = 10 });