Hello Joseph Vecchio,
I couldn't understand whether you need to display the properties of the created in StackPanel1 button in StackPanel2 when you drop the image in the StackPanel1 or when you drop an image in StackPanel2. However, I modified the example to implement both of this scenarios.
So when you drop an image in StackPanel1:
- A RadButton control is created in StackPanel1;
- 3 TextBlock controls are created in StackPanel2 and their Text properties are set to appropriate titles;
- 3 TextBlocks are created in StackPanel4 and they are displaying the values of the Height, Width and IsEnabled properties of the RadButton.
Then when you drop an image into StackPanel2 the Text properties of the TextBlocks will change, displaying the values of the Height, Width and IsEnabled properties of the RadButton/s contained in StackPanel1.
Please, note that in order to display the Height, Width and IsEnabled properties of all RadButton controls created in StackPanel1, you should create as many TextBlocks in StackPanel2 as necessary. This is why in the example, I am adding new TextBlocks whenever a RadButton is created in StackPanel1. Then when an image is dropped into StackPanel2 I am iterating not only through all items dropped into StackPanel1, but also through the previously created TextBlocks in StackPanel2.
You should also keep in mind that if you don't set the Height and Width properties when you create the RadButton, their values will be unknown.
Please take a look at the project and let me know if this is what you had in mind.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items.