347 references to FlowDirection
PresentationCore (38)
Core\CSharp\MS\Internal\TextFormatting\FullTextLine.cs (4)
1496(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight), 1512(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight),
Core\CSharp\MS\Internal\TextFormatting\GenericTextProperties.cs (4)
239FlowDirection flowDirection, 281public override FlowDirection FlowDirection 363internal void SetFlowDirection(FlowDirection flowDirection) 394private FlowDirection _flowDirection;
Core\CSharp\MS\Internal\TextFormatting\LineServices.cs (4)
1623public static FlowDirection LsTFlowToFlowDirection(LsTFlow lstflow) 1630return FlowDirection.LeftToRight; 1635return FlowDirection.RightToLeft; 1644return FlowDirection.LeftToRight;
Core\CSharp\MS\Internal\TextFormatting\SimpleTextLine.cs (1)
896FlowDirection.LeftToRight,
Core\CSharp\MS\Internal\TextFormatting\TextProperties.cs (1)
52if (_paragraphProperties.FlowDirection == FlowDirection.RightToLeft)
Core\CSharp\MS\Internal\TextFormatting\TextStore.cs (5)
1015FlowDirection flowDirection 1018bool leftToRight = (flowDirection == FlowDirection.LeftToRight); 1213scope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 1693runInfo.TextModifierScope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 2732else if (!stack.Push(modifier.FlowDirection == FlowDirection.LeftToRight))
Core\CSharp\System\Windows\Media\FormattedText.cs (14)
55FlowDirection flowDirection, 85FlowDirection flowDirection, 119FlowDirection flowDirection, 151FlowDirection flowDirection, 185FlowDirection flowDirection, 210FlowDirection flowDirection, 221private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, 308private static void ValidateFlowDirection(FlowDirection flowDirection, string parameterName) 310if ((int)flowDirection < 0 || (int)flowDirection > (int)FlowDirection.RightToLeft) 311throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1216case FlowDirection.LeftToRight: 1217case FlowDirection.RightToLeft: 1249public FlowDirection FlowDirection 1684if (FlowDirection == FlowDirection.RightToLeft)
Core\CSharp\System\Windows\Media\TextFormatting\TextBounds.cs (3)
34FlowDirection flowDirection, 66public FlowDirection FlowDirection 72private FlowDirection _flowDirection;
Core\CSharp\System\Windows\Media\TextFormatting\TextModifier.cs (1)
60public abstract FlowDirection FlowDirection {get; }
Core\CSharp\System\Windows\Media\TextFormatting\TextParagraphProperties.cs (1)
35public abstract FlowDirection FlowDirection
PresentationFramework (281)
src\Framework\MS\Internal\Annotations\Component\MArkedHighlightComponent.cs (12)
685FlowDirection startFlowDirection = GetTextFlowDirection(start); 686FlowDirection endFlowDirection = GetTextFlowDirection(end); 688SetMarkerTransform(_leftMarker, start, null, startFlowDirection == FlowDirection.LeftToRight ? 1 : -1); 689SetMarkerTransform(_rightMarker, end, start, endFlowDirection == FlowDirection.LeftToRight ? -1 : 1); 813private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 819FlowDirection flowDirection; 830flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 859return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 866return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 891flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 896flowDirection = (sign > 0 ? FlowDirection.LeftToRight : FlowDirection.RightToLeft);
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1021&& this.FlowDirection == FlowDirection.RightToLeft 1256return (this.IsExpanded && this.FlowDirection == FlowDirection.RightToLeft &&
src\Framework\MS\Internal\Documents\DocumentPageHost.cs (1)
101pageVisualHost.SetValue(FlowDirectionProperty, FlowDirection.LeftToRight);
src\Framework\MS\Internal\Documents\FlowDocumentPaginator.cs (1)
387if (_document.FlowDirection == FlowDirection.RightToLeft)
src\Framework\MS\Internal\Documents\FlowDocumentView.cs (1)
188PtsHelper.UpdateMirroringTransform(FlowDirection, FlowDirection.LeftToRight, _pageVisual, safeArrangeSize.Width);
src\Framework\MS\Internal\Documents\PageCache.cs (3)
130FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty); 131if (flowDirection == FlowDirection.LeftToRight)
src\Framework\MS\Internal\Documents\TextBoxLine.cs (3)
237_line.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None)); 249internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 506private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
src\Framework\MS\Internal\Documents\TextBoxView.cs (1)
644FlowDirection flowDirection;
src\Framework\MS\Internal\Documents\TextDocumentView.cs (15)
3334FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3335if (flowDirection == FlowDirection.RightToLeft) 3352FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3353if (flowDirection == FlowDirection.RightToLeft) 3378FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3379if (flowDirection == FlowDirection.RightToLeft) 3396FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3397if (flowDirection == FlowDirection.RightToLeft) 3414FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3415if (flowDirection == FlowDirection.RightToLeft)
src\Framework\MS\Internal\Ink\InkCollectionBehavior.cs (1)
420_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
src\Framework\MS\Internal\Ink\SelectionEditingBehavior.cs (1)
122(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
src\Framework\MS\Internal\Ink\SelectionEditor.cs (1)
139(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
src\Framework\MS\Internal\PtsHost\BaseParaClient.cs (6)
103_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 236internal FlowDirection ThisFlowDirection { get { return _flowDirection; } } 237internal FlowDirection ParentFlowDirection { get { return _flowDirectionParent; } } 238internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 308protected FlowDirection _flowDirectionParent; 309protected FlowDirection _flowDirection;
src\Framework\MS\Internal\PtsHost\CellParaClient.cs (2)
90internal void Arrange(int du, int dv, PTS.FSRECT rcTable, FlowDirection tableFlowDirection, PageContext pageContext) 130_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ContainerParagraph.cs (3)
498uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 671uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 808uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FigureParaClient.cs (1)
235_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\FigureParagraph.cs (1)
141uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FloaterParaClient.cs (1)
221_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\FloaterParagraph.cs (2)
186uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 401uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\FlowDocumentPage.cs (3)
899FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 900PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
src\Framework\MS\Internal\PtsHost\Line.cs (8)
284_mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft); 412FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 423FlowDirection flowDirection; 442FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 483internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 1004private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
src\Framework\MS\Internal\PtsHost\LineBase.cs (5)
199FlowDirection inlineFlowDirection = inline.FlowDirection; 200FlowDirection parentFlowDirection = inlineFlowDirection; 206parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 276FlowDirection parentFlowDirection = inline.FlowDirection; 280parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\PtsHost\ListMarkerLine.cs (1)
112bool mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft);
src\Framework\MS\Internal\PtsHost\ListParaClient.cs (1)
70uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\Pts.cs (6)
228internal static FlowDirection FswdirToFlowDirection(uint fswdir) 230FlowDirection fd; 234fd = FlowDirection.RightToLeft; 237fd = FlowDirection.LeftToRight; 246internal static uint FlowDirectionToFswdir(FlowDirection fd) 251case FlowDirection.RightToLeft:
src\Framework\MS\Internal\PtsHost\PtsHelper.cs (2)
45internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
src\Framework\MS\Internal\PtsHost\Section.cs (2)
127StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 233fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\StructuralCache.cs (2)
334internal FlowDirection PageFlowDirection 593private FlowDirection _pageFlowDirection;
src\Framework\MS\Internal\PtsHost\SubpageParagraph.cs (3)
147uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 366uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 536uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
src\Framework\MS\Internal\PtsHost\TableParagraph.cs (1)
175fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\PtsHost\TextParaClient.cs (2)
1880FlowDirection flowDirection; 1982FlowDirection flowDirection;
src\Framework\MS\Internal\PtsHost\TextParagraph.cs (1)
162fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
src\Framework\MS\Internal\Text\ComplexLine.cs (8)
184FlowDirection flowDirection; 191FlowDirection parentFlowDirection = _owner.FlowDirection; 197parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 424FlowDirection inlineFlowDirection = inline.FlowDirection; 425FlowDirection parentFlowDirection = inlineFlowDirection; 429parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 497FlowDirection parentFlowDirection = inline.FlowDirection; 501parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\MS\Internal\Text\Line.cs (3)
93_mirror = (lineProperties.FlowDirection == FlowDirection.RightToLeft); 141internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 462protected Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
src\Framework\MS\Internal\Text\LineProperties.cs (5)
43public override FlowDirection FlowDirection { get { return _flowDirection; } } 132_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 314private FlowDirection _flowDirection; 338public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } } 414public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } }
src\Framework\MS\Internal\Text\TextSpanModifier.cs (3)
34private FlowDirection _flowDirection; 54public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 151public override FlowDirection FlowDirection
src\Framework\System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
53public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore) : this(originalPaginator, new XmlStreamStore(annotationStore), FlowDirection.LeftToRight) 63public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore, FlowDirection flowDirection) : this(originalPaginator, new XmlStreamStore(annotationStore), flowDirection) 72public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore) : this(originalPaginator, annotationStore, FlowDirection.LeftToRight) 82public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore, FlowDirection flowDirection) 537private FlowDirection _flowDirection;
src\Framework\System\Windows\Controls\ComboBox.cs (4)
935FlowDirection parentFD = parent == null ? FlowDirection.LeftToRight : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1345bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Controls\DataGrid.cs (1)
5676if (this.FlowDirection == FlowDirection.RightToLeft)
src\Framework\System\Windows\Controls\DataGridHelper.cs (1)
618private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper));
src\Framework\System\Windows\Controls\DateTimeHelper.cs (1)
214bool isRightToLeft = fe.FlowDirection==FlowDirection.RightToLeft;
src\Framework\System\Windows\Controls\GridSplitter.cs (1)
962if (FlowDirection == FlowDirection.RightToLeft)
src\Framework\System\Windows\Controls\Image.cs (1)
424style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
src\Framework\System\Windows\Controls\ItemsControl.cs (2)
3349FlowDirection flowDirection = element.FlowDirection; 3350return (flowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Controls\MediaElement.cs (1)
115style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
src\Framework\System\Windows\Controls\MenuItem.cs (2)
1934FlowDirection flowDirection = FlowDirection; 1937if (flowDirection == FlowDirection.RightToLeft)
src\Framework\System\Windows\Controls\Primitives\DocumentPageView.cs (1)
398if (FlowDirection == FlowDirection.RightToLeft)
src\Framework\System\Windows\Controls\Primitives\Popup.cs (4)
1839if (parent != null && (FlowDirection)parent.GetValue(FlowDirectionProperty) == FlowDirection.RightToLeft) 2398if ((FlowDirection)target.GetValue(FlowDirectionProperty) != 2399(FlowDirection)child.GetValue(FlowDirectionProperty))
src\Framework\System\Windows\Controls\Primitives\PopupRoot.cs (3)
314FlowDirection childFlowDirection = (FlowDirection)child.GetValue(FlowDirectionProperty); 315FlowDirection thisFlowDirection = FlowDirection;
src\Framework\System\Windows\Controls\Primitives\ScrollBar.cs (1)
805else if (sb.FlowDirection == FlowDirection.LeftToRight)
src\Framework\System\Windows\Controls\ScrollViewer.cs (1)
1094bool fInvertForRTL = (FlowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Controls\Slider.cs (1)
205return slider.IsDirectionReversed != (slider.FlowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Controls\TextBlock.cs (2)
2289FlowDirection flowDirection = FlowDirection.LeftToRight;
src\Framework\System\Windows\Controls\TextRangeAdaptor.cs (4)
423FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 427case FlowDirection.LeftToRight: 431case FlowDirection.RightToLeft:
src\Framework\System\Windows\Controls\TreeView.cs (1)
634bool invert = (FlowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Controls\TreeViewItem.cs (1)
649bool invert = (FlowDirection == FlowDirection.RightToLeft);
src\Framework\System\Windows\Documents\Block.cs (2)
274public FlowDirection FlowDirection 276get { return (FlowDirection)GetValue(FlowDirectionProperty); }
src\Framework\System\windows\Documents\CaretElement.cs (6)
668FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 670flowDirection == FlowDirection.RightToLeft ? -20 : 20, 713FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 714if (flowDirection == FlowDirection.RightToLeft)
src\Framework\System\Windows\Documents\FixedPage.cs (2)
63FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange); 613return FlowDirection.LeftToRight;
src\Framework\System\Windows\Documents\FixedSOMFixedBlock.cs (1)
218element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
src\Framework\System\Windows\Documents\FixedSOMTextRun.cs (2)
246element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 250element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
src\Framework\System\Windows\Documents\FlowDocument.cs (2)
364public FlowDirection FlowDirection 366get { return (FlowDirection)GetValue(FlowDirectionProperty); }
src\Framework\System\Windows\Documents\Inline.cs (2)
144public FlowDirection FlowDirection 146get { return (FlowDirection)GetValue(FlowDirectionProperty); }
src\Framework\System\Windows\Documents\ListItem.cs (2)
241public FlowDirection FlowDirection 243get { return (FlowDirection)GetValue(FlowDirectionProperty); }
src\Framework\System\Windows\Documents\TableCell.cs (2)
272public FlowDirection FlowDirection 274get { return (FlowDirection)GetValue(FlowDirectionProperty); }
src\Framework\System\windows\Documents\TextEditor.cs (5)
509FlowDirection inputFlowDirection; 512inputFlowDirection = FlowDirection.RightToLeft; 516inputFlowDirection = FlowDirection.LeftToRight; 520FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\System\windows\Documents\TextEditorCharacters.cs (2)
453TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 462TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
src\Framework\System\windows\Documents\TextEditorParagraphs.cs (2)
160FlowDirection.LeftToRight, /*applyToParagraphs*/true); 170FlowDirection.RightToLeft, /*applyToParagraphs*/true);
src\Framework\System\windows\Documents\TextEditorSelection.cs (9)
1150FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(newMovingPosition); 1151FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2053FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty); 2055return (flowDirection == FlowDirection.RightToLeft); 2268FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(innerMovingPosition); 2269FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2447private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2456return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
src\Framework\System\windows\Documents\TextEditorTyping.cs (9)
817FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; 821flowDirection == FlowDirection.LeftToRight && margin.Left > 0 || 822flowDirection == FlowDirection.RightToLeft && margin.Right > 0 || 1251((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1256UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1257This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1267((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true); 1272UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1273This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
src\Framework\System\Windows\Documents\TextRange.cs (2)
1662(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
src\Framework\System\Windows\Documents\TextRangeEdit.cs (18)
841FlowDirection parentFlowDirection; 845parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 849parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 853FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty); 1061FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1103private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1107textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1111textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1324FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1325FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1326FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1859FlowDirection flowDirection = run.FlowDirection; 1863while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
src\Framework\System\Windows\Documents\TextRangeEditLists.cs (2)
391FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty);
src\Framework\System\windows\Documents\TextSelection.cs (18)
513FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 518initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1999FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 2000FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 2002if (renderScopeFlowDirection == FlowDirection.LeftToRight) 2004if (paragraphFlowDirection == FlowDirection.LeftToRight && 2010else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2019if (paragraphFlowDirection == FlowDirection.LeftToRight && 2025else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2275FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2281if (flowDirection != FlowDirection.RightToLeft) 2401FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2407FlowDirection pagraphFlowDirection = paragraphOrBlockUIContainer.FlowDirection;
src\Framework\System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
113internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue)
src\Framework\System\Windows\FrameworkElement.cs (30)
131if (((FlowDirection)FlowDirectionProperty.GetDefaultValue(DependencyObjectType)) == FlowDirection.RightToLeft) 3646typeof(FlowDirection), 3649System.Windows.FlowDirection.LeftToRight, // default value 3682fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft; 3691public FlowDirection FlowDirection 3693get { return IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } 3701public static FlowDirection GetFlowDirection(DependencyObject element) 3704return (FlowDirection)element.GetValue(FlowDirectionProperty); 3711public static void SetFlowDirection(DependencyObject element, FlowDirection value) 3722FlowDirection value = (FlowDirection)o; 3723return value == FlowDirection.LeftToRight || value == FlowDirection.RightToLeft; 3972FlowDirection thisFlowDirection = fe.FlowDirection; 3973FlowDirection parentFlowDirection = FlowDirection.LeftToRight; // Assume LTR if no parent is found. 3997parentFlowDirection = (FlowDirection)parentFCE.GetValue(FlowDirectionProperty); 4011private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual) 4013FlowDirection flowDirection = FlowDirection.LeftToRight; 4033flowDirection = (FlowDirection)flowDirectionValue; 4050internal static bool ApplyMirrorTransform(FlowDirection parentFD, FlowDirection thisFD) 4052return ((parentFD == FlowDirection.LeftToRight && thisFD == FlowDirection.RightToLeft) || 4053(parentFD == FlowDirection.RightToLeft && thisFD == FlowDirection.LeftToRight));
src\Framework\System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2478bamlMember.TypeConverterType = typeof(System.Windows.FlowDirection);
src\Framework\System\Windows\Shell\WindowChromeWorker.cs (2)
496if (_window.FlowDirection == FlowDirection.RightToLeft) 736bool compliment = _window.FlowDirection == FlowDirection.RightToLeft;
src\Framework\System\Windows\Window.cs (7)
1953if (FlowDirection == FlowDirection.RightToLeft) 5193if (FlowDirection == FlowDirection.RightToLeft) 7157if ( this.FlowDirection == FlowDirection.LeftToRight ) 7161else if ( this.FlowDirection == FlowDirection.RightToLeft ) 7913private NativeMethods.POINT GetWindowScreenLocation(FlowDirection flowDirection) 7917if (flowDirection == FlowDirection.RightToLeft) 8075internal NativeMethods.POINT GetPointRelativeToWindow( int x, int y, FlowDirection flowDirection )
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
718if (FlowDirection == FlowDirection.RightToLeft) 726if (FlowDirection == FlowDirection.RightToLeft)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
27public static FlowDirection FlowDirection 37return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Classic (3)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
27public static FlowDirection FlowDirection 37return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Luna (5)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
299if (FlowDirection == FlowDirection.RightToLeft) 306if (FlowDirection == FlowDirection.RightToLeft)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
27public static FlowDirection FlowDirection 37return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Royale (5)
parent\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
299if (FlowDirection == FlowDirection.RightToLeft) 306if (FlowDirection == FlowDirection.RightToLeft)
parent\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
27public static FlowDirection FlowDirection 37return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
System.Activities.Core.Presentation (2)
System\Activities\Core\Presentation\FlowchartConnectionPointsAdorner.cs (2)
26this.FlowDirection = isTextRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
System.Activities.Presentation (8)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\Editors\RTLValueConverter.cs (4)
28FlowDirection returnValue = FlowDirection.LeftToRight; 37if (targetType == typeof(FlowDirection)) 43returnValue = (FlowDirection)PropertyInspectorResources.GetResources()["SelectedControlFlowDirectionRTL"];
System.Activities.Presentation\System\Activities\Presentation\Base\Core\Internal\PropertyEditing\PropertyInspector.xaml.cs (3)
228if (parentElement != null && parentElement.FlowDirection == FlowDirection.RightToLeft) 535FlowDirection commmonFD = this.FlowDirection; 556commmonFD = FlowDirection.LeftToRight;
System.Activities.Presentation\System\Activities\Presentation\View\DesignerView.xaml.cs (1)
1296return element.FlowDirection == FlowDirection.RightToLeft;