42 references to SizeToContent
PresentationCore (26)
System\Windows\InterOp\HwndSource.cs (26)
276
_sizeToContent =
SizeToContent
.WidthAndHeight;
802
if (_sizeToContent !=
SizeToContent
.Manual && !_isWindowInMinimizeState )
961
public
SizeToContent
SizeToContent
975
throw new InvalidEnumArgumentException("value", (int)value, typeof(
SizeToContent
));
1040
if (_sizeToContent ==
SizeToContent
.WidthAndHeight)
1074
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Width),
1075
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Height));
1092
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height);
1093
else if(_sizeToContent ==
SizeToContent
.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height);
1327
if ((_myOwnUpdate != true) && (SizeToContent !=
SizeToContent
.Manual))
1371
bool sizeToWidth = (SizeToContent ==
SizeToContent
.Height) ? false : true;
1372
bool sizeToHeight = (SizeToContent ==
SizeToContent
.Width) ? false : true;
1416
if ((!_myOwnUpdate) && (_sizeToContent !=
SizeToContent
.WidthAndHeight) && !_isWindowInMinimizeState)
1436
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : relevantPt.X),
1437
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : relevantPt.Y));
1463
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
1464
else if (_sizeToContent ==
SizeToContent
.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
1486
if (_sizeToContent !=
SizeToContent
.Manual)
1488
_sizeToContent =
SizeToContent
.Manual;
2646
private static bool IsValidSizeToContent(
SizeToContent
value)
2648
return value ==
SizeToContent
.Manual ||
2649
value ==
SizeToContent
.Width ||
2650
value ==
SizeToContent
.Height ||
2651
value ==
SizeToContent
.WidthAndHeight;
2777
private
SizeToContent
_sizeToContent =
SizeToContent
.Manual;
PresentationFramework (16)
System\Windows\Window.cs (16)
911
typeof(
SizeToContent
),
914
SizeToContent
.Manual,
931
public
SizeToContent
SizeToContent
941
return (
SizeToContent
) GetValue(SizeToContentProperty);
2686
HwndSourceSizeToContent = (
SizeToContent
) GetValue(SizeToContentProperty);
2924
if ((SizeToContent !=
SizeToContent
.Manual) || (HwndCreatedButNotShown == true))
5650
return IsValidSizeToContent((
SizeToContent
)value);
5674
w.OnSizeToContentChanged((
SizeToContent
) e.NewValue);
5677
private void OnSizeToContentChanged(
SizeToContent
sizeToContent)
6983
private static bool IsValidSizeToContent(
SizeToContent
value)
6985
return value ==
SizeToContent
.Manual ||
6986
value ==
SizeToContent
.Width ||
6987
value ==
SizeToContent
.Height ||
6988
value ==
SizeToContent
.WidthAndHeight;
7159
private
SizeToContent
HwndSourceSizeToContent
7491
internal
SizeToContent
HwndSourceSizeToContent