1 write to _currentScale
WindowsFormsIntegration (1)
System\Windows\Integration\WindowsFormsHost.cs (1)
202_currentScale = ScaleChild(newScale);
11 references to _currentScale
WindowsFormsIntegration (11)
System\Windows\Integration\WindowsFormsHost.cs (11)
181if (newScale != _currentScale) 185Child.Scale(new System.Drawing.SizeF((float)(newScale.X / _currentScale.X), (float)(newScale.Y / _currentScale.Y))); 189returnScale.X = (newScale.X == 0) ? _currentScale.X : newScale.X; 190returnScale.Y = (newScale.Y == 0) ? _currentScale.Y : newScale.Y; 247SD.Size constraintSize = Convert.ConstraintToSystemDrawingSize(constraint, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 249System.Windows.Size returnSize = Convert.ToSystemWindowsSize(preferredSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 275Vector originalScale = _currentScale; 278bool scaled = (_currentScale != originalScale); 280SD.Size targetSize = Convert.ConstraintToSystemDrawingSize(finalSize, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY); 286Size returnSize = Convert.ToSystemWindowsSize(Child.Size, _currentScale, dpi.DpiScaleX, dpi.DpiScaleY);