1 instantiation of Orientation
PresentationFramework (1)
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
11687
bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.
Orientation
(); };
254 references to Orientation
PresentationFramework (145)
src\Framework\System\Windows\Automation\Peers\ScrollBarAutomationPeer.cs (2)
49
return ((ScrollBar)Owner).Orientation ==
Orientation
.Horizontal ?
67
if (sb.Orientation ==
Orientation
.Horizontal)
src\Framework\System\Windows\Controls\ItemsControl.cs (11)
2018
bool isHorizontal = (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2299
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2384
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2450
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2593
isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2642
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2743
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2796
bool isHorizontal = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal);
2797
bool isVertical = (ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Vertical);
3230
return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Vertical &&
3240
return (ItemsHost != null && ItemsHost.HasLogicalOrientation && ItemsHost.LogicalOrientation ==
Orientation
.Horizontal &&
src\Framework\System\Windows\Controls\Menu.cs (2)
219
bool isVertical = itemsHost != null && itemsHost.HasLogicalOrientation && itemsHost.LogicalOrientation ==
Orientation
.Vertical;
233
bool isVertical = itemsHost != null && itemsHost.HasLogicalOrientation && itemsHost.LogicalOrientation ==
Orientation
.Vertical;
src\Framework\System\Windows\Controls\Panel.cs (3)
300
public
Orientation
LogicalOrientationPublic
309
protected internal virtual
Orientation
LogicalOrientation
311
get { return
Orientation
.Vertical; }
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (13)
89
public
Orientation
Orientation
91
get { return (
Orientation
) GetValue(OrientationProperty); }
111
= DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(ScrollBar),
112
new FrameworkPropertyMetadata(
Orientation
.Vertical),
352
if (Orientation ==
Orientation
.Horizontal)
418
RoutedCommand command = (Orientation ==
Orientation
.Horizontal) ? DeferScrollToHorizontalOffsetCommand : DeferScrollToVerticalOffsetCommand;
436
bool horizontal = (Orientation ==
Orientation
.Horizontal);
501
if (scrollBar.Orientation ==
Orientation
.Vertical)
746
Orientation
value = (
Orientation
)o;
747
return value ==
Orientation
.Horizontal
748
|| value ==
Orientation
.Vertical;
801
if (sb.Orientation ==
Orientation
.Vertical)
src\Framework\System\Windows\Controls\Primitives\TickBar.cs (1)
711
if (parent.Orientation ==
Orientation
.Horizontal)
src\Framework\System\Windows\Controls\Primitives\ToolBarPanel.cs (2)
247
bool horizontal = (Orientation ==
Orientation
.Horizontal);
298
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
src\Framework\System\Windows\Controls\Primitives\Track.cs (8)
76
if (Orientation ==
Orientation
.Horizontal)
100
if (Orientation ==
Orientation
.Horizontal)
240
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(Track),
241
new FrameworkPropertyMetadata(
Orientation
.Horizontal, FrameworkPropertyMetadataOptions.AffectsMeasure),
248
public
Orientation
Orientation
250
get { return (
Orientation
)GetValue(OrientationProperty); }
444
if (Orientation ==
Orientation
.Vertical)
481
bool isVertical = (Orientation ==
Orientation
.Vertical);
src\Framework\System\Windows\Controls\ProgressBar.cs (8)
131
typeof(
Orientation
),
134
Orientation
.Horizontal,
142
public
Orientation
Orientation
144
get { return (
Orientation
) GetValue(OrientationProperty); }
150
Orientation
value = (
Orientation
)o;
151
return value ==
Orientation
.Horizontal
152
|| value ==
Orientation
.Vertical;
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
2757
hsb.SetValue(ScrollBar.OrientationProperty,
Orientation
.Horizontal);
src\Framework\System\Windows\Controls\Slider.cs (7)
283
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(Slider),
284
new FrameworkPropertyMetadata(
Orientation
.Horizontal),
290
public
Orientation
Orientation
292
get { return (
Orientation
)GetValue(OrientationProperty); }
943
if (Orientation ==
Orientation
.Horizontal)
962
if (Orientation ==
Orientation
.Horizontal)
1014
if (Orientation ==
Orientation
.Horizontal)
src\Framework\System\Windows\Controls\Stack.cs (18)
40
Orientation
Orientation { get; }
104
SetVerticalOffset(VerticalOffset - ((Orientation ==
Orientation
.Vertical) ? 1.0 : ScrollViewer._scrollLineDelta));
112
SetVerticalOffset(VerticalOffset + ((Orientation ==
Orientation
.Vertical) ? 1.0 : ScrollViewer._scrollLineDelta));
120
SetHorizontalOffset(HorizontalOffset - ((Orientation ==
Orientation
.Horizontal) ? 1.0 : ScrollViewer._scrollLineDelta));
128
SetHorizontalOffset(HorizontalOffset + ((Orientation ==
Orientation
.Horizontal) ? 1.0 : ScrollViewer._scrollLineDelta));
170
SetVerticalOffset(VerticalOffset - SystemParameters.WheelScrollLines * ((Orientation ==
Orientation
.Vertical) ? 1.0 : ScrollViewer._scrollLineDelta));
185
SetVerticalOffset(VerticalOffset + SystemParameters.WheelScrollLines * ((Orientation ==
Orientation
.Vertical) ? 1.0 : ScrollViewer._scrollLineDelta));
198
SetHorizontalOffset(HorizontalOffset - 3.0 * ((Orientation ==
Orientation
.Horizontal) ? 1.0 : ScrollViewer._scrollLineDelta));
206
SetHorizontalOffset(HorizontalOffset + 3.0 * ((Orientation ==
Orientation
.Horizontal) ? 1.0 : ScrollViewer._scrollLineDelta));
309
public
Orientation
Orientation
311
get { return (
Orientation
) GetValue(OrientationProperty); }
321
typeof(
Orientation
),
324
Orientation
.Vertical,
341
protected internal override
Orientation
LogicalOrientation
565
bool fHorizontal = (measureElement.Orientation ==
Orientation
.Horizontal);
731
bool fHorizontal = (arrangeElement.Orientation ==
Orientation
.Horizontal);
887
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
929
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
src\Framework\System\Windows\Controls\ToolBar.cs (5)
110
typeof(
Orientation
),
113
Orientation
.Horizontal,
132
public
Orientation
Orientation
136
return (
Orientation
) GetValue(OrientationProperty);
566
if (toolBarPanel.Orientation ==
Orientation
.Horizontal)
src\Framework\System\Windows\Controls\ToolBarTray.cs (10)
101
typeof(
Orientation
),
104
Orientation
.Horizontal,
123
public
Orientation
Orientation
125
get { return (
Orientation
) GetValue(OrientationProperty); }
367
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
435
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
541
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
691
if (Orientation ==
Orientation
.Horizontal)
739
if (Orientation ==
Orientation
.Horizontal)
788
bool fHorizontal = Orientation ==
Orientation
.Horizontal;
src\Framework\System\Windows\Controls\VirtualizingStackPanel.cs (33)
144
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
164
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
184
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
204
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
224
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
244
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
264
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
284
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
307
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
335
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
360
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
380
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
409
(isHorizontal==(Orientation ==
Orientation
.Horizontal)),
513
if (!IsVSP45Compat && Orientation ==
Orientation
.Horizontal)
639
if (!IsVSP45Compat && Orientation ==
Orientation
.Vertical)
734
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
875
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
1386
SetAnchorInformation(Orientation ==
Orientation
.Horizontal);
1402
SetAnchorInformation(Orientation ==
Orientation
.Horizontal);
1440
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
1730
public
Orientation
Orientation
1732
get { return (
Orientation
) GetValue(OrientationProperty); }
1748
protected internal override
Orientation
LogicalOrientation
1757
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(VirtualizingStackPanel),
1758
new FrameworkPropertyMetadata(
Orientation
.Vertical,
2130
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
3274
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
3721
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
3897
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
4044
isChildHorizontal = (virtualizingChild.ItemsHost.LogicalOrientationPublic ==
Orientation
.Horizontal);
10858
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
10899
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
11074
bool fHorizontal = (Orientation ==
Orientation
.Horizontal);
src\Framework\System\Windows\Controls\WrapPanel.cs (15)
54
_orientation = (
Orientation
) OrientationProperty.GetDefaultValue(DependencyObjectType);
149
Orientation
.Horizontal,
160
public
Orientation
Orientation
172
p._orientation = (
Orientation
) e.NewValue;
175
private
Orientation
_orientation;
189
internal UVSize (
Orientation
orientation, double width, double height)
197
internal UVSize (
Orientation
orientation)
205
private
Orientation
_orientation;
209
get { return (_orientation ==
Orientation
.Horizontal ? U : V); }
210
set { if(_orientation ==
Orientation
.Horizontal) U = value; else V = value; }
214
get { return (_orientation ==
Orientation
.Horizontal ? V : U); }
215
set { if(_orientation ==
Orientation
.Horizontal) V = value; else U = value; }
290
double itemU = (Orientation ==
Orientation
.Horizontal ? itemWidth : itemHeight);
295
bool useItemU = (Orientation ==
Orientation
.Horizontal ? itemWidthSet : itemHeightSet);
345
bool isHorizontal = (Orientation ==
Orientation
.Horizontal);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (4)
3825
bamlMember.TypeConverterType = typeof(System.Windows.Controls.
Orientation
);
7230
bamlMember.TypeConverterType = typeof(System.Windows.Controls.
Orientation
);
7579
bamlMember.TypeConverterType = typeof(System.Windows.Controls.
Orientation
);
8168
bamlMember.TypeConverterType = typeof(System.Windows.Controls.
Orientation
);
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (2)
11685
typeof(System.Windows.Controls.
Orientation
),
11688
bamlType.TypeConverterType = typeof(System.Windows.Controls.
Orientation
);
PresentationFramework.Aero (7)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (2)
30
if (Orientation ==
Orientation
.Vertical)
41
bool horizontal = Orientation ==
Orientation
.Horizontal;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
111
public
Orientation
Orientation
113
get { return (
Orientation
)GetValue(OrientationProperty); }
121
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(
Orientation
.Vertical, FrameworkPropertyMetadataOptions.AffectsRender));
260
if (Orientation ==
Orientation
.Vertical)
PresentationFramework.Classic (6)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
55
bool horizontal = Orientation ==
Orientation
.Horizontal;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
111
public
Orientation
Orientation
113
get { return (
Orientation
)GetValue(OrientationProperty); }
121
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(
Orientation
.Vertical, FrameworkPropertyMetadataOptions.AffectsRender));
260
if (Orientation ==
Orientation
.Vertical)
PresentationFramework.Luna (6)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
81
bool horizontal = Orientation ==
Orientation
.Horizontal;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
111
public
Orientation
Orientation
113
get { return (
Orientation
)GetValue(OrientationProperty); }
121
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(
Orientation
.Vertical, FrameworkPropertyMetadataOptions.AffectsRender));
260
if (Orientation ==
Orientation
.Vertical)
PresentationFramework.Royale (6)
Microsoft\Windows\Themes\DataGridHeaderBorder.cs (1)
37
bool horizontal = Orientation ==
Orientation
.Horizontal;
parent\Shared\Microsoft\Windows\Themes\DataGridHeaderBorder.cs (5)
111
public
Orientation
Orientation
113
get { return (
Orientation
)GetValue(OrientationProperty); }
121
DependencyProperty.Register("Orientation", typeof(
Orientation
), typeof(DataGridHeaderBorder), new FrameworkPropertyMetadata(
Orientation
.Vertical, FrameworkPropertyMetadataOptions.AffectsRender));
260
if (Orientation ==
Orientation
.Vertical)
System.Activities.Presentation (84)
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorEditor.cs (17)
405
Orientation
orientation = (Math.Abs(slopeOfLine) < 1) ?
Orientation
.Horizontal :
Orientation
.Vertical;
408
if (orientation ==
Orientation
.Horizontal)
418
Point editPointLocation = (orientation ==
Orientation
.Horizontal) ? new Point(previous.Location.X + editPointOffset, previous.Location.Y) : new Point(previous.Location.X, previous.Location.Y + editPointOffset);
426
Orientation
orientation = (Math.Abs(slopeOfLine) < 1) ?
Orientation
.Horizontal :
Orientation
.Vertical;
429
if (orientation ==
Orientation
.Horizontal)
439
Point editPointLocation = (orientation ==
Orientation
.Horizontal) ? new Point(next.Location.X + editPointOffset, next.Location.Y) : new Point(next.Location.X, next.Location.Y + editPointOffset);
509
Orientation
orientation = (Math.Abs(slopeOfLine) < 1) ?
Orientation
.Horizontal :
Orientation
.Vertical;
510
previous.Location = (orientation ==
Orientation
.Horizontal) ? new Point(previous.Location.X, newPoint.Y) : new Point(newPoint.X, previous.Location.Y);
514
orientation = (Math.Abs(slopeOfLine) < 1) ?
Orientation
.Horizontal :
Orientation
.Vertical;
515
next.Location = (orientation ==
Orientation
.Horizontal) ? new Point(next.Location.X, newPoint.Y) : new Point(newPoint.X, next.Location.Y);
System.Activities.Presentation\System\Activities\Presentation\FreeFormEditing\ConnectorRouter.cs (67)
315
ref
Orientation
orientationA, out ConnectorSegment intersectionSegmentA, out ConnectorSegment intersectionSegmentB, Size margin, ref bool noEscapeA)
383
escapePoint = EscapeProcessI(coverSet, Z, v,
Orientation
.Horizontal, margin);
386
orientationA =
Orientation
.Vertical;
394
escapePoint = EscapeProcessI(coverSet, Z, h,
Orientation
.Vertical, margin);
397
orientationA =
Orientation
.Horizontal;
435
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Vertical,
445
orientationA =
Orientation
.Horizontal;
460
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Horizontal,
470
orientationA =
Orientation
.Vertical;
485
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Vertical,
495
orientationA =
Orientation
.Horizontal;
510
Nullable<Point> escape = EscapeProcessII(coverSet,
Orientation
.Horizontal,
520
orientationA =
Orientation
.Vertical;
535
ConnectorSegment escapeLine,
Orientation
orientation, Size margin)
539
ConnectorSegment lesserCover = coverSet.GetCover(Z, (orientation ==
Orientation
.Horizontal) ? DesignerEdges.Left : DesignerEdges.Bottom);
546
ConnectorSegment higherCover = coverSet.GetCover(Z, (orientation ==
Orientation
.Horizontal) ? DesignerEdges.Right : DesignerEdges.Top);
563
if (((orientation ==
Orientation
.Vertical) ? direction.X : direction.Y).IsEqualTo(0))
572
if (orientation ==
Orientation
.Vertical)
582
if ((orientation ==
Orientation
.Vertical))
604
static Nullable<Point> EscapeProcessII(CoverSet coverSet,
Orientation
orientation, ref List<Point> escapePointsA,
644
if (orientation ==
Orientation
.Horizontal)
646
escapePointI = EscapeProcessI(coverSet, R, v,
Orientation
.Horizontal, margin);
654
escapePointI = EscapeProcessI(coverSet, R, h,
Orientation
.Vertical, margin);
664
escapePointI = EscapeProcessI(coverSet, R, h,
Orientation
.Vertical, margin);
672
escapePointI = EscapeProcessI(coverSet, R, v,
Orientation
.Horizontal, margin);
757
Orientation
orientationA =
Orientation
.Horizontal;
758
Orientation
orientationB =
Orientation
.Horizontal;
794
Orientation
tempOrientation = orientationA;
833
Orientation
tempOrientation = orientationA;
965
ConnectorSegment b = ConnectorSegment.ConstructBoundSegment(coverSet, k, (a.Orientation ==
Orientation
.Horizontal) ?
Orientation
.Vertical :
Orientation
.Horizontal);
1014
static List<ConnectorSegment> GetSegmentsForOrientation(CoverSet coverSet,
Orientation
orientation)
1017
if (orientation ==
Orientation
.Horizontal)
1028
static void ShrinkCoversInwards(CoverSet coverSet,
Orientation
orientation, double shrunkLength)
1037
static void ExtendCoversOutwards(CoverSet coverSet,
Orientation
orientation, double extendedLength)
1064
Orientation
orientation;
1078
this.orientation = (this.point1.X.IsEqualTo(this.point2.X) ?
Orientation
.Vertical :
Orientation
.Horizontal);
1097
public
Orientation
Orientation
1112
return ConstructBoundSegment(coverSet, a, a.X.IsEqualTo(b.X) ?
Orientation
.Vertical :
Orientation
.Horizontal);
1115
public static ConnectorSegment ConstructBoundSegment(CoverSet coverSet, Point a,
Orientation
orientation)
1117
return (orientation ==
Orientation
.Horizontal) ? SegmentFromLeftToRightCover(coverSet, a) : SegmentFromBottomToTopCover(coverSet, a);
1146
return (this.orientation ==
Orientation
.Horizontal) ?
1181
double k = ((this.orientation ==
Orientation
.Horizontal) ? p.X : p.Y);
1182
double k1 = ((this.orientation ==
Orientation
.Horizontal) ? this.point1.X : this.point1.Y);
1183
double k2 = ((this.orientation ==
Orientation
.Horizontal) ? this.point2.X : this.point2.Y);
1185
return new Point((this.orientation ==
Orientation
.Horizontal) ? k : p.X, (this.orientation ==
Orientation
.Horizontal) ? p.Y : k);
1190
if (this.Orientation ==
Orientation
.Horizontal)
1235
ConnectorSegment vertical = (this.orientation ==
Orientation
.Vertical) ? this : segment;
1236
ConnectorSegment horizontal = (this.orientation ==
Orientation
.Vertical) ? segment : this;
1253
if ((this.orientation ==
Orientation
.Horizontal && !p.Y.IsEqualTo(this.point1.Y)) || (this.orientation ==
Orientation
.Vertical && !p.X.IsEqualTo(this.point1.X)))
1258
double k = (this.orientation ==
Orientation
.Horizontal) ? p.X : p.Y;
1259
double k1 = (this.orientation ==
Orientation
.Horizontal) ? this.point1.X : this.point1.Y;
1260
double k2 = (this.orientation ==
Orientation
.Horizontal) ? this.point2.X : this.point2.Y;
1266
Orientation
newOrientation = (this.orientation ==
Orientation
.Horizontal) ?
Orientation
.Vertical :
Orientation
.Horizontal;
1268
if (newOrientation ==
Orientation
.Horizontal)
1283
return (this.orientation ==
Orientation
.Horizontal) ? p.Y.IsEqualTo(this.point1.Y) : p.X.IsEqualTo(this.point1.X);
1321
List<ConnectorSegment> covers = (cover.Orientation ==
Orientation
.Vertical) ? this.verticalCovers : this.horizontalCovers;