3 writes to _sizeToContent
PresentationCore (3)
System\Windows\InterOp\HwndSource.cs (3)
282
_sizeToContent
= SizeToContent.WidthAndHeight;
989
_sizeToContent
= value;
1494
_sizeToContent
= SizeToContent.Manual;
14 references to _sizeToContent
PresentationCore (14)
System\Windows\InterOp\HwndSource.cs (14)
808
if (
_sizeToContent
!= SizeToContent.Manual && !_isWindowInMinimizeState )
972
return
_sizeToContent
;
984
if (
_sizeToContent
== value)
1046
if (
_sizeToContent
== SizeToContent.WidthAndHeight)
1080
(
_sizeToContent
== SizeToContent.Width ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Width),
1081
(
_sizeToContent
== SizeToContent.Height ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Height));
1098
if (
_sizeToContent
== SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height);
1099
else if(
_sizeToContent
== SizeToContent.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height);
1422
if ((!_myOwnUpdate) && (
_sizeToContent
!= SizeToContent.WidthAndHeight) && !_isWindowInMinimizeState)
1442
(
_sizeToContent
== SizeToContent.Width ? double.PositiveInfinity : relevantPt.X),
1443
(
_sizeToContent
== SizeToContent.Height ? double.PositiveInfinity : relevantPt.Y));
1469
if (
_sizeToContent
== SizeToContent.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
1470
else if (
_sizeToContent
== SizeToContent.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
1492
if (
_sizeToContent
!= SizeToContent.Manual)