This step shows how to override the SimpleAbstractNodeStyle<TVisual>.GetBounds() method.
Also, GetOutline() is implemented, so implementations of GetIntersection(), IsInside() and IsHit() aren't necessary any more.

Sample Files:

View Source

How to run this sample

  • If you have installed the yFiles for Silverlight programming samples, just run "06 GetBounds" in the "02 Custom Styles" solution (also available as a start menu entry). Otherwise, please install the yFiles for Silverlight programming samples from the start menu.