Page 1 of 1

StackOverflow exception when setting DataContext in UserControl's constructor.

Posted: 02 Mar 2023, 12:29
by voula_d
I am getting a stack overflow exception when trying to set a DataContext in the constructor of a custom UserControl that derives from TextBox. Setting the DataContext in the Loaded event works and does not produce the same error. Please let me know if I should post a ticket in the BugTracker for this with code to reproduce it.
Thank you.

Re: StackOverflow exception when setting DataContext in UserControl's constructor.

Posted: 02 Mar 2023, 13:28
by jsantos
Yes, please, file a ticket about this. Thank you!

Re: StackOverflow exception when setting DataContext in UserControl's constructor.

Posted: 02 Mar 2023, 15:32
by voula_d