1 write to _currentScale
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
199
_currentScale
= ScaleChild(newScale);
11 references to _currentScale
WindowsFormsIntegration (11)
System\Windows\Integration\WindowsFormsHost.cs (11)
181
if (newScale !=
_currentScale
)
183
Child?.Scale(new System.Drawing.SizeF((float)(newScale.X /
_currentScale
.X), (float)(newScale.Y /
_currentScale
.Y)));
186
returnScale.X = (newScale.X == 0) ?
_currentScale
.X : newScale.X;
187
returnScale.Y = (newScale.Y == 0) ?
_currentScale
.Y : newScale.Y;
244
SD.Size constraintSize = Convert.ConstraintToSystemDrawingSize(constraint,
_currentScale
, dpi.DpiScaleX, dpi.DpiScaleY);
246
System.Windows.Size returnSize = Convert.ToSystemWindowsSize(preferredSize,
_currentScale
, dpi.DpiScaleX, dpi.DpiScaleY);
272
Vector originalScale =
_currentScale
;
275
bool scaled = (
_currentScale
!= originalScale);
277
SD.Size targetSize = Convert.ConstraintToSystemDrawingSize(finalSize,
_currentScale
, dpi.DpiScaleX, dpi.DpiScaleY);
283
Size returnSize = Convert.ToSystemWindowsSize(Child.Size,
_currentScale
, dpi.DpiScaleX, dpi.DpiScaleY);