28 references to StretchDirection
PresentationFramework (28)
src\Framework\MS\Internal\Documents\DocumentGridPage.cs (1)
335
_documentPageView.StretchDirection =
StretchDirection
.Both;
src\Framework\System\Windows\Controls\Image.cs (3)
107
public
StretchDirection
StretchDirection
109
get { return (
StretchDirection
)GetValue(StretchDirectionProperty); }
412
StretchDirection
.Both,
src\Framework\System\Windows\Controls\MediaElement.cs (3)
104
StretchDirection
.Both,
321
public
StretchDirection
StretchDirection
323
get { return (
StretchDirection
) GetValue(StretchDirectionProperty); }
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (3)
137
public
StretchDirection
StretchDirection
139
get { return (
StretchDirection
)GetValue(StretchDirectionProperty); }
175
StretchDirection
.DownOnly,
src\Framework\System\Windows\Controls\ViewBox.cs (13)
132
typeof(
StretchDirection
), // Property type
134
new FrameworkPropertyMetadata(
StretchDirection
.Both, FrameworkPropertyMetadataOptions.AffectsMeasure),
139
StretchDirection
sd = (
StretchDirection
)value;
140
return ( sd ==
StretchDirection
.Both
141
|| sd ==
StretchDirection
.DownOnly
142
|| sd ==
StretchDirection
.UpOnly);
292
public
StretchDirection
StretchDirection
294
get { return (
StretchDirection
)GetValue(StretchDirectionProperty); }
384
StretchDirection
stretchDirection)
428
case
StretchDirection
.UpOnly:
433
case
StretchDirection
.DownOnly:
438
case
StretchDirection
.Both:
src\Framework\System\Windows\Documents\XamlToRtfWriter.cs (5)
2068
System.Windows.Controls.
StretchDirection
imageStretchDirection = GetImageStretchDirection(documentNode.FormatState.ImageStretchDirection);
2290
private System.Windows.Controls.
StretchDirection
GetImageStretchDirection(string imageStretchDirection)
2294
return System.Windows.Controls.
StretchDirection
.UpOnly;
2298
return System.Windows.Controls.
StretchDirection
.DownOnly;
2302
return System.Windows.Controls.
StretchDirection
.Both;