42 references to SizeToContent
PresentationCore (26)
System\Windows\InterOp\HwndSource.cs (26)
288
_sizeToContent =
SizeToContent
.WidthAndHeight;
814
if (_sizeToContent !=
SizeToContent
.Manual && !_isWindowInMinimizeState )
984
public
SizeToContent
SizeToContent
998
throw new InvalidEnumArgumentException("value", (int)value, typeof(
SizeToContent
));
1063
if (_sizeToContent ==
SizeToContent
.WidthAndHeight)
1097
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Width),
1098
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Height));
1115
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height);
1116
else if(_sizeToContent ==
SizeToContent
.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height);
1350
if ((_myOwnUpdate != true) && (SizeToContent !=
SizeToContent
.Manual))
1394
bool sizeToWidth = (SizeToContent ==
SizeToContent
.Height) ? false : true;
1395
bool sizeToHeight = (SizeToContent ==
SizeToContent
.Width) ? false : true;
1439
if ((!_myOwnUpdate) && (_sizeToContent !=
SizeToContent
.WidthAndHeight) && !_isWindowInMinimizeState)
1459
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : relevantPt.X),
1460
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : relevantPt.Y));
1486
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
1487
else if (_sizeToContent ==
SizeToContent
.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
1509
if (_sizeToContent !=
SizeToContent
.Manual)
1511
_sizeToContent =
SizeToContent
.Manual;
2669
private static bool IsValidSizeToContent(
SizeToContent
value)
2671
return value ==
SizeToContent
.Manual ||
2672
value ==
SizeToContent
.Width ||
2673
value ==
SizeToContent
.Height ||
2674
value ==
SizeToContent
.WidthAndHeight;
2800
private
SizeToContent
_sizeToContent =
SizeToContent
.Manual;
PresentationFramework (16)
System\Windows\Window.cs (16)
924
typeof(
SizeToContent
),
927
SizeToContent
.Manual,
944
public
SizeToContent
SizeToContent
954
return (
SizeToContent
) GetValue(SizeToContentProperty);
2699
HwndSourceSizeToContent = (
SizeToContent
) GetValue(SizeToContentProperty);
2937
if ((SizeToContent !=
SizeToContent
.Manual) || (HwndCreatedButNotShown == true))
5663
return IsValidSizeToContent((
SizeToContent
)value);
5687
w.OnSizeToContentChanged((
SizeToContent
) e.NewValue);
5690
private void OnSizeToContentChanged(
SizeToContent
sizeToContent)
6996
private static bool IsValidSizeToContent(
SizeToContent
value)
6998
return value ==
SizeToContent
.Manual ||
6999
value ==
SizeToContent
.Width ||
7000
value ==
SizeToContent
.Height ||
7001
value ==
SizeToContent
.WidthAndHeight;
7172
private
SizeToContent
HwndSourceSizeToContent
7504
internal
SizeToContent
HwndSourceSizeToContent