forum

Home / DeveloperSection / Forums / How to change a value of UIElement?

How to change a value of UIElement?

Anonymous User167523-Sep-2013

I have a WPF application and Canvas in there. In Canvas I have a Rectangle. How can I change his properties, like Height or Width while program is already processing? Something like:

int index = 0;

var childByIndex = canvas.Children[index];

childByIndex.SetValue(Height, 15);


Updated on 23-Sep-2013
I am a content writter !

Can you answer this question?


Answer

1 Answers

Liked By