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