71 writes to Y
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\Bezier.cs (1)
214
tanStart.
Y
= -tanEnd.Y;
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (1)
130
rad.
Y
= -rad.X;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
535
_himetricSize.
Y
= (double)sz;
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (1)
343
_accumulatingOffset.
Y
= endPoint.Y - startPoint.Y;
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (1)
241
_accumulatingVector.
Y
= endPoint.Y - startPoint.Y;
PresentationFramework (66)
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
163
_offset.
Y
= offset;
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (6)
1603
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
1679
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
3527
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
3568
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
3940
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftBeforeChange);
4005
offset.
Y
+= TextDpi.FromTextDpi(textDetails.dvrShiftAfterChange);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
2173
bestTranslation.
Y
= screenBounds.Bottom - childBounds.Height;
2177
bestTranslation.
Y
= screenBounds.Top;
2195
bestTranslation.
Y
= screenBounds.Bottom - childBounds.Height;
2199
bestTranslation.
Y
= screenBounds.Top;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
181
_scrollData._offset.
Y
= newValue;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (4)
252
childOffset.
Y
= (_numRows - 1 - activeRow) * _rowHeight;
255
childOffset.
Y
= (_numRows - activeRow) * _rowHeight;
294
childOffset.
Y
= 0d;
296
childOffset.
Y
+= _rowHeight;
src\Framework\System\Windows\Controls\Stack.cs (6)
232
_scrollData._offset.
Y
= scrollY;
282
newOffset.
Y
= ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
675
offset.
Y
= Math.Max(0, Math.Min(offset.Y, extent.Height - viewport.Height));
682
offset.
Y
= firstViewport;
915
newOffset.
Y
= minPhysicalOffset;
986
newOffset.
Y
= newFirstChild;
src\Framework\System\Windows\Controls\TextBlock.cs (2)
1536
lineOffset.
Y
+= lineMetrics.Height;
3223
contentOffset.
Y
+= padding.Top;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (37)
460
_scrollData._computedOffset.
Y
= startingOffset;
621
_scrollData._offset.
Y
= scrollY;
654
_scrollData._offset.
Y
= Math.Floor(_scrollData._offset.Y);
655
_scrollData._computedOffset.
Y
= Math.Floor(_scrollData._computedOffset.Y);
663
_scrollData._offset.
Y
= UIElement.RoundLayoutValue(_scrollData._offset.Y, dpi.DpiScaleY);
664
_scrollData._computedOffset.
Y
= UIElement.RoundLayoutValue(_scrollData._computedOffset.Y, dpi.DpiScaleY);
686
_scrollData._computedOffset.
Y
= startingOffset;
700
_scrollData._offset.
Y
= ScrollContentPresenter.CoerceOffset(scrollY, _scrollData._extent.Height, _scrollData._viewport.Height);
701
_scrollData._computedOffset.
Y
= _scrollData._offset.Y;
777
_scrollData._offset.
Y
+= expectedDistanceBetweenViewports;
954
_scrollData._computedOffset.
Y
= currFirstContainerOffset - currFirstContainerOffsetFromViewport;
955
_scrollData._offset.
Y
= _scrollData._computedOffset.Y;
996
_scrollData._computedOffset.
Y
= prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
1004
_scrollData._computedOffset.
Y
= actualOffset;
1005
_scrollData._offset.
Y
= actualOffset;
1010
_scrollData._offset.
Y
= expectedOffset;
1493
newOffset.
Y
= ScrollContentPresenter.CoerceOffset(newOffset.Y, _scrollData._extent.Height, _scrollData._viewport.Height);
2607
_scrollData._offset.
Y
+= delta;
9673
computedViewportOffset.
Y
= newOffset;
9674
offsetForScrollViewerRemeasure.
Y
= newOffset;
9982
viewportOffset.
Y
= Double.PositiveInfinity;
9999
viewportOffset.
Y
= (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height;
10037
viewportOffset.
Y
= (double)lastPageSafeOffset;
10076
viewportOffset.
Y
= Double.PositiveInfinity;
10099
viewportOffset.
Y
= Double.PositiveInfinity;
10131
viewportOffset.
Y
= Double.PositiveInfinity;
10151
viewportOffset.
Y
= (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height;
10160
viewportOffset.
Y
= Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
10663
viewportOffset.
Y
= Double.PositiveInfinity;
10678
viewportOffset.
Y
= _scrollData._offset.Y;
10698
viewportOffset.
Y
= Double.PositiveInfinity;
10711
viewportOffset.
Y
= _scrollData._offset.Y;
10736
viewportOffset.
Y
= (extentSize.Height * _scrollData._offset.Y) / _scrollData._extent.Height;
10745
viewportOffset.
Y
= Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.Y)) / _scrollData._extent.Height);
10761
viewportOffset.
Y
= (double)lastPageSafeOffset;
11066
newOffset.
Y
= minPhysicalOffset;
11117
newOffset.
Y
= newFirstChild;
src\Framework\System\Windows\FrameworkElement.cs (5)
4782
offset.
Y
+= finalRect.Y + margin.Top;
4788
offset.
Y
= UIElement.RoundLayoutValue(offset.Y, dpi.DpiScaleY);
4861
offset.
Y
= (clientSize.Height - inkSize.Height) * 0.5;
4865
offset.
Y
= clientSize.Height - inkSize.Height;
4869
offset.
Y
= 0;
232 references to Y
PresentationCore (47)
Core\CSharp\MS\Internal\AnimatedTypeHelpers.cs (1)
735
if (IsInvalidDouble(value.X) || IsInvalidDouble(value.
Y
))
Core\CSharp\MS\Internal\Ink\Bezier.cs (5)
58
points.Add(new Point(vector.X, vector.
Y
));
214
tanStart.Y = -tanEnd.
Y
;
531
points.Add(new Point(vector.X, vector.
Y
));
548
points.Add(new Point(Q[i].X, Q[i].
Y
));
562
points.Add(new Point(Q[3].X, Q[3].
Y
));
Core\CSharp\MS\Internal\Ink\ContourSegment.cs (1)
48
internal bool IsArc { get { return (_radius.X != 0) || (_radius.
Y
!= 0); } }
Core\CSharp\MS\Internal\Ink\CuspData.cs (2)
491
double rT = XY(0).
Y
;
498
UpdateMinMax(XY(i).
Y
, ref rT, ref rB);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (10)
129
double temp = rad.
Y
;
617
if (DoubleUtil.IsZero(spineVector.X) && DoubleUtil.IsZero(spineVector.
Y
))
625
radius = Math.Abs(nearest.
Y
);
627
else if (nearest.
Y
== 0)
719
double A = spine.X*spine.X + spine.
Y
*spine.
Y
- radDiff*radDiff;
720
double B = -2.0f*(hit.X*spine.X + hit.
Y
* spine.
Y
+ beginRadius*radDiff);
721
double C = hit.X * hit.X + hit.
Y
* hit.
Y
- beginRadius * beginRadius;
Core\CSharp\MS\Internal\Ink\Lasso.cs (3)
176
System.Diagnostics.Debug.Assert(lassoSegment.
Y
!= 0);
177
double x = prevLassoPoint.X + (lassoSegment.X / lassoSegment.
Y
) * (point.Y - prevLassoPoint.Y);
523
return (Math.Abs(vector.X) < MinDistance && Math.Abs(vector.
Y
) < MinDistance);
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations.cs (5)
219
if ((pressureDelta != 0) && (connection.X == 0) && (connection.
Y
== 0))
731
if ((DoubleUtil.IsZero(nextNode.X) && DoubleUtil.IsZero(nextNode.
Y
)) ||
752
double r = (Math.Abs(nextNode.X) < Math.Abs(nextNode.
Y
)) //DoubleUtil.IsZero(nextNode.X)
753
? (hitPoint.
Y
/ nextNode.
Y
)
Core\CSharp\MS\Internal\Ink\StrokeNodeOperations2.cs (1)
509
System.Diagnostics.Debug.Assert((false == DoubleUtil.IsZero(shortest.X)) || (false == DoubleUtil.IsZero(shortest.
Y
)));
Core\CSharp\MS\Internal\Media3D\GeneralTransform2Dto3Dto2D.cs (1)
771
double denom = (d.
Y
- d.X * dy / dx);
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (3)
105
behavior2D.InitialVelocityY = (float)behavior._initialVelocity.
Y
;
110
behavior2D.InitialVelocityY = (float)initialVelocity.
Y
;
119
behavior2D.DesiredExpansionY = (float)behavior._desiredExpansion.
Y
;
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (2)
100
behavior2D.InitialVelocityY = (float)behavior._initialVelocity.
Y
;
105
behavior2D.InitialVelocityY = (float)initialVelocity.
Y
;
Core\CSharp\System\Windows\Input\ManipulationLogic.cs (3)
195
new Vector(delta.TranslationX + add.Translation.X, delta.TranslationY + add.Translation.
Y
),
197
new Vector(delta.ScaleX * add.Scale.X, delta.ScaleY * add.Scale.
Y
),
198
new Vector(delta.ExpansionX + add.Expansion.X, delta.ExpansionY + add.Expansion.
Y
));
Core\CSharp\System\Windows\Media\Effects\ShaderEffect.cs (1)
945
newVal.g = (float)v.
Y
;
Core\CSharp\System\Windows\Media\MatrixStack.cs (1)
150
MatrixUtil.PrependOffset(ref _items[_size], offset.X, offset.
Y
);
Core\CSharp\System\Windows\Media\Visual.cs (6)
610
bboxSubgraph.Y += _offset.
Y
;
1144
bboxSubgraph.Y += _offset.
Y
;
1621
_offset.
Y
,
2248
m.Translate(_offset.X, _offset.
Y
); // Consider having a bit that indicates that we have a non-null offset.
2345
inv.Translate(-child._offset.X, -child._offset.
Y
);
4600
m.Translate(gAsVisual._offset.X, gAsVisual._offset.
Y
); // Consider having a bit that indicates that we have a non-null offset.
Core\CSharp\System\Windows\UIElement.cs (1)
1287
!DoubleUtil.AreClose(oldOffset.
Y
, finalRect.Y))
Shared\MS\Internal\PointUtil.cs (1)
164
m.Translate(offset.X, offset.
Y
);
PresentationFramework (169)
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
63
_layoutBox.Y += contentOffset.
Y
;
88
_layoutBox.Y += contentOffset.
Y
;
src\Framework\MS\Internal\Documents\ScrollData.cs (9)
37
SetVerticalOffset(owner, _offset.
Y
- ScrollViewer._scrollLineDelta);
45
SetVerticalOffset(owner, _offset.
Y
+ ScrollViewer._scrollLineDelta);
69
SetVerticalOffset(owner, _offset.
Y
- _viewport.Height);
77
SetVerticalOffset(owner, _offset.
Y
+ _viewport.Height);
101
SetVerticalOffset(owner, _offset.
Y
- ScrollViewer._mouseWheelDelta);
109
SetVerticalOffset(owner, _offset.
Y
+ ScrollViewer._mouseWheelDelta);
161
if (!DoubleUtil.AreClose(offset, _offset.
Y
))
191
Rect viewport = new Rect(_offset.X, _offset.
Y
, _viewport.Width, _viewport.Height);
364
return _offset.
Y
;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (8)
834
point.Y -= subpageParagraphResult.ContentOffset.
Y
;
1048
point.Y -= subpageParagraphResult.ContentOffset.
Y
;
1054
cellInfo.Adjust(new Point(subpageParagraphResult.ContentOffset.X, subpageParagraphResult.ContentOffset.
Y
));
1065
cellInfo.Adjust(new Point(figureParagraphResult.ContentOffset.X, figureParagraphResult.ContentOffset.
Y
));
1076
cellInfo.Adjust(new Point(floaterParagraphResult.ContentOffset.X, floaterParagraphResult.ContentOffset.
Y
));
1212
rect.Y += subpageParagraphResult.ContentOffset.
Y
;
3469
if (!DoubleUtil.IsZero(subpageOffset.X) || !DoubleUtil.IsZero(subpageOffset.
Y
))
3471
TranslateTransform translateTransform = new TranslateTransform(subpageOffset.X, subpageOffset.
Y
);
src\Framework\MS\Internal\Ink\LassoHelper.cs (1)
267
double x = prevLassoPoint.X + (lassoSegment.X / lassoSegment.
Y
) * (point.Y - prevLassoPoint.Y);
src\Framework\MS\Internal\Text\ComplexLine.cs (2)
209
UIElement.RoundLayoutValue(lineOffset.
Y
+ rect.Top, dpi.DpiScaleY));
213
proxyVisual.Offset = new Vector(lineOffset.X + rect.Left, lineOffset.
Y
+ rect.Top);
src\Framework\System\Windows\Controls\DataGridColumnFloatingHeader.cs (1)
150
visualBrush.Viewbox = new Rect(offset.X, offset.
Y
, width, height);
src\Framework\System\Windows\Controls\GridViewColumnHeader.cs (1)
887
visualBrush.Viewbox = new Rect(offsetVector.X, offsetVector.
Y
, FloatSourceHeader.ActualWidth, FloatSourceHeader.ActualHeight);
src\Framework\System\Windows\Controls\Primitives\Popup.cs (6)
2156
if (!IsTransparent || double.IsNaN(horizontalAxis.
Y
) || Math.Abs(horizontalAxis.
Y
) < Tolerance)
2202
else if (IsTransparent && Math.Abs(verticalAxis.
Y
) < Tolerance)
2217
int bestY = DoubleUtil.DoubleToInt(bestTranslation.
Y
);
2261
else if (IsTransparent && Math.Abs(verticalAxis.
Y
) < Tolerance)
2279
if (!IsTransparent || double.IsNaN(horizontalAxis.X) || Math.Abs(horizontalAxis.
Y
) < Tolerance)
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
333
scrollBar.UpdateValue(e.HorizontalChange + scrollBar._thumbOffset.X, e.VerticalChange + scrollBar._thumbOffset.
Y
);
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (3)
179
if (!DoubleUtil.AreClose(EnsureScrollData()._offset.
Y
, newValue))
303
get { return (IsScrollClient) ? EnsureScrollData()._computedOffset.
Y
: 0.0; }
850
CoerceOffset(_scrollData._offset.
Y
, _scrollData._extent.Height, _scrollData._viewport.Height));
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (1)
282
child.Arrange(new Rect(childOffset.X, childOffset.
Y
, cellSize.Width, cellSize.Height));
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (4)
71
get { return _offset.
Y
; }
87
get { return _offsetChange.
Y
; }
120
get { return _viewportChange.
Y
; }
153
get { return _extentChange.
Y
; }
src\Framework\System\Windows\Controls\ScrollViewer.cs (9)
1792
ManipulateScroll(e.DeltaManipulation.Translation.
Y
, e.CumulativeManipulation.Translation.
Y
, false);
1809
double unusedY = _panningInfo.UnusedTranslation.
Y
;
1832
double unused = (isHorizontal ? _panningInfo.UnusedTranslation.X : _panningInfo.UnusedTranslation.
Y
);
1878
_panningInfo.UnusedTranslation = new Vector(unused, _panningInfo.UnusedTranslation.
Y
);
1905
DoubleUtil.GreaterThanOrClose(Math.Abs(_panningInfo.UnusedTranslation.
Y
), PanningInfo.MaxInertiaBoundaryTranslation));
1925
bool validY = (DoubleUtil.GreaterThan(Math.Abs(translation.
Y
), PanningInfo.PrePanTranslation));
1935
bool biggerX = (DoubleUtil.GreaterThanOrClose(Math.Abs(translation.X), Math.Abs(translation.
Y
)));
1948
bool biggerY = (DoubleUtil.GreaterThanOrClose(Math.Abs(translation.
Y
), Math.Abs(translation.X)));
src\Framework\System\Windows\Controls\Stack.cs (9)
230
if (!DoubleUtil.AreClose(scrollY, _scrollData._offset.
Y
))
282
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.
Y
, _scrollData._extent.Height, _scrollData._viewport.Height);
467
return _scrollData._computedOffset.
Y
;
587
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.
Y
, children.Count) : 0;
675
offset.Y = Math.Max(0, Math.Min(offset.
Y
, extent.Height - viewport.Height));
744
rcChild.Y = -1.0 * scrollData.ComputedOffset.
Y
;
749
rcChild.Y = ComputePhysicalFromLogicalOffset(arrangeElement, scrollData.ComputedOffset.
Y
, false);
890
viewportOffset = _scrollData._computedOffset.
Y
;
942
firstChildInView = (int)_scrollData._computedOffset.
Y
;
src\Framework\System\Windows\Controls\TextBlock.cs (8)
1512
bool ellipsis = ParagraphEllipsisShownOnLine(i, lineOffset.
Y
- contentOffset.
Y
);
1602
Point lineOffset = new Point(contentOffset.X, contentOffset.
Y
);
1925
double yOffset = contentOffset.
Y
+ lineHeightOffset;
2155
Rect layoutBox = new Rect(contentOffset.X + lineMetrics.Start, contentOffset.
Y
+ lineOffset, lineMetrics.Width, lineMetrics.Height);
2227
lineVOffset -= contentOffset.
Y
;
2327
rect.Y += contentOffset.
Y
+ lineOffset;
2424
IList<Rect> aryTextBounds = line.GetRangeBounds(dcpStart, dcpEnd - dcpStart, contentOffset.X, contentOffset.
Y
+ lineOffset);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (99)
616
if (!DoubleUtil.AreClose(scrollY, _scrollData._offset.
Y
))
630
_scrollData.SetVerticalScrollType(oldViewportOffset.
Y
, scrollY);
641
double delta = Math.Abs(scrollY - oldViewportOffset.
Y
);
654
_scrollData._offset.Y = Math.Floor(_scrollData._offset.
Y
);
655
_scrollData._computedOffset.Y = Math.Floor(_scrollData._computedOffset.
Y
);
663
_scrollData._offset.Y = UIElement.RoundLayoutValue(_scrollData._offset.
Y
, dpi.DpiScaleY);
664
_scrollData._computedOffset.Y = UIElement.RoundLayoutValue(_scrollData._computedOffset.
Y
, dpi.DpiScaleY);
701
_scrollData._computedOffset.Y = _scrollData._offset.
Y
;
753
double expectedDistanceBetweenViewports = (isHorizontal ? _scrollData._offset.X - _scrollData._computedOffset.X : _scrollData._offset.
Y
- _scrollData._computedOffset.
Y
);
938
success = DoubleUtil.GreaterThanOrClose(_scrollData._computedOffset.
Y
,
955
_scrollData._offset.Y = _scrollData._computedOffset.
Y
;
998
actualOffset = _scrollData._computedOffset.
Y
+ actualDistanceBetweenViewports;
999
expectedOffset = _scrollData._computedOffset.
Y
+ _scrollData._expectedDistanceBetweenViewports;
1493
newOffset.Y = ScrollContentPresenter.CoerceOffset(newOffset.
Y
, _scrollData._extent.Height, _scrollData._viewport.Height);
1496
!LayoutDoubleUtil.AreClose(newOffset.
Y
, _scrollData._offset.
Y
))
1523
_scrollData.SetVerticalScrollType(oldOffset.
Y
, newOffset.
Y
);
1884
return _scrollData._computedOffset.
Y
;
4255
offsetY = _scrollData._offset.
Y
;
8279
rcChild.Y = -1.0 * _scrollData._computedOffset.
Y
;
8291
rcChild.Y = -1.0 * _scrollData._computedOffset.
Y
;
9577
stackPixelSize.Height = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.
Y
, 0) ?
9622
: (!DoubleUtil.AreClose(computedViewportOffset.
Y
, _scrollData._offset.
Y
) ||
9623
(IsScrollActive && computedViewportOffset.
Y
> 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.
Y
, _scrollData.Extent.Height-_scrollData.Viewport.Height)));
9625
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.
Y
, _scrollData._offset.
Y
) ||
9626
(IsScrollActive && computedViewportOffset.
Y
> 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.
Y
, _scrollData.Extent.Height-_scrollData.Viewport.Height)))
9670
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
Y
, newOffset))
9672
double delta = newOffset - computedViewportOffset.
Y
;
9969
( DoubleUtil.GreaterThan(computedViewportOffset.
Y
, 0.0) &&
9970
DoubleUtil.GreaterThan(computedViewportOffset.
Y
, extentSize.Height - viewportSize.Height)))
9976
"off:", computedViewportOffset.
Y
,
9996
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
Y
/extentSize.Height, _scrollData._offset.
Y
/_scrollData._extent.Height))
9999
viewportOffset.Y = (extentSize.Height * _scrollData._offset.
Y
) / _scrollData._extent.Height;
10006
"expRat:", _scrollData._offset.
Y
, _scrollData._extent.Height, (_scrollData._offset.
Y
/_scrollData._extent.Height),
10007
"actRat:", computedViewportOffset.
Y
, extentSize.Height, (computedViewportOffset.
Y
/extentSize.Height),
10008
"newOff:", viewportOffset.
Y
);
10023
else if (WasOffsetPreviouslyMeasured(previouslyMeasuredOffsets, computedViewportOffset.
Y
))
10029
if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.
Y
))
10034
viewportOffset.
Y
, lastPageSafeOffset);
10057
if (!lastPageSafeOffset.HasValue || computedViewportOffset.
Y
< (double)lastPageSafeOffset)
10059
lastPageSafeOffset = computedViewportOffset.
Y
;
10070
"off:", computedViewportOffset.
Y
, lastPageSafeOffset,
10079
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10093
"off:", computedViewportOffset.
Y
,
10100
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10119
( DoubleUtil.GreaterThan(computedViewportOffset.
Y
, 0.0) &&
10120
DoubleUtil.GreaterThan(computedViewportOffset.
Y
, extentSize.Height - viewportSize.Height)))
10125
"off:", computedViewportOffset.
Y
,
10133
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10148
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
Y
/extentSize.Height, _scrollData._offset.
Y
/_scrollData._extent.Height))
10151
viewportOffset.Y = (extentSize.Height * _scrollData._offset.
Y
) / _scrollData._extent.Height;
10152
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10157
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.
Y
)/extentSize.Height, Math.Floor(_scrollData._offset.
Y
)/_scrollData._extent.Height))
10160
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.
Y
)) / _scrollData._extent.Height);
10167
"expRat:", _scrollData._offset.
Y
, _scrollData._extent.Height, (_scrollData._offset.
Y
/_scrollData._extent.Height),
10168
"actRat:", computedViewportOffset.
Y
, extentSize.Height, (computedViewportOffset.
Y
/extentSize.Height),
10169
"newOff:", viewportOffset.
Y
);
10429
stackPixelSize.Height = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.
Y
, 0) ?
10638
allowRemeasure = !WasOffsetPreviouslyMeasured(previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10642
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.
Y
, _scrollData._offset.
Y
);
10657
lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.
Y
, (double)lastPageSafeOffset) : computedViewportOffset.
Y
;
10666
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10678
viewportOffset.Y = _scrollData._offset.
Y
;
10679
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10694
if (DoubleUtil.GreaterThan(computedViewportOffset.
Y
, 0.0) &&
10695
DoubleUtil.GreaterThan(computedViewportOffset.
Y
, extentSize.Height - viewportSize.Height))
10699
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10711
viewportOffset.Y = _scrollData._offset.
Y
;
10712
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10725
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.
Y
, _scrollData._computedOffset.
Y
));
10733
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
Y
/extentSize.Height, _scrollData._offset.
Y
/_scrollData._extent.Height))
10736
viewportOffset.Y = (extentSize.Height * _scrollData._offset.
Y
) / _scrollData._extent.Height;
10737
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10742
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.
Y
)/extentSize.Height, Math.Floor(_scrollData._offset.
Y
)/_scrollData._extent.Height))
10745
viewportOffset.Y = Math.Floor((extentSize.Height * Math.Floor(_scrollData._offset.
Y
)) / _scrollData._extent.Height);
10746
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
Y
);
10759
if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.
Y
))
11032
viewportOffset = _scrollData._computedOffset.
Y
;
11087
firstChildInView = (int)_scrollData._computedOffset.
Y
;
11641
_offset.
Y
== 0.0 &&
12799
writer.Write(vector.
Y
);
src\Framework\System\Windows\FrameworkElement.cs (5)
4788
offset.Y = UIElement.RoundLayoutValue(offset.
Y
, dpi.DpiScaleY);
4965
-offset.
Y
+ inkRectTransformed.Y,
5011
-offset.
Y
+ inkRectTransformed.Y,
5285
!DoubleUtil.AreClose(oldOffset.
Y
, offset.
Y
))
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FreeFormPanelUtilities.cs (1)
23
return dir.X < dir.
Y
;
System.Activities.Presentation (7)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorPointsToSegmentsConverter.cs (2)
43
double crossProductZ = firstSegmentPointingVector.X * secondSegmentPointingVector.
Y
- firstSegmentPointingVector.
Y
* secondSegmentPointingVector.X;
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (3)
113
vec.
Y
.IsEqualTo(0) ? 0 : Math.Sign(vec.
Y
)
952
int steps = (int)Math.Max(Math.Abs(sub.X / margin.Width), Math.Abs(sub.
Y
/ margin.Height)); //one of the values will be null
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (1)
171
this.scrollViewer.ScrollToVerticalOffset(this.scrollViewer.VerticalOffset - offset.
Y
);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
760
Math.Abs(difference.
Y
) > SystemParameters.MinimumVerticalDragDistance)
WindowsBase (8)
Base\System\Windows\Generated\Vector.cs (5)
65
vector1.
Y
== vector2.
Y
;
98
vector1.
Y
.Equals(vector2.
Y
);
148
Y
.GetHashCode();
Base\System\Windows\Rect.cs (1)
627
rect.Offset(offsetVector.X, offsetVector.
Y
);
Shared\MS\Internal\DoubleUtil.cs (2)
221
DoubleUtil.AreClose(vector1.
Y
, vector2.
Y
);