While implementing IScrollInfo
's MakeVisible
member, I ran into an issue. I need to get the coordinates of that Visual
's bounds relative to the panel which is being scrolled.
Now if this were a UIElement
, this would be easy as I'd just call its 'TranslatePoint' method, but UIElement
is a subclass of Visual
, not the other way around, so I can't necessarily count on that.
How would one go about achieving this?