WPF: How do I access the rendered dimensions of a Path in XAML?

You can bind to the Path's ActualWidth and ActualHeight like below {Binding ElementName=MyPath, Path=ActualHeight} HTH.

You can bind to the Path's ActualWidth and ActualHeight like below "{Binding ElementName=MyPath, Path=ActualHeight}" HTH.

This doesn't actually work. The ActualHeight property of the Path seems to be the pre-scaled height, before the Viewbox expands it. – Christopher Currie Sep 15 '10 at 18:36.

I'd like to then make this shape's width (or height) stretch to its container's dimensions. In other words, how can I make the path's width conform to its parent. But that doesn't work.

It works with a rectangle but not with a path, so how can I do it with a path?

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions