I'm a little confused with how ActualWidth
or ActualHeight
works or how it gets calculated.
<Ellipse Height="30" Width="30" Name="rightHand" Visibility="Collapsed">
<Ellipse.Fill>
<ImageBrush ImageSource="Images/Hand.png" />
</Ellipse.Fill>
</Ellipse>
When I use the above code, I get 30 for ActualWidth
and ActualHeight
. but when I programmatically define an Ellipse, the ActualWidth
and ActualHeight
are 0, even if I define the (max)height and (max)width attribute - I don't understand how it can be 0?