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