1 instantiation of Stretch
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11674
bamlType.DefaultConstructor = delegate() { return new System.Windows.Media.
Stretch
(); };
88 references to Stretch
PresentationCore (16)
Core\CSharp\System\Windows\Media\Generated\TileBrush.cs (6)
234
public
Stretch
Stretch
238
return (
Stretch
) GetValue(StretchProperty);
398
internal const
Stretch
c_Stretch =
Stretch
.Fill;
480
typeof(
Stretch
),
482
Stretch
.Fill,
Core\CSharp\System\Windows\Media\UnsafeNativeMethodsMilCoreApi.cs (1)
107
Stretch
stretch,
Graphics\include\Generated\wgx_commands.cs (3)
954
[FieldOffset(124)] internal
Stretch
Stretch;
978
[FieldOffset(124)] internal
Stretch
Stretch;
1002
[FieldOffset(124)] internal
Stretch
Stretch;
Shared\MS\Internal\Generated\StretchValidation.cs (6)
40
Stretch
value = (
Stretch
) valueObject;
42
return (value ==
Stretch
.None) ||
43
(value ==
Stretch
.Fill) ||
44
(value ==
Stretch
.Uniform) ||
45
(value ==
Stretch
.UniformToFill);
PresentationFramework (66)
src\Framework\MS\Internal\AppModel\RootBrowserWindow.cs (1)
985
visualBrush.Stretch =
Stretch
.None;
src\Framework\MS\Internal\Ink\PenCursorManager.cs (1)
272
db.Stretch =
Stretch
.None;
src\Framework\System\Windows\Controls\ComboBox.cs (1)
912
visualBrush.Stretch =
Stretch
.None;
src\Framework\System\Windows\Controls\Image.cs (3)
94
public
Stretch
Stretch
96
get { return (
Stretch
) GetValue(StretchProperty); }
404
Stretch
.Uniform,
src\Framework\System\Windows\Controls\MediaElement.cs (3)
96
Stretch
.Uniform,
308
public
Stretch
Stretch
310
get { return (
Stretch
) GetValue(StretchProperty); }
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
128
public
Stretch
Stretch
130
get { return (
Stretch
)GetValue(StretchProperty); }
165
Stretch
.Uniform,
src\Framework\System\Windows\Controls\ViewBox.cs (17)
110
typeof(
Stretch
), // Property type
112
new FrameworkPropertyMetadata(
Stretch
.Uniform, FrameworkPropertyMetadataOptions.AffectsMeasure),
117
Stretch
s = (
Stretch
)value;
118
return ( s ==
Stretch
.Uniform
119
|| s ==
Stretch
.None
120
|| s ==
Stretch
.Fill
121
|| s ==
Stretch
.UniformToFill);
279
public
Stretch
Stretch
281
get { return (
Stretch
)GetValue(StretchProperty); }
383
Stretch
stretch,
393
if ( (stretch ==
Stretch
.Uniform || stretch ==
Stretch
.UniformToFill || stretch ==
Stretch
.Fill)
407
case
Stretch
.Uniform: //Find minimum scale that we use for both axes
412
case
Stretch
.UniformToFill: //Find maximum scale that we use for both axes
417
case
Stretch
.Fill: //We already computed the fill scale factors above, so just use them
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (5)
2067
System.Windows.Media.
Stretch
imageStretch = GetImageStretch(documentNode.FormatState.ImageStretch);
2273
private System.Windows.Media.
Stretch
GetImageStretch(string imageStretch)
2277
return System.Windows.Media.
Stretch
.Fill;
2281
return System.Windows.Media.
Stretch
.UniformToFill;
2285
return System.Windows.Media.
Stretch
.Uniform;
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2985
bamlMember.TypeConverterType = typeof(System.Windows.Media.
Stretch
);
7923
bamlMember.TypeConverterType = typeof(System.Windows.Media.
Stretch
);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11672
typeof(System.Windows.Media.
Stretch
),
11675
bamlType.TypeConverterType = typeof(System.Windows.Media.
Stretch
);
src\Framework\System\Windows\Shapes\Ellipse.cs (6)
47
StretchProperty.OverrideMetadata(typeof(Ellipse), new FrameworkPropertyMetadata(
Stretch
.Fill));
90
if (Stretch ==
Stretch
.UniformToFill)
133
case
Stretch
.None:
138
case
Stretch
.Fill:
143
case
Stretch
.Uniform:
155
case
Stretch
.UniformToFill:
src\Framework\System\Windows\Shapes\Rectangle.cs (6)
47
StretchProperty.OverrideMetadata(typeof(Rectangle), new FrameworkPropertyMetadata(
Stretch
.Fill));
142
if (Stretch ==
Stretch
.UniformToFill)
186
case
Stretch
.None:
191
case
Stretch
.Fill:
196
case
Stretch
.Uniform:
208
case
Stretch
.UniformToFill:
src\Framework\System\Windows\Shapes\Shape.cs (16)
54
typeof(
Stretch
), // Property type
56
new FrameworkPropertyMetadata(
Stretch
.None, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange));
61
public
Stretch
Stretch
63
get { return (
Stretch
)GetValue(StretchProperty); }
367
Stretch
mode = Stretch;
369
if (mode ==
Stretch
.None)
395
Stretch
mode = Stretch;
397
if (mode ==
Stretch
.None)
547
internal Size GetStretchedRenderSize(
Stretch
mode, double strokeThickness, Size availableSize, Rect geometryBounds)
558
internal Size GetStretchedRenderSizeAndSetStretchMatrix(
Stretch
mode, double strokeThickness, Size availableSize, Rect geometryBounds)
583
internal void GetStretchMetrics(
Stretch
mode, double strokeThickness, Size availableSize, Rect geometryBounds,
637
Debug.Assert(mode !=
Stretch
.None);
642
if (mode !=
Stretch
.Fill && !hasThinDimension)
644
if (mode ==
Stretch
.Uniform)
659
Debug.Assert(mode ==
Stretch
.UniformToFill);
744
if (Stretch !=
Stretch
.None)
PresentationFramework.Aero (1)
Microsoft\Windows\Themes\ProgressBarHighlightConverter.cs (1)
81
newBrush.Stretch =
Stretch
.None;
PresentationFramework.Classic (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86
newBrush.Stretch =
Stretch
.None;
PresentationFramework.Luna (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86
newBrush.Stretch =
Stretch
.None;
PresentationFramework.Royale (1)
parent\Shared\Microsoft\Windows\Themes\ProgressBarBrushConverter.cs (1)
86
newBrush.Stretch =
Stretch
.None;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (1)
218
controlBrush.Stretch =
Stretch
.Uniform;
System.Activities.Presentation\System\Activities\Presentation\WorkflowDesignerIcons.cs (1)
221
icon.Stretch =
Stretch
.Uniform;