20 references to SnapPointsAlignment
Microsoft.Maui.Controls (7)
Items\CarouselView.cs (1)
229
SnapPointsAlignment =
SnapPointsAlignment
.Center
Items\ItemsLayout.cs (4)
17
BindableProperty.Create(nameof(SnapPointsAlignment), typeof(
SnapPointsAlignment
), typeof(ItemsLayout),
18
SnapPointsAlignment
.Start);
21
public
SnapPointsAlignment
SnapPointsAlignment
23
get => (
SnapPointsAlignment
)GetValue(SnapPointsAlignmentProperty);
Items\LinearItemsLayout.cs (2)
23
SnapPointsAlignment =
SnapPointsAlignment
.Center
29
SnapPointsAlignment =
SnapPointsAlignment
.Center
Microsoft.Maui.Controls.Compatibility (13)
iOS\CollectionView\ItemsViewLayout.cs (2)
274
var
alignment = _itemsLayout.SnapPointsAlignment;
323
CGPoint ScrollSingle(
SnapPointsAlignment
alignment, CGPoint proposedContentOffset, CGPoint scrollingVelocity)
iOS\CollectionView\SnapHelpers.cs (11)
11
CGRect viewport,
SnapPointsAlignment
alignment, UICollectionViewScrollDirection scrollDirection)
17
public static CGPoint FindAlignmentTarget(
SnapPointsAlignment
snapPointsAlignment,
89
static nfloat FindAlignmentTarget(
SnapPointsAlignment
snapPointsAlignment, nfloat start, nfloat startInset,
94
case
SnapPointsAlignment
.Center:
101
case
SnapPointsAlignment
.End:
104
case
SnapPointsAlignment
.Start:
110
static CGPoint GetViewportOffset(CGRect itemFrame, CGRect viewport,
SnapPointsAlignment
snapPointsAlignment,
115
if (snapPointsAlignment ==
SnapPointsAlignment
.Start)
120
if (snapPointsAlignment ==
SnapPointsAlignment
.End)
131
if (snapPointsAlignment ==
SnapPointsAlignment
.Start)
136
if (snapPointsAlignment ==
SnapPointsAlignment
.End)