Replies: 4 comments 6 replies
-
You're debugging the correct method, so every data that bubbles up to the root ViewLocator (not handled by other If that's not sufficient, then I suggest adding some logging (even if it's just |
Beta Was this translation helpful? Give feedback.
-
You may want to check Avalonia.Samples to learn more about DataTemplates, which the ViewLocator is in the end. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Thank you again for your help. I have looked at the source code and have a better understanding of the Data Templates in the documentation, but I still cannot find the reason. Possible reason: Styles, but I have explicitly added the third-party library's Style file, but I have excluded it; However, with almost identical code, I changed the files related to the ViewModelt and Views, and the effect improved again. I know the path is incorrect, and ViewLocator may not match correctly, but my current situation is that the incorrect path prevents ViewLocator from being entered at all. |
Beta Was this translation helpful? Give feedback.
-
Hello, is there anyone who can guide you on how to troubleshoot when ViewLocator is not working? Debug found that only some controls are triggered, while others that are needed are not
Beta Was this translation helpful? Give feedback.
All reactions