I have a desktop application for user registration. I need to put the data from the authorization window into an object of the DataUserRegOrAuth class.
Previously, I put the data from the authorization window into an object of the DataUserRegOrAuth class in this way:
dataUserAuthorization.Password = PasswordAuthorization.Password;
Now I want to use a binding. But my code doesn’t work.
Binding binding = new Binding();
binding.ElementName = DataUserRegOrAuth.dataUserAuthorization;
binding.Path = new PropertyPath(dataUserAuthorization.Login);
LoginAuthorization.SetBinding(System.Windows.Controls.TextBox.TextProperty, binding);
Here is a link to my project
New contributor
user28802476 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
2