Skip to content

[Docs] ZoomContentControl how-to references non-existent ZoomTo/ZoomToRect methods #1632

Description

@kazo0

Current behavior

doc/controls/walkthroughs/ZoomContentControl.howto.md ("Reset zoom programmatically") shows:

Zoomer.ZoomTo(1.0f);          // 100%
Zoomer.ZoomToRect(new Rect(0,0,500,300));

Neither ZoomTo(float) nor ZoomToRect(Rect) exists on ZoomContentControl — anyone following the walkthrough hits compile errors. The real programmatic surface is the ZoomLevel dependency property plus FitToCanvas() / CenterContent() / ResetViewport() / ResetZoom() / ResetScroll().

The same page also says placing content inside the control "enable[s] pinch-zoom and panning" — pinch is not part of the shipped control (that lands with #1630), so the wording oversells the current interactions.

Expected behavior

The walkthrough compiles against the actual API and describes the interactions the control actually has.

Metadata

Metadata

Assignees

No one assigned

    Labels

    control/zoom-content-controlkind/documentationCategorizes an issue or PR as relevant to 3rd party dependencies that are consumed by this project

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions