386 references to FlowDirection
Microsoft.VisualStudio.LanguageServices (1)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyphViewModel.cs (1)
65_lazyToolTipTextBlock.FlowDirection = FlowDirection.LeftToRight;
PresentationCore (38)
MS\Internal\TextFormatting\FullTextLine.cs (4)
1463(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight), 1479(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight),
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
238FlowDirection flowDirection, 280public override FlowDirection FlowDirection 362internal void SetFlowDirection(FlowDirection flowDirection) 393private FlowDirection _flowDirection;
MS\Internal\TextFormatting\LineServices.cs (4)
1360public static FlowDirection LsTFlowToFlowDirection(LsTFlow lstflow) 1367return FlowDirection.LeftToRight; 1372return FlowDirection.RightToLeft; 1381return FlowDirection.LeftToRight;
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
886FlowDirection.LeftToRight,
MS\Internal\TextFormatting\TextProperties.cs (1)
50if (_paragraphProperties.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\TextFormatting\TextStore.cs (5)
1004FlowDirection flowDirection 1007bool leftToRight = (flowDirection == FlowDirection.LeftToRight); 1202scope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 1682runInfo.TextModifierScope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 2722else if (!stack.Push(modifier.FlowDirection == FlowDirection.LeftToRight))
System\Windows\Media\FormattedText.cs (14)
53FlowDirection flowDirection, 83FlowDirection flowDirection, 117FlowDirection flowDirection, 149FlowDirection flowDirection, 183FlowDirection flowDirection, 208FlowDirection flowDirection, 219private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, 298private static void ValidateFlowDirection(FlowDirection flowDirection, string parameterName) 300if ((int)flowDirection < 0 || (int)flowDirection > (int)FlowDirection.RightToLeft) 301throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1203case FlowDirection.LeftToRight: 1204case FlowDirection.RightToLeft: 1236public FlowDirection FlowDirection 1667if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Media\textformatting\TextBounds.cs (3)
32FlowDirection flowDirection, 64public FlowDirection FlowDirection 70private FlowDirection _flowDirection;
System\Windows\Media\textformatting\TextModifier.cs (1)
58public abstract FlowDirection FlowDirection {get; }
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
30public abstract FlowDirection FlowDirection
PresentationFramework (295)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (12)
664FlowDirection startFlowDirection = GetTextFlowDirection(start); 665FlowDirection endFlowDirection = GetTextFlowDirection(end); 667SetMarkerTransform(_leftMarker, start, null, startFlowDirection == FlowDirection.LeftToRight ? 1 : -1); 668SetMarkerTransform(_rightMarker, end, start, endFlowDirection == FlowDirection.LeftToRight ? -1 : 1); 791private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 797FlowDirection flowDirection; 808flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 837return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 844return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 869flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 874flowDirection = (sign > 0 ? FlowDirection.LeftToRight : FlowDirection.RightToLeft);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
1005&& this.FlowDirection == FlowDirection.RightToLeft 1241return (this.IsExpanded && this.FlowDirection == FlowDirection.RightToLeft &&
MS\Internal\Documents\DocumentPageHost.cs (1)
100pageVisualHost.SetValue(FlowDirectionProperty, FlowDirection.LeftToRight);
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
373if (_document.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\Documents\FlowDocumentView.cs (1)
183PtsHelper.UpdateMirroringTransform(FlowDirection, FlowDirection.LeftToRight, _pageVisual, safeArrangeSize.Width);
MS\Internal\Documents\PageCache.cs (3)
123FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty); 124if (flowDirection == FlowDirection.LeftToRight)
MS\Internal\Documents\TextBoxLine.cs (3)
235_line.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None)); 247internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 504private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Documents\TextBoxView.cs (1)
640FlowDirection flowDirection;
MS\Internal\Documents\TextDocumentView.cs (15)
3325FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3326if (flowDirection == FlowDirection.RightToLeft) 3343FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3344if (flowDirection == FlowDirection.RightToLeft) 3369FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3370if (flowDirection == FlowDirection.RightToLeft) 3387FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3388if (flowDirection == FlowDirection.RightToLeft) 3405FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3406if (flowDirection == FlowDirection.RightToLeft)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
368_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
119(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\Ink\SelectionEditor.cs (1)
132(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\PtsHost\BaseParaClient.cs (6)
88_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 221internal FlowDirection ThisFlowDirection { get { return _flowDirection; } } 222internal FlowDirection ParentFlowDirection { get { return _flowDirectionParent; } } 223internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 288protected FlowDirection _flowDirectionParent; 289protected FlowDirection _flowDirection;
MS\Internal\PtsHost\CellParaClient.cs (2)
78internal void Arrange(int du, int dv, PTS.FSRECT rcTable, FlowDirection tableFlowDirection, PageContext pageContext) 118_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
486uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 652uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 782uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
208_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
131uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
196_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
178uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 386uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
877FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 878PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
MS\Internal\PtsHost\Line.cs (8)
281_mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft); 409FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 420FlowDirection flowDirection; 439FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 480internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 1001private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\PtsHost\LineBase.cs (5)
194FlowDirection inlineFlowDirection = inline.FlowDirection; 195FlowDirection parentFlowDirection = inlineFlowDirection; 201parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 271FlowDirection parentFlowDirection = inline.FlowDirection; 275parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListMarkerLine.cs (1)
108bool mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft);
MS\Internal\PtsHost\ListParaClient.cs (1)
60uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\Pts.cs (6)
224internal static FlowDirection FswdirToFlowDirection(uint fswdir) 226FlowDirection fd; 230fd = FlowDirection.RightToLeft; 233fd = FlowDirection.LeftToRight; 242internal static uint FlowDirectionToFswdir(FlowDirection fd) 247case FlowDirection.RightToLeft:
MS\Internal\PtsHost\PtsHelper.cs (2)
41internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
MS\Internal\PtsHost\Section.cs (2)
123StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 224fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\StructuralCache.cs (2)
330internal FlowDirection PageFlowDirection 589private FlowDirection _pageFlowDirection;
MS\Internal\PtsHost\SubpageParagraph.cs (3)
134uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 341uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 502uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
171fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\TextParaClient.cs (2)
1680FlowDirection flowDirection; 1777FlowDirection flowDirection;
MS\Internal\PtsHost\TextParagraph.cs (1)
158fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (8)
181FlowDirection flowDirection; 188FlowDirection parentFlowDirection = _owner.FlowDirection; 194parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 418FlowDirection inlineFlowDirection = inline.FlowDirection; 419FlowDirection parentFlowDirection = inlineFlowDirection; 423parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 491FlowDirection parentFlowDirection = inline.FlowDirection; 495parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\Line.cs (3)
90_mirror = (lineProperties.FlowDirection == FlowDirection.RightToLeft); 138internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 459protected Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Text\LineProperties.cs (5)
40public override FlowDirection FlowDirection { get { return _flowDirection; } } 129_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 311private FlowDirection _flowDirection; 335public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } } 411public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } }
MS\Internal\Text\TextSpanModifier.cs (3)
26private FlowDirection _flowDirection; 46public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 143public override FlowDirection FlowDirection
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
43public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore) : this(originalPaginator, new XmlStreamStore(annotationStore), FlowDirection.LeftToRight) 53public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore, FlowDirection flowDirection) : this(originalPaginator, new XmlStreamStore(annotationStore), flowDirection) 62public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore) : this(originalPaginator, annotationStore, FlowDirection.LeftToRight) 72public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore, FlowDirection flowDirection) 526private FlowDirection _flowDirection;
System\Windows\Controls\ComboBox.cs (4)
933FlowDirection parentFD = parent == null ? FlowDirection.LeftToRight : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1343bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\DataGrid.cs (1)
5671if (this.FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\DataGridHelper.cs (1)
619private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper));
System\Windows\Controls\DateTimeHelper.cs (1)
214bool isRightToLeft = fe.FlowDirection==FlowDirection.RightToLeft;
System\Windows\Controls\GridSplitter.cs (1)
960if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Image.cs (1)
419style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\ItemsControl.cs (2)
3418FlowDirection flowDirection = element.FlowDirection; 3419return (flowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\MediaElement.cs (1)
110style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\MenuItem.cs (2)
1892FlowDirection flowDirection = FlowDirection; 1895if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
396if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\Popup.cs (4)
1835if (parent != null && (FlowDirection)parent.GetValue(FlowDirectionProperty) == FlowDirection.RightToLeft) 2392if ((FlowDirection)target.GetValue(FlowDirectionProperty) != 2393(FlowDirection)child.GetValue(FlowDirectionProperty))
System\Windows\Controls\Primitives\PopupRoot.cs (3)
317FlowDirection childFlowDirection = (FlowDirection)child.GetValue(FlowDirectionProperty); 318FlowDirection thisFlowDirection = FlowDirection;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
800else if (sb.FlowDirection == FlowDirection.LeftToRight)
System\Windows\Controls\ScrollViewer.cs (1)
1067bool fInvertForRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\Slider.cs (1)
203return slider.IsDirectionReversed != (slider.FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TextBlock.cs (2)
2202FlowDirection flowDirection = FlowDirection.LeftToRight;
System\Windows\Controls\TextRangeAdaptor.cs (4)
415FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 419case FlowDirection.LeftToRight: 423case FlowDirection.RightToLeft:
System\Windows\Controls\TreeView.cs (1)
633bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TreeViewItem.cs (1)
648bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Documents\Block.cs (2)
262public FlowDirection FlowDirection 264get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\CaretElement.cs (6)
664FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 666flowDirection == FlowDirection.RightToLeft ? -20 : 20, 709FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 710if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Documents\FixedPage.cs (3)
59FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange); 606return FlowDirection.LeftToRight; 1276FlowDirection.LeftToRight,
System\Windows\Documents\FixedPageStructure.cs (12)
274FlowDirection.LeftToRight, 288FlowDirection.LeftToRight, 305FlowDirection.LeftToRight, 342FlowDirection.LeftToRight, 376FlowDirection.LeftToRight, 422FlowDirection.LeftToRight, 438FlowDirection.LeftToRight, 486FlowDirection.LeftToRight, 502FlowDirection.LeftToRight, 561FlowDirection.LeftToRight, 630FlowDirection.LeftToRight, 661FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
212element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMSemanticBox.cs (1)
75FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTable.cs (1)
50FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTextRun.cs (2)
241element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 245element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FlowDocument.cs (2)
356public FlowDirection FlowDirection 358get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\Inline.cs (2)
139public FlowDirection FlowDirection 141get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\ListItem.cs (2)
234public FlowDirection FlowDirection 236get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\TableCell.cs (2)
265public FlowDirection FlowDirection 267get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\TextEditor.cs (5)
494FlowDirection inputFlowDirection; 497inputFlowDirection = FlowDirection.RightToLeft; 501inputFlowDirection = FlowDirection.LeftToRight; 505FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorCharacters.cs (2)
451TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 460TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
System\windows\Documents\TextEditorParagraphs.cs (2)
159FlowDirection.LeftToRight, /*applyToParagraphs*/true); 169FlowDirection.RightToLeft, /*applyToParagraphs*/true);
System\windows\Documents\TextEditorSelection.cs (9)
1141FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(newMovingPosition); 1142FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2044FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty); 2046return (flowDirection == FlowDirection.RightToLeft); 2259FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(innerMovingPosition); 2260FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2438private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2447return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorTyping.cs (9)
800FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; 804flowDirection == FlowDirection.LeftToRight && margin.Left > 0 || 805flowDirection == FlowDirection.RightToLeft && margin.Right > 0 || 1234((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1239UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1240This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1250((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true); 1255UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1256This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextRange.cs (2)
1665(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeEdit.cs (18)
839FlowDirection parentFlowDirection; 843parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 847parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 851FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty); 1059FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1101private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1105textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1109textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1322FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1323FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1324FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1857FlowDirection flowDirection = run.FlowDirection; 1861while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeEditLists.cs (2)
389FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty);
System\windows\Documents\TextSelection.cs (18)
510FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 515initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1991FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1992FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 1994if (renderScopeFlowDirection == FlowDirection.LeftToRight) 1996if (paragraphFlowDirection == FlowDirection.LeftToRight && 2002else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2011if (paragraphFlowDirection == FlowDirection.LeftToRight && 2017else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2267FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2273if (flowDirection != FlowDirection.RightToLeft) 2393FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2399FlowDirection pagraphFlowDirection = paragraphOrBlockUIContainer.FlowDirection;
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
110internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue)
System\Windows\FrameworkElement.cs (30)
134if (((FlowDirection)FlowDirectionProperty.GetDefaultValue(DependencyObjectType)) == FlowDirection.RightToLeft) 3647typeof(FlowDirection), 3650System.Windows.FlowDirection.LeftToRight, // default value 3683fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft; 3692public FlowDirection FlowDirection 3694get { return IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } 3702public static FlowDirection GetFlowDirection(DependencyObject element) 3705return (FlowDirection)element.GetValue(FlowDirectionProperty); 3712public static void SetFlowDirection(DependencyObject element, FlowDirection value) 3723FlowDirection value = (FlowDirection)o; 3724return value == FlowDirection.LeftToRight || value == FlowDirection.RightToLeft; 3973FlowDirection thisFlowDirection = fe.FlowDirection; 3974FlowDirection parentFlowDirection = FlowDirection.LeftToRight; // Assume LTR if no parent is found. 3998parentFlowDirection = (FlowDirection)parentFCE.GetValue(FlowDirectionProperty); 4012private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual) 4014FlowDirection flowDirection = FlowDirection.LeftToRight; 4034flowDirection = (FlowDirection)flowDirectionValue; 4051internal static bool ApplyMirrorTransform(FlowDirection parentFD, FlowDirection thisFD) 4053return ((parentFD == FlowDirection.LeftToRight && thisFD == FlowDirection.RightToLeft) || 4054(parentFD == FlowDirection.RightToLeft && thisFD == FlowDirection.LeftToRight));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2486bamlMember.TypeConverterType = typeof(System.Windows.FlowDirection);
System\Windows\Shell\WindowChromeWorker.cs (1)
459bool compliment = _window.FlowDirection == FlowDirection.RightToLeft;
System\Windows\Window.cs (7)
1917if (FlowDirection == FlowDirection.RightToLeft) 5038if (FlowDirection == FlowDirection.RightToLeft) 6856if ( this.FlowDirection == FlowDirection.LeftToRight ) 6860else if ( this.FlowDirection == FlowDirection.RightToLeft ) 7485private NativeMethods.POINT GetWindowScreenLocation(FlowDirection flowDirection) 7489if (flowDirection == FlowDirection.RightToLeft) 7598internal NativeMethods.POINT GetPointRelativeToWindow( int x, int y, FlowDirection flowDirection )
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
712if (FlowDirection == FlowDirection.RightToLeft) 720if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
712if (FlowDirection == FlowDirection.RightToLeft) 720if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.AeroLite (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Classic (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Luna (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
294if (FlowDirection == FlowDirection.RightToLeft) 301if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Royale (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
294if (FlowDirection == FlowDirection.RightToLeft) 301if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
22public static FlowDirection FlowDirection 32return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
System.Windows.Controls.Ribbon (19)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
2257bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
519if ((e.Key == Key.Left) == (FlowDirection == FlowDirection.LeftToRight))
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (5)
566FlowDirection elementFD = (FlowDirection)_clonedElement.GetValue(FlowDirectionProperty); 568FlowDirection parentFD = parent == null ? FlowDirection : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1012if (FlowDirection == FlowDirection.RightToLeft)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
2702else if ((e.Key == Key.Left) == (FlowDirection == FlowDirection.LeftToRight)) 2705FocusNavigationDirection direction = (FlowDirection == FlowDirection.LeftToRight ? FocusNavigationDirection.Left : FocusNavigationDirection.Right); 2733if ((FlowDirection == FlowDirection.LeftToRight && DoubleUtil.GreaterThan(predictedFocusedOrigin.X, focusedOrigin.X)) || 2734(FlowDirection == FlowDirection.RightToLeft && DoubleUtil.LessThan(predictedFocusedOrigin.X, focusedOrigin.X)))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (7)
820if (FlowDirection == FlowDirection.RightToLeft) 1324(isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.LeftToRight) || 1325(!isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.RightToLeft); 1350popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ; 1360if (FlowDirection == FlowDirection.LeftToRight) 1379if (FlowDirection == FlowDirection.LeftToRight) 1392if (FlowDirection == FlowDirection.LeftToRight)
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
344double offsetX = FlowDirection == FlowDirection.LeftToRight ? 0.0 : -popupSize.Width;
WindowsFormsIntegration (7)
System\Windows\Integration\ElementHostPropertyMap.cs (3)
179SW.FlowDirection toFlowDirection = ((fromRTL == SWF.RightToLeft.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (4)
106if (value is SW.FlowDirection) 112switch ((SW.FlowDirection)value) 114case SW.FlowDirection.RightToLeft: 118case SW.FlowDirection.LeftToRight: