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)
1449(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight), 1465(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight),
MS\Internal\TextFormatting\GenericTextProperties.cs (4)
235FlowDirection flowDirection, 277public override FlowDirection FlowDirection 359internal void SetFlowDirection(FlowDirection flowDirection) 390private FlowDirection _flowDirection;
MS\Internal\TextFormatting\LineServices.cs (4)
1354public static FlowDirection LsTFlowToFlowDirection(LsTFlow lstflow) 1361return FlowDirection.LeftToRight; 1366return FlowDirection.RightToLeft; 1375return FlowDirection.LeftToRight;
MS\Internal\TextFormatting\SimpleTextLine.cs (1)
870FlowDirection.LeftToRight,
MS\Internal\TextFormatting\TextProperties.cs (1)
43if (_paragraphProperties.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\TextFormatting\TextStore.cs (5)
988FlowDirection flowDirection 991bool leftToRight = (flowDirection == FlowDirection.LeftToRight); 1186scope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 1666runInfo.TextModifierScope.TextModifier.FlowDirection == FlowDirection.RightToLeft : 2706else if (!stack.Push(modifier.FlowDirection == FlowDirection.LeftToRight))
System\Windows\Media\FormattedText.cs (14)
33FlowDirection flowDirection, 63FlowDirection flowDirection, 97FlowDirection flowDirection, 129FlowDirection flowDirection, 163FlowDirection flowDirection, 188FlowDirection flowDirection, 199private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, 278private static void ValidateFlowDirection(FlowDirection flowDirection, string parameterName) 280if ((int)flowDirection < 0 || (int)flowDirection > (int)FlowDirection.RightToLeft) 281throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1166case FlowDirection.LeftToRight: 1167case FlowDirection.RightToLeft: 1199public FlowDirection FlowDirection 1630if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Media\textformatting\TextBounds.cs (3)
25FlowDirection flowDirection, 57public FlowDirection FlowDirection 63private FlowDirection _flowDirection;
System\Windows\Media\textformatting\TextModifier.cs (1)
50public abstract FlowDirection FlowDirection {get; }
System\Windows\Media\textformatting\TextParagraphProperties.cs (1)
25public abstract FlowDirection FlowDirection
PresentationFramework (295)
MS\Internal\Annotations\Component\MarkedHighlightComponent.cs (12)
661FlowDirection startFlowDirection = GetTextFlowDirection(start); 662FlowDirection endFlowDirection = GetTextFlowDirection(end); 664SetMarkerTransform(_leftMarker, start, null, startFlowDirection == FlowDirection.LeftToRight ? 1 : -1); 665SetMarkerTransform(_rightMarker, end, start, endFlowDirection == FlowDirection.LeftToRight ? -1 : 1); 788private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 794FlowDirection flowDirection; 805flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 834return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 841return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 866flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 871flowDirection = (sign > 0 ? FlowDirection.LeftToRight : FlowDirection.RightToLeft);
MS\Internal\Controls\StickyNote\StickyNoteAnnotations.cs (2)
994&& this.FlowDirection == FlowDirection.RightToLeft 1230return (this.IsExpanded && this.FlowDirection == FlowDirection.RightToLeft &&
MS\Internal\Documents\DocumentPageHost.cs (1)
98pageVisualHost.SetValue(FlowDirectionProperty, FlowDirection.LeftToRight);
MS\Internal\Documents\FlowDocumentPaginator.cs (1)
368if (_document.FlowDirection == FlowDirection.RightToLeft)
MS\Internal\Documents\FlowDocumentView.cs (1)
177PtsHelper.UpdateMirroringTransform(FlowDirection, FlowDirection.LeftToRight, _pageVisual, safeArrangeSize.Width);
MS\Internal\Documents\PageCache.cs (3)
118FlowDirection flowDirection = (FlowDirection)((DependencyObject)_documentPaginator.Source).GetValue(FrameworkElement.FlowDirectionProperty); 119if (flowDirection == FlowDirection.LeftToRight)
MS\Internal\Documents\TextBoxLine.cs (3)
227_line.Draw(ctx, new Point(delta, 0), ((_lineProperties.FlowDirection == FlowDirection.RightToLeft) ? InvertAxes.Horizontal : InvertAxes.None)); 239internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 496private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Documents\TextBoxView.cs (1)
595FlowDirection flowDirection;
MS\Internal\Documents\TextDocumentView.cs (15)
3278FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3279if (flowDirection == FlowDirection.RightToLeft) 3296FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3297if (flowDirection == FlowDirection.RightToLeft) 3322FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3323if (flowDirection == FlowDirection.RightToLeft) 3340FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3341if (flowDirection == FlowDirection.RightToLeft) 3358FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3359if (flowDirection == FlowDirection.RightToLeft)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
357_cachedPenCursor = PenCursorManager.GetPenCursor(da, false, (this.InkCanvas.FlowDirection == FlowDirection.RightToLeft), dpi.DpiScaleX, dpi.DpiScaleY);
MS\Internal\Ink\SelectionEditingBehavior.cs (1)
105(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\Ink\SelectionEditor.cs (1)
116(this.InkCanvas.FlowDirection == FlowDirection.RightToLeft));
MS\Internal\PtsHost\BaseParaClient.cs (6)
79_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty); 212internal FlowDirection ThisFlowDirection { get { return _flowDirection; } } 213internal FlowDirection ParentFlowDirection { get { return _flowDirectionParent; } } 214internal FlowDirection PageFlowDirection { get { return Paragraph.StructuralCache.PageFlowDirection; } } 279protected FlowDirection _flowDirectionParent; 280protected FlowDirection _flowDirection;
MS\Internal\PtsHost\CellParaClient.cs (2)
72internal void Arrange(int du, int dv, PTS.FSRECT rcTable, FlowDirection tableFlowDirection, PageContext pageContext) 112_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ContainerParagraph.cs (3)
462uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 628uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 758uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
199_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
119uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
188_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
166uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 380uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
865FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 866PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
MS\Internal\PtsHost\Line.cs (8)
263_mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft); 391FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 401FlowDirection flowDirection; 420FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 461internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 982private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\PtsHost\LineBase.cs (5)
183FlowDirection inlineFlowDirection = inline.FlowDirection; 184FlowDirection parentFlowDirection = inlineFlowDirection; 190parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 260FlowDirection parentFlowDirection = inline.FlowDirection; 264parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\ListMarkerLine.cs (1)
100bool mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft);
MS\Internal\PtsHost\ListParaClient.cs (1)
55uint fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\Pts.cs (6)
218internal static FlowDirection FswdirToFlowDirection(uint fswdir) 220FlowDirection fd; 224fd = FlowDirection.RightToLeft; 227fd = FlowDirection.LeftToRight; 236internal static uint FlowDirectionToFswdir(FlowDirection fd) 241case FlowDirection.RightToLeft:
MS\Internal\PtsHost\PtsHelper.cs (2)
35internal static void UpdateMirroringTransform(FlowDirection parentFD, FlowDirection childFD, ContainerVisual visualChild, double width)
MS\Internal\PtsHost\Section.cs (2)
120StructuralCache.PageFlowDirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty); 221fswdir = PTS.FlowDirectionToFswdir((FlowDirection)_structuralCache.PropertyOwner.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\PtsHost\StructuralCache.cs (2)
323internal FlowDirection PageFlowDirection 582private FlowDirection _pageFlowDirection;
MS\Internal\PtsHost\SubpageParagraph.cs (3)
118uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 325uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 486uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
156fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))
MS\Internal\PtsHost\TextParaClient.cs (2)
1673FlowDirection flowDirection; 1770FlowDirection flowDirection;
MS\Internal\PtsHost\TextParagraph.cs (1)
139fstxtprops.fswdir = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty));
MS\Internal\Text\ComplexLine.cs (8)
175FlowDirection flowDirection; 182FlowDirection parentFlowDirection = _owner.FlowDirection; 188parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 412FlowDirection inlineFlowDirection = inline.FlowDirection; 413FlowDirection parentFlowDirection = inlineFlowDirection; 417parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 485FlowDirection parentFlowDirection = inline.FlowDirection; 489parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\Text\Line.cs (3)
82_mirror = (lineProperties.FlowDirection == FlowDirection.RightToLeft); 130internal Rect GetBoundsFromTextPosition(int characterIndex, out FlowDirection flowDirection) 451protected Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\Text\LineProperties.cs (5)
35public override FlowDirection FlowDirection { get { return _flowDirection; } } 124_flowDirection = (FlowDirection)element.GetValue(Block.FlowDirectionProperty); 306private FlowDirection _flowDirection; 330public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } } 406public override FlowDirection FlowDirection { get { return _lp.FlowDirection; } }
MS\Internal\Text\TextSpanModifier.cs (3)
23private FlowDirection _flowDirection; 43public TextSpanModifier(int length, TextDecorationCollection textDecorations, Brush foregroundBrush, FlowDirection flowDirection) 140public override FlowDirection FlowDirection
System\Windows\Annotations\AnnotationDocumentPaginator.cs (5)
37public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore) : this(originalPaginator, new XmlStreamStore(annotationStore), FlowDirection.LeftToRight) 47public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, Stream annotationStore, FlowDirection flowDirection) : this(originalPaginator, new XmlStreamStore(annotationStore), flowDirection) 56public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore) : this(originalPaginator, annotationStore, FlowDirection.LeftToRight) 66public AnnotationDocumentPaginator(DocumentPaginator originalPaginator, AnnotationStore annotationStore, FlowDirection flowDirection) 521private FlowDirection _flowDirection;
System\Windows\Controls\ComboBox.cs (4)
916FlowDirection parentFD = parent == null ? FlowDirection.LeftToRight : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1330bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\DataGrid.cs (1)
5629if (this.FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\DataGridHelper.cs (1)
612private static readonly DependencyProperty FlowDirectionCacheProperty = DependencyProperty.Register("FlowDirectionCache", typeof(FlowDirection), typeof(DataGridHelper));
System\Windows\Controls\DateTimeHelper.cs (1)
211bool isRightToLeft = fe.FlowDirection==FlowDirection.RightToLeft;
System\Windows\Controls\GridSplitter.cs (1)
959if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Image.cs (1)
410style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\ItemsControl.cs (2)
3378FlowDirection flowDirection = element.FlowDirection; 3379return (flowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\MediaElement.cs (1)
102style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\MenuItem.cs (2)
1874FlowDirection flowDirection = FlowDirection; 1877if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
395if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\Popup.cs (4)
1840if (parent != null && (FlowDirection)parent.GetValue(FlowDirectionProperty) == FlowDirection.RightToLeft) 2397if ((FlowDirection)target.GetValue(FlowDirectionProperty) != 2398(FlowDirection)child.GetValue(FlowDirectionProperty))
System\Windows\Controls\Primitives\PopupRoot.cs (3)
319FlowDirection childFlowDirection = (FlowDirection)child.GetValue(FlowDirectionProperty); 320FlowDirection thisFlowDirection = FlowDirection;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
785else if (sb.FlowDirection == FlowDirection.LeftToRight)
System\Windows\Controls\ScrollViewer.cs (1)
1058bool fInvertForRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\Slider.cs (1)
191return slider.IsDirectionReversed != (slider.FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TextBlock.cs (2)
2180FlowDirection flowDirection = FlowDirection.LeftToRight;
System\Windows\Controls\TextRangeAdaptor.cs (4)
412FlowDirection flowWCP = (FlowDirection)tp.GetValue(FrameworkElement.FlowDirectionProperty); 416case FlowDirection.LeftToRight: 420case FlowDirection.RightToLeft:
System\Windows\Controls\TreeView.cs (1)
627bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\TreeViewItem.cs (1)
637bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Documents\Block.cs (2)
259public FlowDirection FlowDirection 261get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\CaretElement.cs (6)
659FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 661flowDirection == FlowDirection.RightToLeft ? -20 : 20, 704FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 705if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Documents\FixedPage.cs (3)
50FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange) 599return FlowDirection.LeftToRight; 1269FlowDirection.LeftToRight,
System\Windows\Documents\FixedPageStructure.cs (12)
267FlowDirection.LeftToRight, 281FlowDirection.LeftToRight, 298FlowDirection.LeftToRight, 335FlowDirection.LeftToRight, 369FlowDirection.LeftToRight, 415FlowDirection.LeftToRight, 431FlowDirection.LeftToRight, 479FlowDirection.LeftToRight, 495FlowDirection.LeftToRight, 554FlowDirection.LeftToRight, 623FlowDirection.LeftToRight, 654FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMFixedBlock.cs (1)
207element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\FixedSOMSemanticBox.cs (1)
70FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTable.cs (1)
44FlowDirection.LeftToRight,
System\Windows\Documents\FixedSOMTextRun.cs (2)
238element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 242element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight);
System\Windows\Documents\FlowDocument.cs (2)
355public FlowDirection FlowDirection 357get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\Inline.cs (2)
138public FlowDirection FlowDirection 140get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\ListItem.cs (2)
232public FlowDirection FlowDirection 234get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\Windows\Documents\TableCell.cs (2)
251public FlowDirection FlowDirection 253get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\TextEditor.cs (5)
479FlowDirection inputFlowDirection; 482inputFlowDirection = FlowDirection.RightToLeft; 486inputFlowDirection = FlowDirection.LeftToRight; 490FlowDirection currentFlowDirection = (FlowDirection)((ITextPointer)range.Start).GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorCharacters.cs (2)
434TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.RightToLeft); 443TextEditorCharacters._OnApplyProperty(This, Inline.FlowDirectionProperty, FlowDirection.LeftToRight);
System\windows\Documents\TextEditorParagraphs.cs (2)
141FlowDirection.LeftToRight, /*applyToParagraphs*/true); 151FlowDirection.RightToLeft, /*applyToParagraphs*/true);
System\windows\Documents\TextEditorSelection.cs (9)
1125FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(newMovingPosition); 1126FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2028FlowDirection flowDirection = (FlowDirection)position.GetValue(FlowDocument.FlowDirectionProperty); 2030return (flowDirection == FlowDirection.RightToLeft); 2243FlowDirection paragraphFlowDirection = GetScopingParagraphFlowDirection(innerMovingPosition); 2244FlowDirection controlFlowDirection = This.UiScope.FlowDirection; 2422private static FlowDirection GetScopingParagraphFlowDirection(ITextPointer position) 2431return (FlowDirection)navigator.GetValue(FrameworkElement.FlowDirectionProperty);
System\windows\Documents\TextEditorTyping.cs (9)
781FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; 785flowDirection == FlowDirection.LeftToRight && margin.Left > 0 || 786flowDirection == FlowDirection.RightToLeft && margin.Right > 0 || 1215((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1220UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1221This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1231((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true); 1236UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1237This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextRange.cs (2)
1654(FlowDirection)textSegment.Start.GetValue(Paragraph.FlowDirectionProperty) == FlowDirection.RightToLeft)
System\Windows\Documents\TextRangeEdit.cs (18)
836FlowDirection parentFlowDirection; 840parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 844parentFlowDirection = (FlowDirection)FrameworkElement.FlowDirectionProperty.GetDefaultValue(typeof(FrameworkElement)); 848FlowDirection flowDirection = (FlowDirection)block.GetValue(Block.FlowDirectionProperty); 1056FlowDirection parentFlowDirection, FlowDirection flowDirection, PropertyValueAction propertyValueAction) 1098private static TextAlignment ComputeNewTextAlignmentValue(TextAlignment textAlignment, FlowDirection flowDirection) 1102textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Left : TextAlignment.Right; 1106textAlignment = (flowDirection == FlowDirection.LeftToRight) ? TextAlignment.Right : TextAlignment.Left; 1319FlowDirection midpointFlowDirection = (FlowDirection)commonAncestor.GetValue(FrameworkElement.FlowDirectionProperty); 1320FlowDirection previousFlowDirection = (FlowDirection)previousRun.GetValue(FrameworkElement.FlowDirectionProperty); 1321FlowDirection nextFlowDirection = (FlowDirection)nextRun.GetValue(FrameworkElement.FlowDirectionProperty); 1854FlowDirection flowDirection = run.FlowDirection; 1858while ((FlowDirection)inline.Parent.GetValue(FrameworkElement.FlowDirectionProperty) == flowDirection)
System\Windows\Documents\TextRangeEditLists.cs (2)
388FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty);
System\windows\Documents\TextSelection.cs (18)
494FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 499initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1972FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1973FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 1975if (renderScopeFlowDirection == FlowDirection.LeftToRight) 1977if (paragraphFlowDirection == FlowDirection.LeftToRight && 1983else if (paragraphFlowDirection == FlowDirection.RightToLeft && 1992if (paragraphFlowDirection == FlowDirection.LeftToRight && 1998else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2248FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2254if (flowDirection != FlowDirection.RightToLeft) 2374FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2380FlowDirection pagraphFlowDirection = paragraphOrBlockUIContainer.FlowDirection;
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
107internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, FlowDirection newValue)
System\Windows\FrameworkElement.cs (30)
115if (((FlowDirection)FlowDirectionProperty.GetDefaultValue(DependencyObjectType)) == FlowDirection.RightToLeft) 3626typeof(FlowDirection), 3629System.Windows.FlowDirection.LeftToRight, // default value 3662fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft; 3671public FlowDirection FlowDirection 3673get { return IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } 3681public static FlowDirection GetFlowDirection(DependencyObject element) 3684return (FlowDirection)element.GetValue(FlowDirectionProperty); 3691public static void SetFlowDirection(DependencyObject element, FlowDirection value) 3702FlowDirection value = (FlowDirection)o; 3703return value == FlowDirection.LeftToRight || value == FlowDirection.RightToLeft; 3952FlowDirection thisFlowDirection = fe.FlowDirection; 3953FlowDirection parentFlowDirection = FlowDirection.LeftToRight; // Assume LTR if no parent is found. 3977parentFlowDirection = (FlowDirection)parentFCE.GetValue(FlowDirectionProperty); 3991private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual) 3993FlowDirection flowDirection = FlowDirection.LeftToRight; 4013flowDirection = (FlowDirection)flowDirectionValue; 4030internal static bool ApplyMirrorTransform(FlowDirection parentFD, FlowDirection thisFD) 4032return ((parentFD == FlowDirection.LeftToRight && thisFD == FlowDirection.RightToLeft) || 4033(parentFD == FlowDirection.RightToLeft && thisFD == FlowDirection.LeftToRight));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2548TypeConverterType = typeof(System.Windows.FlowDirection)
System\Windows\Shell\WindowChromeWorker.cs (1)
453bool compliment = _window.FlowDirection == FlowDirection.RightToLeft;
System\Windows\Window.cs (7)
1891if (FlowDirection == FlowDirection.RightToLeft) 5002if (FlowDirection == FlowDirection.RightToLeft) 6824if ( this.FlowDirection == FlowDirection.LeftToRight ) 6828else if ( this.FlowDirection == FlowDirection.RightToLeft ) 7443private NativeMethods.POINT GetWindowScreenLocation(FlowDirection flowDirection) 7447if (flowDirection == FlowDirection.RightToLeft) 7556internal NativeMethods.POINT GetPointRelativeToWindow( int x, int y, FlowDirection flowDirection )
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
719if (FlowDirection == FlowDirection.RightToLeft) 727if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Aero2 (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
719if (FlowDirection == FlowDirection.RightToLeft) 727if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.AeroLite (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Classic (3)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Luna (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
287if (FlowDirection == FlowDirection.RightToLeft) 294if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
PresentationFramework.Royale (5)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\BulletChrome.cs (2)
287if (FlowDirection == FlowDirection.RightToLeft) 294if (FlowDirection == FlowDirection.RightToLeft)
src\Microsoft.DotNet.Wpf\src\Themes\Shared\Microsoft\Windows\Themes\PlatformCulture.cs (3)
19public static FlowDirection FlowDirection 29return _platformCulture.TextInfo.IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight;
System.Windows.Controls.Ribbon (19)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
2228bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
Microsoft\Windows\Controls\Ribbon\RibbonApplicationMenu.cs (1)
516if ((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); 1009if (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)
813if (FlowDirection == FlowDirection.RightToLeft) 1308(isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.LeftToRight) || 1309(!isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.RightToLeft); 1334popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ; 1344if (FlowDirection == FlowDirection.LeftToRight) 1363if (FlowDirection == FlowDirection.LeftToRight) 1376if (FlowDirection == FlowDirection.LeftToRight)
Microsoft\Windows\Controls\Ribbon\RibbonToolTip.cs (1)
340double offsetX = FlowDirection == FlowDirection.LeftToRight ? 0.0 : -popupSize.Width;
WindowsFormsIntegration (7)
System\Windows\Integration\ElementHostPropertyMap.cs (3)
174SW.FlowDirection toFlowDirection = ((fromRTL == SWF.RightToLeft.Yes) ? SW.FlowDirection.RightToLeft : SW.FlowDirection.LeftToRight);
System\Windows\Integration\WindowsFormsHostPropertyMap.cs (4)
104if (value is SW.FlowDirection) 110switch ((SW.FlowDirection)value) 112case SW.FlowDirection.RightToLeft: 116case SW.FlowDirection.LeftToRight: