65 writes to X
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\Bezier.cs (1)
213
tanStart.
X
= -tanEnd.X;
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (1)
131
rad.
X
= temp;
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (1)
532
_himetricSize.
X
= (double)sz;
Core\CSharp\System\Windows\Media\Animation\MatrixAnimationUsingPath.cs (1)
342
_accumulatingOffset.
X
= endPoint.X - startPoint.X;
Core\CSharp\System\Windows\Media\Animation\PointAnimationUsingPath.cs (1)
240
_accumulatingVector.
X
= endPoint.X - startPoint.X;
PresentationFramework (59)
src\Framework\MS\Internal\Documents\ScrollData.cs (1)
141
_offset.
X
= offset;
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
2161
bestTranslation.
X
= screenBounds.Right - childBounds.Width;
2165
bestTranslation.
X
= screenBounds.Left;
2206
bestTranslation.
X
= screenBounds.Right - childBounds.Width;
2210
bestTranslation.
X
= screenBounds.Left;
src\Framework\System\Windows\Controls\Primitives\ScrollContentPresenter.cs (1)
164
_scrollData._offset.
X
= newValue;
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
289
childOffset.
X
+= cellSize.Width;
298
childOffset.
X
= 0d;
src\Framework\System\Windows\Controls\Stack.cs (6)
218
_scrollData._offset.
X
= scrollX;
281
newOffset.
X
= ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
674
offset.
X
= firstViewport;
683
offset.
X
= Math.Max(0, Math.Min(offset.X, extent.Width - viewport.Width));
921
newOffset.
X
= minPhysicalOffset;
980
newOffset.
X
= newFirstChild;
src\Framework\System\Windows\Controls\TextBlock.cs (3)
3212
contentOffset.
X
= contentSize.Width - wrappingWidth;
3216
contentOffset.
X
= (contentSize.Width - wrappingWidth) / 2;
3222
contentOffset.
X
+= padding.Left;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (37)
456
_scrollData._computedOffset.
X
= startingOffset;
495
_scrollData._offset.
X
= scrollX;
528
_scrollData._offset.
X
= Math.Floor(_scrollData._offset.X);
529
_scrollData._computedOffset.
X
= Math.Floor(_scrollData._computedOffset.X);
537
_scrollData._offset.
X
= UIElement.RoundLayoutValue(_scrollData._offset.X, dpi.DpiScaleX);
538
_scrollData._computedOffset.
X
= UIElement.RoundLayoutValue(_scrollData._computedOffset.X, dpi.DpiScaleX);
560
_scrollData._computedOffset.
X
= startingOffset;
574
_scrollData._offset.
X
= ScrollContentPresenter.CoerceOffset(scrollX, _scrollData._extent.Width, _scrollData._viewport.Width);
575
_scrollData._computedOffset.
X
= _scrollData._offset.X;
773
_scrollData._offset.
X
+= expectedDistanceBetweenViewports;
949
_scrollData._computedOffset.
X
= currFirstContainerOffset - currFirstContainerOffsetFromViewport;
950
_scrollData._offset.
X
= _scrollData._computedOffset.X;
977
_scrollData._computedOffset.
X
= prevFirstContainerOffset - prevFirstContainerOffsetFromViewport;
985
_scrollData._computedOffset.
X
= actualOffset;
986
_scrollData._offset.
X
= actualOffset;
991
_scrollData._offset.
X
= expectedOffset;
1492
newOffset.
X
= ScrollContentPresenter.CoerceOffset(newOffset.X, _scrollData._extent.Width, _scrollData._viewport.Width);
2603
_scrollData._offset.
X
+= delta;
9648
computedViewportOffset.
X
= newOffset;
9649
offsetForScrollViewerRemeasure.
X
= newOffset;
9820
viewportOffset.
X
= (double)lastPageSafeOffset;
9859
viewportOffset.
X
= Double.PositiveInfinity;
9882
viewportOffset.
X
= Double.PositiveInfinity;
9914
viewportOffset.
X
= Double.PositiveInfinity;
9934
viewportOffset.
X
= (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width;
9943
viewportOffset.
X
= Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10198
viewportOffset.
X
= Double.PositiveInfinity;
10215
viewportOffset.
X
= (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width;
10532
viewportOffset.
X
= Double.PositiveInfinity;
10547
viewportOffset.
X
= _scrollData._offset.X;
10567
viewportOffset.
X
= Double.PositiveInfinity;
10580
viewportOffset.
X
= _scrollData._offset.X;
10605
viewportOffset.
X
= (extentSize.Width * _scrollData._offset.X) / _scrollData._extent.Width;
10614
viewportOffset.
X
= Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.X)) / _scrollData._extent.Width);
10630
viewportOffset.
X
= (double)lastPageSafeOffset;
11060
newOffset.
X
= minPhysicalOffset;
11111
newOffset.
X
= newFirstChild;
src\Framework\System\Windows\FrameworkElement.cs (5)
4781
offset.
X
+= finalRect.X + margin.Left;
4787
offset.
X
= UIElement.RoundLayoutValue(offset.X, dpi.DpiScaleX);
4847
offset.
X
= (clientSize.Width - inkSize.Width) * 0.5;
4851
offset.
X
= clientSize.Width - inkSize.Width;
4855
offset.
X
= 0;
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\FreeFormPanel.cs (1)
121
moveDir.
X
= -moveDir.X;
243 references to X
PresentationCore (48)
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));
213
tanStart.X = -tanEnd.
X
;
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)
490
double rL = XY(0).
X
;
497
UpdateMinMax(XY(i).
X
, ref rL, ref rR);
Core\CSharp\MS\Internal\Ink\EllipticalNodeOperations.cs (10)
130
rad.Y = -rad.
X
;
617
if (DoubleUtil.IsZero(spineVector.
X
) && DoubleUtil.IsZero(spineVector.Y))
623
if (nearest.
X
== 0)
629
radius = Math.Abs(nearest.
X
);
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 (2)
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)
754
: (hitPoint.
X
/ nextNode.
X
);
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 (3)
758
if (d.
X
== 0)
765
return (p2.X - o.X) / d.
X
;
771
double denom = (d.Y - d.
X
* dy / dx);
Core\CSharp\System\Windows\Input\InertiaExpansionBehavior.cs (3)
104
behavior2D.InitialVelocityX = (float)behavior._initialVelocity.
X
;
109
behavior2D.InitialVelocityX = (float)initialVelocity.
X
;
118
behavior2D.DesiredExpansionX = (float)behavior._desiredExpansion.
X
;
Core\CSharp\System\Windows\Input\InertiaTranslationBehavior.cs (2)
99
behavior2D.InitialVelocityX = (float)behavior._initialVelocity.
X
;
104
behavior2D.InitialVelocityX = (float)initialVelocity.
X
;
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)
944
newVal.r = (float)v.
X
;
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)
609
bboxSubgraph.X += _offset.
X
;
1143
bboxSubgraph.X += _offset.
X
;
1620
_offset.
X
,
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)
1286
if (!DoubleUtil.AreClose(oldOffset.
X
, finalRect.X) ||
Shared\MS\Internal\PointUtil.cs (1)
164
m.Translate(offset.
X
, offset.Y);
PresentationFramework (178)
src\Framework\MS\Internal\Documents\ColumnResult.cs (2)
62
_layoutBox.X += contentOffset.
X
;
87
_layoutBox.X += contentOffset.
X
;
src\Framework\MS\Internal\Documents\ScrollData.cs (9)
53
SetHorizontalOffset(owner, _offset.
X
- ScrollViewer._scrollLineDelta);
61
SetHorizontalOffset(owner, _offset.
X
+ ScrollViewer._scrollLineDelta);
85
SetHorizontalOffset(owner, _offset.
X
- _viewport.Width);
93
SetHorizontalOffset(owner, _offset.
X
+ _viewport.Width);
117
SetHorizontalOffset(owner, _offset.
X
- ScrollViewer._mouseWheelDelta);
125
SetHorizontalOffset(owner, _offset.
X
+ ScrollViewer._mouseWheelDelta);
139
if (!DoubleUtil.AreClose(offset, _offset.
X
))
191
Rect viewport = new Rect(_offset.
X
, _offset.Y, _viewport.Width, _viewport.Height);
353
return _offset.
X
;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (14)
833
point.X -= subpageParagraphResult.ContentOffset.
X
;
1047
point.X -= subpageParagraphResult.ContentOffset.
X
;
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));
1211
rect.X += subpageParagraphResult.ContentOffset.
X
;
2604
positionOut = GetPositionAtNextLine(nestedParagraphs, position, suggestedX - subpageParagraphResult.ContentOffset.
X
, ref count, out positionFound);
2622
positionOut = GetPositionAtNextLine(((SubpageParagraphResult)paragraphs[paragraphIndex]).Columns, subpageParagraphResult.FloatingElements, position, suggestedX - subpageParagraphResult.ContentOffset.
X
, ref count, out newSuggestedX, out positionFound);
2696
positionOut = GetPositionAtNextLine(columns, nestedFloatingElements, position, suggestedX - figureParagraphResult.ContentOffset.
X
, ref count, out newSuggestedX, out positionFoundInNestedPara);
2709
positionOut = GetPositionAtNextLine(columns, nestedFloatingElements, position, suggestedX - floaterParagraphResult.ContentOffset.
X
, ref count, out newSuggestedX, out positionFoundInNestedPara);
2866
positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - subpageParagraphResult.ContentOffset.
X
, ref count);
2891
positionOut = GetPositionAtNextLineFromSiblingPara(nestedParagraphs, nesteParagraphIndex, suggestedX - subpageParagraphResult.ContentOffset.
X
, ref count);
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 (3)
166
double adjustedXOffset = lineOffset.
X
+ CalculateXOffsetShift();
208
proxyVisual.Offset = new Vector(UIElement.RoundLayoutValue(lineOffset.
X
+ rect.Left, dpi.DpiScaleX),
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 (8)
2168
else if (IsTransparent && Math.Abs(horizontalAxis.
X
) < Tolerance)
2191
if (!IsTransparent || double.IsNaN(verticalAxis.
X
) || Math.Abs(verticalAxis.
X
) < Tolerance)
2216
int bestX = DoubleUtil.DoubleToInt(bestTranslation.
X
);
2257
if (!IsTransparent || double.IsNaN(verticalAxis.
X
) || Math.Abs(verticalAxis.
X
) < Tolerance)
2279
if (!IsTransparent || double.IsNaN(horizontalAxis.
X
) || Math.Abs(horizontalAxis.Y) < Tolerance)
2283
else if (IsTransparent && Math.Abs(horizontalAxis.
X
) < 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)
162
if (!DoubleUtil.AreClose(EnsureScrollData()._offset.
X
, newValue))
295
get { return (IsScrollClient) ? EnsureScrollData()._computedOffset.
X
: 0.0; }
849
CoerceOffset(_scrollData._offset.
X
, _scrollData._extent.Width, _scrollData._viewport.Width),
src\Framework\System\Windows\Controls\Primitives\TabPanel.cs (2)
279
cellSize.Width = arrangeSize.Width - childOffset.
X
;
282
child.Arrange(new Rect(childOffset.
X
, childOffset.Y, cellSize.Width, cellSize.Height));
src\Framework\System\Windows\Controls\ScrollChangedEventArgs.cs (4)
63
get { return _offset.
X
; }
79
get { return _offsetChange.
X
; }
112
get { return _viewportChange.
X
; }
145
get { return _extentChange.
X
; }
src\Framework\System\Windows\Controls\ScrollViewer.cs (9)
1786
ManipulateScroll(e.DeltaManipulation.Translation.
X
, e.CumulativeManipulation.Translation.
X
, true);
1801
double unusedX = _panningInfo.UnusedTranslation.
X
;
1832
double unused = (isHorizontal ? _panningInfo.UnusedTranslation.
X
: _panningInfo.UnusedTranslation.Y);
1888
_panningInfo.UnusedTranslation = new Vector(_panningInfo.UnusedTranslation.
X
, unused);
1904
return (DoubleUtil.GreaterThanOrClose(Math.Abs(_panningInfo.UnusedTranslation.
X
), PanningInfo.MaxInertiaBoundaryTranslation) ||
1924
bool validX = (DoubleUtil.GreaterThan(Math.Abs(translation.
X
), 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)
216
if (!DoubleUtil.AreClose(scrollX, _scrollData._offset.
X
))
281
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.
X
, _scrollData._extent.Width, _scrollData._viewport.Width);
454
return _scrollData._computedOffset.
X
;
580
firstViewport = (measureElement.IsScrolling) ? CoerceOffsetToInteger(scrollData.Offset.
X
, children.Count) : 0;
683
offset.X = Math.Max(0, Math.Min(offset.
X
, extent.Width - viewport.Width));
743
rcChild.X = ComputePhysicalFromLogicalOffset(arrangeElement, scrollData.ComputedOffset.
X
, true);
748
rcChild.X = -1.0 * scrollData.ComputedOffset.
X
;
897
viewportOffset = _scrollData._computedOffset.
X
;
937
firstChildInView = (int)_scrollData._computedOffset.
X
;
src\Framework\System\Windows\Controls\TextBlock.cs (6)
1602
Point lineOffset = new Point(contentOffset.
X
, contentOffset.Y);
1924
double xOffset = contentOffset.
X
;
2155
Rect layoutBox = new Rect(contentOffset.
X
+ lineMetrics.Start, contentOffset.Y + lineOffset, lineMetrics.Width, lineMetrics.Height);
2226
distance -= contentOffset.
X
;
2326
rect.X += contentOffset.
X
;
2424
IList<Rect> aryTextBounds = line.GetRangeBounds(dcpStart, dcpEnd - dcpStart, contentOffset.
X
, contentOffset.Y + lineOffset);
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (100)
490
if (!DoubleUtil.AreClose(scrollX, _scrollData._offset.
X
))
503
_scrollData.SetHorizontalScrollType(oldViewportOffset.
X
, scrollX);
515
double delta = Math.Abs(scrollX - oldViewportOffset.
X
);
528
_scrollData._offset.X = Math.Floor(_scrollData._offset.
X
);
529
_scrollData._computedOffset.X = Math.Floor(_scrollData._computedOffset.
X
);
537
_scrollData._offset.X = UIElement.RoundLayoutValue(_scrollData._offset.
X
, dpi.DpiScaleX);
538
_scrollData._computedOffset.X = UIElement.RoundLayoutValue(_scrollData._computedOffset.
X
, dpi.DpiScaleX);
575
_scrollData._computedOffset.X = _scrollData._offset.
X
;
753
double expectedDistanceBetweenViewports = (isHorizontal ? _scrollData._offset.
X
- _scrollData._computedOffset.
X
: _scrollData._offset.Y - _scrollData._computedOffset.Y);
933
success = DoubleUtil.GreaterThanOrClose(_scrollData._computedOffset.
X
,
950
_scrollData._offset.X = _scrollData._computedOffset.
X
;
979
actualOffset = _scrollData._computedOffset.
X
+ actualDistanceBetweenViewports;
980
expectedOffset = _scrollData._computedOffset.
X
+ _scrollData._expectedDistanceBetweenViewports;
1492
newOffset.X = ScrollContentPresenter.CoerceOffset(newOffset.
X
, _scrollData._extent.Width, _scrollData._viewport.Width);
1495
if (!LayoutDoubleUtil.AreClose(newOffset.
X
, _scrollData._offset.
X
) ||
1522
_scrollData.SetHorizontalScrollType(oldOffset.
X
, newOffset.
X
);
1871
return _scrollData._computedOffset.
X
;
4254
offsetX = _scrollData._offset.
X
;
8285
rcChild.X = -1.0 * _scrollData._computedOffset.
X
;
8290
rcChild.X = -1.0 * _scrollData._computedOffset.
X
;
9572
stackPixelSize.Width = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.
X
, 0) ?
9620
isHorizontal ? (!DoubleUtil.AreClose(computedViewportOffset.
X
, _scrollData._offset.
X
) ||
9621
(IsScrollActive && computedViewportOffset.
X
> 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.
X
, _scrollData.Extent.Width-_scrollData.Viewport.Width)))
9627
: (!DoubleUtil.AreClose(computedViewportOffset.
X
, _scrollData._offset.
X
) ||
9628
(IsScrollActive && computedViewportOffset.
X
> 0.0 && DoubleUtil.GreaterThanOrClose(computedViewportOffset.
X
, _scrollData.Extent.Width-_scrollData.Viewport.Width)));
9645
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
X
, newOffset))
9647
double delta = newOffset - computedViewportOffset.
X
;
9806
else if (WasOffsetPreviouslyMeasured(previouslyMeasuredOffsets, computedViewportOffset.
X
))
9812
if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.
X
))
9817
viewportOffset.
X
, lastPageSafeOffset);
9840
if (!lastPageSafeOffset.HasValue || computedViewportOffset.
X
< (double)lastPageSafeOffset)
9842
lastPageSafeOffset = computedViewportOffset.
X
;
9853
"off:", computedViewportOffset.
X
, lastPageSafeOffset,
9862
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
9876
"off:", computedViewportOffset.
X
,
9883
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
9902
( DoubleUtil.GreaterThan(computedViewportOffset.
X
, 0.0) &&
9903
DoubleUtil.GreaterThan(computedViewportOffset.
X
, extentSize.Width - viewportSize.Width)))
9908
"off:", computedViewportOffset.
X
,
9916
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
9931
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
X
/extentSize.Width, _scrollData._offset.
X
/_scrollData._extent.Width))
9934
viewportOffset.X = (extentSize.Width * _scrollData._offset.
X
) / _scrollData._extent.Width;
9935
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
9940
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.
X
)/extentSize.Width, Math.Floor(_scrollData._offset.
X
)/_scrollData._extent.Width))
9943
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.
X
)) / _scrollData._extent.Width);
9944
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
9951
"expRat:", _scrollData._offset.
X
, _scrollData._extent.Width, (_scrollData._offset.
X
/_scrollData._extent.Width),
9952
"actRat:", computedViewportOffset.
X
, extentSize.Width, (computedViewportOffset.
X
/extentSize.Width),
9953
"newOff:", viewportOffset.
X
);
10185
( DoubleUtil.GreaterThan(computedViewportOffset.
X
, 0.0) &&
10186
DoubleUtil.GreaterThan(computedViewportOffset.
X
, extentSize.Width - viewportSize.Width)))
10192
"off:", computedViewportOffset.
X
,
10212
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
X
/extentSize.Width, _scrollData._offset.
X
/_scrollData._extent.Width))
10215
viewportOffset.X = (extentSize.Width * _scrollData._offset.
X
) / _scrollData._extent.Width;
10222
"expRat:", _scrollData._offset.
X
, _scrollData._extent.Width, (_scrollData._offset.
X
/_scrollData._extent.Width),
10223
"actRat:", computedViewportOffset.
X
, extentSize.Width, (computedViewportOffset.
X
/extentSize.Width),
10224
"newOff:", viewportOffset.
X
);
10424
stackPixelSize.Width = IsPixelBased || DoubleUtil.AreClose(computedViewportOffset.
X
, 0) ?
10507
allowRemeasure = !WasOffsetPreviouslyMeasured(previouslyMeasuredOffsets, computedViewportOffset.
X
);
10511
bool wasViewportOffsetCoerced = !DoubleUtil.AreClose(computedViewportOffset.
X
, _scrollData._offset.
X
);
10526
lastPageSafeOffset = lastPageSafeOffset.HasValue ? Math.Min(computedViewportOffset.
X
, (double)lastPageSafeOffset) : computedViewportOffset.
X
;
10535
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10547
viewportOffset.X = _scrollData._offset.
X
;
10548
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10563
if (DoubleUtil.GreaterThan(computedViewportOffset.
X
, 0.0) &&
10564
DoubleUtil.GreaterThan(computedViewportOffset.
X
, extentSize.Width - viewportSize.Width))
10568
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10580
viewportOffset.X = _scrollData._offset.
X
;
10581
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10594
(_scrollData._firstContainerInViewport == null && computedViewportOffsetChanged && !LayoutDoubleUtil.AreClose(computedViewportOffset.
X
, _scrollData._computedOffset.
X
));
10602
if (!LayoutDoubleUtil.AreClose(computedViewportOffset.
X
/extentSize.Width, _scrollData._offset.
X
/_scrollData._extent.Width))
10605
viewportOffset.X = (extentSize.Width * _scrollData._offset.
X
) / _scrollData._extent.Width;
10606
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10611
if (!LayoutDoubleUtil.AreClose(Math.Floor(computedViewportOffset.
X
)/extentSize.Width, Math.Floor(_scrollData._offset.
X
)/_scrollData._extent.Width))
10614
viewportOffset.X = Math.Floor((extentSize.Width * Math.Floor(_scrollData._offset.
X
)) / _scrollData._extent.Width);
10615
StorePreviouslyMeasuredOffset(ref previouslyMeasuredOffsets, computedViewportOffset.
X
);
10628
if (!IsPixelBased && lastPageSafeOffset.HasValue && !DoubleUtil.AreClose((double)lastPageSafeOffset, computedViewportOffset.
X
))
11025
viewportOffset = _scrollData._computedOffset.
X
;
11082
firstChildInView = (int)_scrollData._computedOffset.
X
;
11640
_offset.
X
== 0.0 &&
12798
writer.Write(vector.
X
);
src\Framework\System\Windows\FrameworkElement.cs (5)
4787
offset.X = UIElement.RoundLayoutValue(offset.
X
, dpi.DpiScaleX);
4964
Rect slotClipRect = new Rect(-offset.
X
+ inkRectTransformed.X,
5010
Rect slotRect = new Rect(-offset.
X
+ inkRectTransformed.X,
5284
if(!DoubleUtil.AreClose(oldOffset.
X
, offset.
X
) ||
System.Activities.Core.Presentation (1)
System\Activities\Core\Presentation\FreeFormPanelUtilities.cs (1)
23
return dir.
X
< dir.Y;
System.Activities.Presentation (8)
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)
112
vec.
X
.IsEqualTo(0) ? 0 : Math.Sign(vec.
X
),
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\FreeFormEditing\FreeFormPanel.cs (1)
121
moveDir.X = -moveDir.
X
;
System.Activities.Presentation\System\Activities\Presentation\View\ScrollViewerPanner.cs (1)
170
this.scrollViewer.ScrollToHorizontalOffset(this.scrollViewer.HorizontalOffset - offset.
X
);
System.Activities.Presentation\System\Activities\Presentation\WorkflowViewElement.cs (1)
759
if (Math.Abs(difference.
X
) > SystemParameters.MinimumHorizontalDragDistance ||
WindowsBase (8)
Base\System\Windows\Generated\Vector.cs (5)
64
return vector1.
X
== vector2.
X
&&
97
return vector1.
X
.Equals(vector2.
X
) &&
147
return
X
.GetHashCode() ^
Base\System\Windows\Rect.cs (1)
627
rect.Offset(offsetVector.
X
, offsetVector.Y);
Shared\MS\Internal\DoubleUtil.cs (2)
220
return DoubleUtil.AreClose(vector1.
X
, vector2.
X
) &&