Page 1 of 1

enable logger only after setting DataContext (avoid false-postive)

Posted: 11 May 2025, 12:31
by IdanB-Forsight
We're usign the SDK in native C++.
We work in MVVM design pattern, and currently, the ViewModel are created in a separate step, after the view is created.
When we first create the View, but before we assign it with the proper ViewModel instance,
the logger creates alot of "false-positive" for some "junk values" that exists, before this is assigned.

What are my options to avoid these false-positives logger entries ?

Re: enable logger only after setting DataContext (avoid false-postive)

Posted: 12 May 2025, 08:15
by IdanB-Forsight
I delayed the
Noesis::GUI::LoadComponent()
till after i set the data context, seems to solve it.

Re: enable logger only after setting DataContext (avoid false-postive)

Posted: 15 May 2025, 13:48
by IdanB-Forsight
getting in nested views binding errors now, not sure that is the proper solution.

Without setting binding manualy in code, how do i make sure that nested view doesn't "complain" about binding ?

Re: enable logger only after setting DataContext (avoid false-postive)

Posted: 21 May 2025, 10:20
by sfernandez
Let's talk about this issue in the ticket #4169 you opened.