Answer the question
In order to leave comments, you need to log in
How to create buttons associated with objects?
Hello, I have such a question, I am writing a small software for working with monitors, and I want to do something that would be beautiful) I want to create a toggleButton for each monitor with a picture of the monitor and select the monitor for which to change the parameters, and list them. but I don’t know how to do it humanly ... Tell me. I plan to wrap all this in Expander and hang the creation of buttons on the opening event
Answer the question
In order to leave comments, you need to log in
Start at https://msdn.microsoft.com/en-us/magazine/dd419663.aspx .
After reading the article, you should come to the conclusion that the main thing is a) to build the correct ViewModel; b) write down the correct bindings. Not the fact that it will be possible to do without generating controls from the code. But even in this case, the content of the article should be applicable.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question