voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

StackOverflow exception when setting DataContext in UserControl's constructor.

02 Mar 2023, 12:29

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.
 
User avatar
jsantos
Site Admin
Posts: 4829
Joined: 20 Jan 2012, 17:18
Contact:

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

02 Mar 2023, 13:28

Yes, please, file a ticket about this. Thank you!
 
voula_d
Topic Author
Posts: 21
Joined: 16 Feb 2023, 17:40

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

02 Mar 2023, 15:32

Who is online

Users browsing this forum: No registered users and 6 guests