constantine
constantine
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
You see now? It looks for the Placeholder property in the TextboxPlaceholder class, not in the view model. This means that data context is not set properly. Try to put a breakpoint at the constructor of the TextboxPlaceholder. Does it been called? Also it could be helpful if you share your solution on GitHub or somewhere, the devil may hide in other details.
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
Did you try to run “clean solution”?
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
When are you getting the mentioned error message? Upon the compilation? Because usually even if there are binding issues, it still compiles and runs.
18 replies
CC#
Created by quantum on 7/10/2024 in #help
WPF TextBlock Text binding
Try to make your view model class public
18 replies