Behavior that restricts an overlay's coordinates to a certain region. More...
Static Public Member Functions | |
| static Thickness | GetRestrictedFringe (ImageOverlay overlay) |
| Gets the RestrictedFringe property from the given overlay . | |
| static void | SetRestrictedFringe (ImageOverlay overlay, Thickness value) |
| Sets the RestrictedFringe property to the given overlay . | |
| static WinRect | GetEffectiveRect (ImageOverlay overlay) |
| Gets the effective coordinate rect based on the displayed image size and its restricted fringe. | |
| static void | SetRestrictedFringeBasedOnOverlay (ImageOverlay overlayToRestrict, ImageOverlay boundsOverlay, bool relative=true) |
| Restricts overlayToRestrict to the rectangle of boundsOverlay . | |
Static Public Attributes | |
| static readonly DependencyProperty | RestrictedFringeProperty |
Attached RestrictedFringe property. | |
Behavior that restricts an overlay's coordinates to a certain region.
Attention: Drag/resize implementation still needs to check this property as otherwise exceptions are thrown (the MovableImageOverlay behavior handles this.).
|
static |
Gets the effective coordinate rect based on the displayed image size and its restricted fringe.
| overlay | Overlay to query |
|
static |
Gets the RestrictedFringe property from the given overlay .
| overlay | Overlay to get the property from. |
Thickness as seen from the borders of the overlayed image.
|
static |
Sets the RestrictedFringe property to the given overlay .
Setting a non-0 fringe will restrict the overlay 's coordinate properties.
| overlay | Overlay to set the property on. |
| value | Fringe as Thickness as seen from the borders of the overlayed image. |
|
static |
Restricts overlayToRestrict to the rectangle of boundsOverlay .
The fringe is not auto-updated: thus if boundsOverlay changes size or location the fringe needs to be updated.
| overlayToRestrict | Overlay to set the fringe to. |
| boundsOverlay | Overlay that functions as the allowed region. |
| relative | true if overlayToRestrict is inside a OverlayCanvas of another overlay; false for unrelated overlays. |