According to this msdn article a UserControl
isn't finally rendered when the Loaded
event is raised.
You could use the SizeChanged
event of the UserControl
or Border
instances, but that would mean to recalculate the value several times as the sizes will change during measuring and rendering the UserControl
.