56 references to SizeToContent
PresentationCore (26)
Core\CSharp\System\Windows\Interop\HwndSource.cs (26)
332
_sizeToContent =
SizeToContent
.WidthAndHeight;
946
if (_sizeToContent !=
SizeToContent
.Manual && !_isWindowInMinimizeState )
1167
public
SizeToContent
SizeToContent
1181
throw new InvalidEnumArgumentException("value", (int)value, typeof(
SizeToContent
));
1259
if (_sizeToContent ==
SizeToContent
.WidthAndHeight)
1293
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Width),
1294
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : sizeFromHwndLogicalUnits.Height));
1311
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, sizeFromHwndLogicalUnits.Height);
1312
else if(_sizeToContent ==
SizeToContent
.Height) sz = new Size(sizeFromHwndLogicalUnits.Width, rootUIElement.DesiredSize.Height);
1569
if ((_myOwnUpdate != true) && (SizeToContent !=
SizeToContent
.Manual))
1613
bool sizeToWidth = (SizeToContent ==
SizeToContent
.Height) ? false : true;
1614
bool sizeToHeight = (SizeToContent ==
SizeToContent
.Width) ? false : true;
1663
if ((!_myOwnUpdate) && (_sizeToContent !=
SizeToContent
.WidthAndHeight) && !_isWindowInMinimizeState)
1683
(_sizeToContent ==
SizeToContent
.Width ? double.PositiveInfinity : relevantPt.X),
1684
(_sizeToContent ==
SizeToContent
.Height ? double.PositiveInfinity : relevantPt.Y));
1711
if (_sizeToContent ==
SizeToContent
.Width) sz = new Size(rootUIElement.DesiredSize.Width, relevantPt.Y);
1712
else if (_sizeToContent ==
SizeToContent
.Height) sz = new Size(relevantPt.X, rootUIElement.DesiredSize.Height);
1739
if (_sizeToContent !=
SizeToContent
.Manual)
1741
_sizeToContent =
SizeToContent
.Manual;
3053
private static bool IsValidSizeToContent(
SizeToContent
value)
3055
return value ==
SizeToContent
.Manual ||
3056
value ==
SizeToContent
.Width ||
3057
value ==
SizeToContent
.Height ||
3058
value ==
SizeToContent
.WidthAndHeight;
3199
private
SizeToContent
_sizeToContent =
SizeToContent
.Manual;
PresentationFramework (16)
src\Framework\System\Windows\Window.cs (16)
942
typeof(
SizeToContent
),
945
SizeToContent
.Manual,
962
public
SizeToContent
SizeToContent
972
return (
SizeToContent
) GetValue(SizeToContentProperty);
2744
HwndSourceSizeToContent = (
SizeToContent
) GetValue(SizeToContentProperty);
2992
if ((SizeToContent !=
SizeToContent
.Manual) || (HwndCreatedButNotShown == true))
5895
return IsValidSizeToContent((
SizeToContent
)value);
5919
w.OnSizeToContentChanged((
SizeToContent
) e.NewValue);
5922
private void OnSizeToContentChanged(
SizeToContent
sizeToContent)
7320
private static bool IsValidSizeToContent(
SizeToContent
value)
7322
return value ==
SizeToContent
.Manual ||
7323
value ==
SizeToContent
.Width ||
7324
value ==
SizeToContent
.Height ||
7325
value ==
SizeToContent
.WidthAndHeight;
7508
private
SizeToContent
HwndSourceSizeToContent
7936
internal
SizeToContent
HwndSourceSizeToContent
System.Activities.Core.Presentation (8)
System\Activities\Core\Presentation\FlowchartDesigner.ModelChanges.cs (1)
242
editor.WindowSizeToContent =
SizeToContent
.WidthAndHeight;
System\Activities\Core\Presentation\FlowSwitchCaseEditorDialog.cs (1)
37
this.WindowSizeToContent =
SizeToContent
.Manual;
System\Activities\Core\Presentation\FlowSwitchLink.cs (1)
208
editor.WindowSizeToContent =
SizeToContent
.WidthAndHeight;
System\Activities\Presentation\DynamicArgumentDialog.cs (1)
24
this.WindowSizeToContent =
SizeToContent
.Manual;
System\Activities\Presentation\TypeCollectionPropertyEditor.cs (1)
93
this.WindowSizeToContent =
SizeToContent
.Manual;
System\ServiceModel\Activities\Presentation\CorrelatesOnValueEditor.cs (1)
66
this.WindowSizeToContent =
SizeToContent
.Manual;
System\ServiceModel\Activities\Presentation\CorrelationInitializerValueEditor.cs (1)
69
this.WindowSizeToContent =
SizeToContent
.Manual;
System\ServiceModel\Activities\Presentation\InitializeCorrelationDesigner.xaml.cs (1)
125
this.WindowSizeToContent =
SizeToContent
.Manual;
System.Activities.Presentation (6)
System.Activities.Presentation\System\Activities\Presentation\ErrorReporting.cs (1)
146
this.WindowSizeToContent =
SizeToContent
.WidthAndHeight;
System.Activities.Presentation\System\Activities\Presentation\View\ExpressionValueEditor.cs (1)
57
this.WindowSizeToContent =
SizeToContent
.Manual;
System.Activities.Presentation\System\Activities\Presentation\WorkflowElementDialog.cs (4)
40
typeof(
SizeToContent
),
42
new UIPropertyMetadata(
SizeToContent
.WidthAndHeight));
78
public
SizeToContent
WindowSizeToContent
80
get { return (
SizeToContent
)GetValue(WindowSizeToContentProperty); }