Edytuj

Udostępnij za pośrednictwem


UIScrollView.PagingEnabled Property

Definition

If true then scrolling will stop on paging boundaries of the content view; scrolling occurs a page at a time.

[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public virtual bool PagingEnabled { [Foundation.Export("isPagingEnabled")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] get; [Foundation.Export("setPagingEnabled:")] [ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)] set; }
member this.PagingEnabled : bool with get, set

Property Value

Attributes

Remarks

The default value is false.

The following image, from the "Page Control" demo in the "iOS Standard Controls" sample, shows the application in the middle of a swiping animation; portions of both the white and gray subviews are visible. If PagingEnabled were left to the default false value, if the application user's finger was lifted at this point, the scrolling would stop with both views partially visible. If it were true, the closest view would "snap" into alignment (in this case, the white view).

Applies to

See also