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)
1448(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight), 1464(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight),
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
236FlowDirection flowDirection, 278public override FlowDirection FlowDirection 360internal void SetFlowDirection(FlowDirection flowDirection) 391private FlowDirection _flowDirection;
MS\Internal\TextFormatting\LineServices.cs (4)
1355public static FlowDirection LsTFlowToFlowDirection(LsTFlow lstflow) 1362return FlowDirection.LeftToRight; 1367return FlowDirection.RightToLeft; 1376return FlowDirection.LeftToRight;
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
877FlowDirection.LeftToRight,
MS\Internal\TextFormatting\TextProperties.cs (1)
44if (_paragraphProperties.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\TextFormatting\TextStore.cs (5)
989FlowDirection flowDirection 992bool leftToRight = (flowDirection == FlowDirection.LeftToRight); 1187scope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 1667runInfo.TextModifierScope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 2707else if (!stack.Push(modifier.FlowDirection == FlowDirection.LeftToRight))
System\Windows\Media\FormattedText.cs (14)
37FlowDirection flowDirection, 67FlowDirection flowDirection, 101FlowDirection flowDirection, 133FlowDirection flowDirection, 167FlowDirection flowDirection, 192FlowDirection flowDirection, 203private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, 282private static void ValidateFlowDirection(FlowDirection flowDirection, string parameterName) 284if ((int)flowDirection < 0 || (int)flowDirection > (int)FlowDirection.RightToLeft) 285throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1187case FlowDirection.LeftToRight: 1188case FlowDirection.RightToLeft: 1220public FlowDirection FlowDirection 1651if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Media\textformatting\TextBounds.cs (3)
26FlowDirection flowDirection, 58public FlowDirection FlowDirection 64private FlowDirection _flowDirection;
System\Windows\Media\textformatting\TextModifier.cs (1)
51public abstract FlowDirection FlowDirection {get; }
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
26public abstract FlowDirection FlowDirection
PresentationFramework (295)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (12)
658FlowDirection startFlowDirection = GetTextFlowDirection(start); 659FlowDirection endFlowDirection = GetTextFlowDirection(end); 661SetMarkerTransform(_leftMarker, start, null, startFlowDirection == FlowDirection.LeftToRight ? 1 : -1); 662SetMarkerTransform(_rightMarker, end, start, endFlowDirection == FlowDirection.LeftToRight ? -1 : 1); 785private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 791FlowDirection flowDirection; 802flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 831return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 838return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 863flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 868flowDirection = (sign > 0 ? FlowDirection.LeftToRight : FlowDirection.RightToLeft);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
995&& this.FlowDirection == FlowDirection.RightToLeft 1231return (this.IsExpanded && this.FlowDirection == FlowDirection.RightToLeft &&
MS\Internal\Documents\DocumentPageHost.cs (1)
99pageVisualHost.SetValue(FlowDirectionProperty, FlowDirection.LeftToRight);
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
369if (_document.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\Documents\FlowDocumentView.cs (1)
181PtsHelper.UpdateMirroringTransform(FlowDirection, FlowDirection.LeftToRight, _pageVisual, safeArrangeSize.Width);
MS\Internal\Documents\PageCache.cs (3)
119FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty); 120if (flowDirection == FlowDirection.LeftToRight)
MS\Internal\Documents\TextBoxLine.cs (3)
228_line.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None)); 240internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 497private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Documents\TextBoxView.cs (1)
638FlowDirection flowDirection;
MS\Internal\Documents\TextDocumentView.cs (15)
3323FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3324if (flowDirection == FlowDirection.RightToLeft) 3341FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3342if (flowDirection == FlowDirection.RightToLeft) 3367FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3368if (flowDirection == FlowDirection.RightToLeft) 3385FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3386if (flowDirection == FlowDirection.RightToLeft) 3403FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3404if (flowDirection == FlowDirection.RightToLeft)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
359_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
106(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\Ink\SelectionEditor.cs (1)
117(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\PtsHost\BaseParaClient.cs (6)
80_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 213internal FlowDirection ThisFlowDirection { get { return _flowDirection; } } 214internal FlowDirection ParentFlowDirection { get { return _flowDirectionParent; } } 215internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 280protected FlowDirection _flowDirectionParent; 281protected FlowDirection _flowDirection;
MS\Internal\PtsHost\CellParaClient.cs (2)
73internal void Arrange(int du, int dv, PTS.FSRECT rcTable, FlowDirection tableFlowDirection, PageContext pageContext) 113_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
481uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 647uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 777uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
202_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
125uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
191_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
174uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 382uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
869FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 870PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
MS\Internal\PtsHost\Line.cs (8)
275_mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft); 403FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 414FlowDirection flowDirection; 433FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 474internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 995private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\PtsHost\LineBase.cs (5)
188FlowDirection inlineFlowDirection = inline.FlowDirection; 189FlowDirection parentFlowDirection = inlineFlowDirection; 195parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 265FlowDirection parentFlowDirection = inline.FlowDirection; 269parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListMarkerLine.cs (1)
101bool mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft);
MS\Internal\PtsHost\ListParaClient.cs (1)
56uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\Pts.cs (6)
219internal static FlowDirection FswdirToFlowDirection(uint fswdir) 221FlowDirection fd; 225fd = FlowDirection.RightToLeft; 228fd = FlowDirection.LeftToRight; 237internal static uint FlowDirectionToFswdir(FlowDirection fd) 242case FlowDirection.RightToLeft:
MS\Internal\PtsHost\PtsHelper.cs (2)
36internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
MS\Internal\PtsHost\Section.cs (2)
121StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 222fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\StructuralCache.cs (2)
324internal FlowDirection PageFlowDirection 583private FlowDirection _pageFlowDirection;
MS\Internal\PtsHost\SubpageParagraph.cs (3)
129uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 336uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 497uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
163fstableobjprops.fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\TextParaClient.cs (2)
1674FlowDirection flowDirection; 1771FlowDirection flowDirection;
MS\Internal\PtsHost\TextParagraph.cs (1)
151fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (8)
176FlowDirection flowDirection; 183FlowDirection parentFlowDirection = _owner.FlowDirection; 189parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 413FlowDirection inlineFlowDirection = inline.FlowDirection; 414FlowDirection parentFlowDirection = inlineFlowDirection; 418parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 486FlowDirection parentFlowDirection = inline.FlowDirection; 490parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\Line.cs (3)
83_mirror = (lineProperties.FlowDirection == FlowDirection.RightToLeft); 131internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 452protected Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Text\LineProperties.cs (5)
36public override FlowDirection FlowDirection { get { return _flowDirection; } } 125_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 307private FlowDirection _flowDirection; 331public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } } 407public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } }
MS\Internal\Text\TextSpanModifier.cs (3)
24private FlowDirection _flowDirection; 44public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 141public override FlowDirection FlowDirection
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
38public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore) : this(originalPaginator, new XmlStreamStore(annotationStore), FlowDirection.LeftToRight) 48public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore, FlowDirection flowDirection) : this(originalPaginator, new XmlStreamStore(annotationStore), flowDirection) 57public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore) : this(originalPaginator, annotationStore, FlowDirection.LeftToRight) 67public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore, FlowDirection flowDirection) 521private FlowDirection _flowDirection;
System\Windows\Controls\ComboBox.cs (4)
923FlowDirection parentFD = parent == null ? FlowDirection.LeftToRight : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1333bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\DataGrid.cs (1)
5668if (this.FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\DataGridHelper.cs (1)
613private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper));
System\Windows\Controls\DateTimeHelper.cs (1)
212bool isRightToLeft = fe.FlowDirection==FlowDirection.RightToLeft;
System\Windows\Controls\GridSplitter.cs (1)
954if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Image.cs (1)
411style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\ItemsControl.cs (2)
3409FlowDirection flowDirection = element.FlowDirection; 3410return (flowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\MediaElement.cs (1)
103style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\MenuItem.cs (2)
1882FlowDirection flowDirection = FlowDirection; 1885if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
392if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\Popup.cs (4)
1828if (parent != null && (FlowDirection)parent.GetValue(FlowDirectionProperty) == FlowDirection.RightToLeft) 2385if ((FlowDirection)target.GetValue(FlowDirectionProperty) != 2386(FlowDirection)child.GetValue(FlowDirectionProperty))
System\Windows\Controls\Primitives\PopupRoot.cs (3)
308FlowDirection childFlowDirection = (FlowDirection)child.GetValue(FlowDirectionProperty); 309FlowDirection thisFlowDirection = FlowDirection;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
784else if (sb.FlowDirection == FlowDirection.LeftToRight)
System\Windows\Controls\ScrollViewer.cs (1)
1059bool fInvertForRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\Slider.cs (1)
192return slider.IsDirectionReversed != (slider.FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TextBlock.cs (2)
2192FlowDirection flowDirection = FlowDirection.LeftToRight;
System\Windows\Controls\TextRangeAdaptor.cs (4)
413FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 417case FlowDirection.LeftToRight: 421case FlowDirection.RightToLeft:
System\Windows\Controls\TreeView.cs (1)
628bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TreeViewItem.cs (1)
644bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Documents\Block.cs (2)
260public FlowDirection FlowDirection 262get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\CaretElement.cs (6)
661FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 663flowDirection == FlowDirection.RightToLeft ? -20 : 20, 706FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 707if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Documents\FixedPage.cs (3)
51FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange); 598return FlowDirection.LeftToRight; 1268FlowDirection.LeftToRight,
System\Windows\Documents\FixedPageStructure.cs (12)
268FlowDirection.LeftToRight, 282FlowDirection.LeftToRight, 299FlowDirection.LeftToRight, 336FlowDirection.LeftToRight, 370FlowDirection.LeftToRight, 416FlowDirection.LeftToRight, 432FlowDirection.LeftToRight, 480FlowDirection.LeftToRight, 496FlowDirection.LeftToRight, 555FlowDirection.LeftToRight, 624FlowDirection.LeftToRight, 655FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
208element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMSemanticBox.cs (1)
71FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTable.cs (1)
45FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTextRun.cs (2)
237element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 241element.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)
233public FlowDirection FlowDirection 235get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\TableCell.cs (2)
252public FlowDirection FlowDirection 254get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\TextEditor.cs (5)
488FlowDirection inputFlowDirection; 491inputFlowDirection = FlowDirection.RightToLeft; 495inputFlowDirection = FlowDirection.LeftToRight; 499FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorCharacters.cs (2)
435TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 444TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
System\windows\Documents\TextEditorParagraphs.cs (2)
142FlowDirection.LeftToRight, /*applyToParagraphs*/true); 152FlowDirection.RightToLeft, /*applyToParagraphs*/true);
System\windows\Documents\TextEditorSelection.cs (9)
1126FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(newMovingPosition); 1127FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2029FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty); 2031return (flowDirection == FlowDirection.RightToLeft); 2244FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(innerMovingPosition); 2245FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2423private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2432return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorTyping.cs (9)
791FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; 795flowDirection == FlowDirection.LeftToRight && margin.Left > 0 || 796flowDirection == FlowDirection.RightToLeft && margin.Right > 0 || 1225((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1230UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1231This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1241((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true); 1246UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1247This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextRange.cs (2)
1662(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeEdit.cs (18)
837FlowDirection parentFlowDirection; 841parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 845parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 849FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty); 1057FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1099private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1103textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1107textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1320FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1321FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1322FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1855FlowDirection flowDirection = run.FlowDirection; 1859while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeEditLists.cs (2)
387FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty);
System\windows\Documents\TextSelection.cs (18)
507FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 512initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1988FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1989FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 1991if (renderScopeFlowDirection == FlowDirection.LeftToRight) 1993if (paragraphFlowDirection == FlowDirection.LeftToRight && 1999else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2008if (paragraphFlowDirection == FlowDirection.LeftToRight && 2014else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2264FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2270if (flowDirection != FlowDirection.RightToLeft) 2390FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2396FlowDirection pagraphFlowDirection = paragraphOrBlockUIContainer.FlowDirection;
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
108internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue)
System\Windows\FrameworkElement.cs (30)
123if (((FlowDirection)FlowDirectionProperty.GetDefaultValue(DependencyObjectType)) == FlowDirection.RightToLeft) 3636typeof(FlowDirection), 3639System.Windows.FlowDirection.LeftToRight, // default value 3672fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft; 3681public FlowDirection FlowDirection 3683get { return IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } 3691public static FlowDirection GetFlowDirection(DependencyObject element) 3694return (FlowDirection)element.GetValue(FlowDirectionProperty); 3701public static void SetFlowDirection(DependencyObject element, FlowDirection value) 3712FlowDirection value = (FlowDirection)o; 3713return value == FlowDirection.LeftToRight || value == FlowDirection.RightToLeft; 3962FlowDirection thisFlowDirection = fe.FlowDirection; 3963FlowDirection parentFlowDirection = FlowDirection.LeftToRight; // Assume LTR if no parent is found. 3987parentFlowDirection = (FlowDirection)parentFCE.GetValue(FlowDirectionProperty); 4001private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual) 4003FlowDirection flowDirection = FlowDirection.LeftToRight; 4023flowDirection = (FlowDirection)flowDirectionValue; 4040internal static bool ApplyMirrorTransform(FlowDirection parentFD, FlowDirection thisFD) 4042return ((parentFD == FlowDirection.LeftToRight && thisFD == FlowDirection.RightToLeft) || 4043(parentFD == FlowDirection.RightToLeft && thisFD == FlowDirection.LeftToRight));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2484bamlMember.TypeConverterType = typeof(System.Windows.FlowDirection);
System\Windows\Shell\WindowChromeWorker.cs (1)
454bool compliment = _window.FlowDirection == FlowDirection.RightToLeft;
System\Windows\Window.cs (7)
1904if (FlowDirection == FlowDirection.RightToLeft) 5025if (FlowDirection == FlowDirection.RightToLeft) 6843if ( this.FlowDirection == FlowDirection.LeftToRight ) 6847else if ( this.FlowDirection == FlowDirection.RightToLeft ) 7472private NativeMethods.POINT GetWindowScreenLocation(FlowDirection flowDirection) 7476if (flowDirection == FlowDirection.RightToLeft) 7585internal NativeMethods.POINT GetPointRelativeToWindow( int x, int y, FlowDirection flowDirection )
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
706if (FlowDirection == FlowDirection.RightToLeft) 714if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
706if (FlowDirection == FlowDirection.RightToLeft) 714if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.AeroLite (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Classic (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Luna (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
290if (FlowDirection == FlowDirection.RightToLeft) 297if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Royale (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
290if (FlowDirection == FlowDirection.RightToLeft) 297if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
20public static FlowDirection FlowDirection 30return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
System.Windows.Controls.Ribbon (19)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
2254bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
517if ((e.Key == Key.Left) == (FlowDirection == FlowDirection.LeftToRight))
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (5)
564FlowDirection elementFD = (FlowDirection)_clonedElement.GetValue(FlowDirectionProperty); 566FlowDirection parentFD = parent == null ? FlowDirection : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1010if (FlowDirection == FlowDirection.RightToLeft)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
2700else if ((e.Key == Key.Left) == (FlowDirection == FlowDirection.LeftToRight)) 2703FocusNavigationDirection direction = (FlowDirection == FlowDirection.LeftToRight ? FocusNavigationDirection.Left : FocusNavigationDirection.Right); 2731if ((FlowDirection == FlowDirection.LeftToRight && DoubleUtil.GreaterThan(predictedFocusedOrigin.X, focusedOrigin.X)) || 2732(FlowDirection == FlowDirection.RightToLeft && DoubleUtil.LessThan(predictedFocusedOrigin.X, focusedOrigin.X)))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (7)
817if (FlowDirection == FlowDirection.RightToLeft) 1321(isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.LeftToRight) || 1322(!isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.RightToLeft); 1347popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ; 1357if (FlowDirection == FlowDirection.LeftToRight) 1376if (FlowDirection == FlowDirection.LeftToRight) 1389if (FlowDirection == FlowDirection.LeftToRight)
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
341double offsetX = FlowDirection == FlowDirection.LeftToRight ? 0.0 : -popupSize.Width;
WindowsFormsIntegration (7)
System\Windows\Integration\ElementHostPropertyMap.cs (3)
177SW.FlowDirection toFlowDirection = ((fromRTL == SWF.RightToLeft.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (4)
105if (value is SW.FlowDirection) 111switch ((SW.FlowDirection)value) 113case SW.FlowDirection.RightToLeft: 117case SW.FlowDirection.LeftToRight: