I am new to WPF and have stuck in a problem where I cannot get the size of a Button (a callout style applied to it). The button is added to the children collection of a Canvas.
What I am trying to do is to position the button relative to another uielement on the canvas. The button I want to have size of can have dynamic size and so I have to have the size to properly position it.
But no matter what property I use of button it's not giving the size. ActualWidth/Height, DesieredSize and RenderSize, Width and Height all give either 0,0 or NaN.
View Complete Post