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)
1450(RightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight), 1466(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)
871FlowDirection.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)
34FlowDirection flowDirection, 64FlowDirection flowDirection, 98FlowDirection flowDirection, 130FlowDirection flowDirection, 164FlowDirection flowDirection, 189FlowDirection flowDirection, 200private void InitFormattedText(string textToFormat, CultureInfo culture, FlowDirection flowDirection, Typeface typeface, 279private static void ValidateFlowDirection(FlowDirection flowDirection, string parameterName) 281if ((int)flowDirection < 0 || (int)flowDirection > (int)FlowDirection.RightToLeft) 282throw new InvalidEnumArgumentException(parameterName, (int)flowDirection, typeof(FlowDirection)); 1167case FlowDirection.LeftToRight: 1168case FlowDirection.RightToLeft: 1200public FlowDirection FlowDirection 1631if (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)
662FlowDirection startFlowDirection = GetTextFlowDirection(start); 663FlowDirection endFlowDirection = GetTextFlowDirection(end); 665SetMarkerTransform(_leftMarker, start, null, startFlowDirection == FlowDirection.LeftToRight ? 1 : -1); 666SetMarkerTransform(_rightMarker, end, start, endFlowDirection == FlowDirection.LeftToRight ? -1 : 1); 789private static FlowDirection GetTextFlowDirection(ITextPointer pointer) 795FlowDirection flowDirection; 806flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 835return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 842return (FlowDirection)pointer.GetValue(FlowDirectionProperty); 867flowDirection = (FlowDirection)pointer.GetValue(FlowDirectionProperty); 872flowDirection = (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)
178PtsHelper.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)
596FlowDirection flowDirection;
MS\Internal\Documents\TextDocumentView.cs (15)
3279FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3280if (flowDirection == FlowDirection.RightToLeft) 3297FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3298if (flowDirection == FlowDirection.RightToLeft) 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) 3359FlowDirection flowDirection = (FlowDirection)_owner.StructuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 3360if (flowDirection == FlowDirection.RightToLeft)
MS\Internal\Ink\InkCollectionBehavior.cs (1)
358_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)
463uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 629uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 759uint fswdirSubtrack = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FigureParaClient.cs (1)
200_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FigureParagraph.cs (1)
120uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FloaterParaClient.cs (1)
189_flowDirection = (FlowDirection)Paragraph.Element.GetValue(FrameworkElement.FlowDirectionProperty);
MS\Internal\PtsHost\FloaterParagraph.cs (2)
167uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 381uint fswdirPara = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\FlowDocumentPage.cs (3)
866FlowDirection flowdirection = (FlowDirection)_structuralCache.PropertyOwner.GetValue(FlowDocument.FlowDirectionProperty); 867PtsHelper.UpdateMirroringTransform(FlowDirection.LeftToRight, flowdirection, pageVisual, Size.Width);
MS\Internal\PtsHost\Line.cs (8)
264_mirror = (lineProps.FlowDirection == FlowDirection.RightToLeft); 392FlowDirection paragraphFlowDirection = (FlowDirection)paragraphElement.GetValue(FrameworkElement.FlowDirectionProperty); 402FlowDirection flowDirection; 421FlowDirection parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 462internal Rect GetBoundsFromTextPosition(int textPosition, out FlowDirection flowDirection) 983private Rect GetBoundsFromPosition(int cp, int cch, out FlowDirection flowDirection)
MS\Internal\PtsHost\LineBase.cs (5)
184FlowDirection inlineFlowDirection = inline.FlowDirection; 185FlowDirection parentFlowDirection = inlineFlowDirection; 191parentFlowDirection = (FlowDirection)parent.GetValue(FrameworkElement.FlowDirectionProperty); 261FlowDirection parentFlowDirection = inline.FlowDirection; 265parentFlowDirection = (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)
119uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 326uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))); 487uint fswdirSubpage = PTS.FlowDirectionToFswdir(((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty)));
MS\Internal\PtsHost\TableParagraph.cs (1)
157fswdirTable = PTS.FlowDirectionToFswdir((FlowDirection)Element.GetValue(FrameworkElement.FlowDirectionProperty))
MS\Internal\PtsHost\TextParaClient.cs (2)
1674FlowDirection flowDirection; 1771FlowDirection flowDirection;
MS\Internal\PtsHost\TextParagraph.cs (1)
140fstxtprops.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) 522private FlowDirection _flowDirection;
System\Windows\Controls\ComboBox.cs (4)
917FlowDirection parentFD = parent == null ? FlowDirection.LeftToRight : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1331bool isRTL = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\DataGrid.cs (1)
5630if (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)
960if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Image.cs (1)
411style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\ItemsControl.cs (2)
3379FlowDirection flowDirection = element.FlowDirection; 3380return (flowDirection == FlowDirection.RightToLeft);
System\Windows\Controls\MediaElement.cs (1)
103style.Setters.Add (new Setter(FlowDirectionProperty, FlowDirection.LeftToRight));
System\Windows\Controls\MenuItem.cs (2)
1875FlowDirection flowDirection = FlowDirection; 1878if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\DocumentPageView.cs (1)
396if (FlowDirection == FlowDirection.RightToLeft)
System\Windows\Controls\Primitives\Popup.cs (4)
1841if (parent != null && (FlowDirection)parent.GetValue(FlowDirectionProperty) == FlowDirection.RightToLeft) 2398if ((FlowDirection)target.GetValue(FlowDirectionProperty) != 2399(FlowDirection)child.GetValue(FlowDirectionProperty))
System\Windows\Controls\Primitives\PopupRoot.cs (3)
320FlowDirection childFlowDirection = (FlowDirection)child.GetValue(FlowDirectionProperty); 321FlowDirection thisFlowDirection = FlowDirection;
System\Windows\Controls\Primitives\ScrollBar.cs (1)
786else 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)
2181FlowDirection 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)
638bool invert = (FlowDirection == FlowDirection.RightToLeft);
System\Windows\Documents\Block.cs (2)
260public FlowDirection FlowDirection 262get { return (FlowDirection)GetValue(FlowDirectionProperty); }
System\windows\Documents\CaretElement.cs (6)
660FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 662flowDirection == FlowDirection.RightToLeft ? -20 : 20, 705FlowDirection flowDirection = (FlowDirection)AdornedElement.GetValue(FlowDirectionProperty); 706if (flowDirection == FlowDirection.RightToLeft)
System\Windows\Documents\FixedPage.cs (3)
51FrameworkPropertyMetadata metadata = new FrameworkPropertyMetadata(FlowDirection.LeftToRight, FrameworkPropertyMetadataOptions.AffectsParentArrange) 600return FlowDirection.LeftToRight; 1270FlowDirection.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)
239element.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 243element.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)
480FlowDirection inputFlowDirection; 483inputFlowDirection = FlowDirection.RightToLeft; 487inputFlowDirection = FlowDirection.LeftToRight; 491FlowDirection 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)
782FlowDirection flowDirection = paragraphOrBlockUIContainer.FlowDirection; 786flowDirection == FlowDirection.LeftToRight && margin.Left > 0 || 787flowDirection == FlowDirection.RightToLeft && margin.Right > 0 || 1216((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.LeftToRight, /*applyToParagraphs*/true); 1221UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1222This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.LeftToRight); 1232((TextSelection)This.Selection).ApplyPropertyValue(FlowDocument.FlowDirectionProperty, FlowDirection.RightToLeft, /*applyToParagraphs*/true); 1237UIElementPropertyUndoUnit.Add(This.TextContainer, This.UiScope, FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft); 1238This.UiScope.SetValue(FrameworkElement.FlowDirectionProperty, FlowDirection.RightToLeft);
System\Windows\Documents\TextRange.cs (2)
1655(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)
389FlowDirection flowDirection = (FlowDirection)listToRemove.GetValue(Paragraph.FlowDirectionProperty);
System\windows\Documents\TextSelection.cs (18)
495FlowDirection initialFlowDirection = (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty); 500initialFlowDirection == (FlowDirection)caretPosition.GetValue(FrameworkElement.FlowDirectionProperty) && 1973FlowDirection renderScopeFlowDirection = (FlowDirection)this.TextView.RenderScope.GetValue(Block.FlowDirectionProperty); 1974FlowDirection paragraphFlowDirection = (FlowDirection)cursorPosition.GetValue(Block.FlowDirectionProperty); 1976if (renderScopeFlowDirection == FlowDirection.LeftToRight) 1978if (paragraphFlowDirection == FlowDirection.LeftToRight && 1984else if (paragraphFlowDirection == FlowDirection.RightToLeft && 1993if (paragraphFlowDirection == FlowDirection.LeftToRight && 1999else if (paragraphFlowDirection == FlowDirection.RightToLeft && 2249FlowDirection flowDirection = (FlowDirection)focusedTextSelection.Start.GetValue(FrameworkElement.FlowDirectionProperty); 2255if (flowDirection != FlowDirection.RightToLeft) 2375FlowDirection uiScopeflowDirection = (FlowDirection)textEditor.UiScope.GetValue(FrameworkElement.FlowDirectionProperty); 2381FlowDirection 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)
116if (((FlowDirection)FlowDirectionProperty.GetDefaultValue(DependencyObjectType)) == FlowDirection.RightToLeft) 3627typeof(FlowDirection), 3630System.Windows.FlowDirection.LeftToRight, // default value 3663fe.IsRightToLeft = ((FlowDirection)e.NewValue) == FlowDirection.RightToLeft; 3672public FlowDirection FlowDirection 3674get { return IsRightToLeft ? FlowDirection.RightToLeft : FlowDirection.LeftToRight; } 3682public static FlowDirection GetFlowDirection(DependencyObject element) 3685return (FlowDirection)element.GetValue(FlowDirectionProperty); 3692public static void SetFlowDirection(DependencyObject element, FlowDirection value) 3703FlowDirection value = (FlowDirection)o; 3704return value == FlowDirection.LeftToRight || value == FlowDirection.RightToLeft; 3953FlowDirection thisFlowDirection = fe.FlowDirection; 3954FlowDirection parentFlowDirection = FlowDirection.LeftToRight; // Assume LTR if no parent is found. 3978parentFlowDirection = (FlowDirection)parentFCE.GetValue(FlowDirectionProperty); 3992private static FlowDirection GetFlowDirectionFromVisual(DependencyObject visual) 3994FlowDirection flowDirection = FlowDirection.LeftToRight; 4014flowDirection = (FlowDirection)flowDirectionValue; 4031internal static bool ApplyMirrorTransform(FlowDirection parentFD, FlowDirection thisFD) 4033return ((parentFD == FlowDirection.LeftToRight && thisFD == FlowDirection.RightToLeft) || 4034(parentFD == FlowDirection.RightToLeft && thisFD == FlowDirection.LeftToRight));
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (1)
2549TypeConverterType = typeof(System.Windows.FlowDirection)
System\Windows\Shell\WindowChromeWorker.cs (1)
454bool compliment = _window.FlowDirection == FlowDirection.RightToLeft;
System\Windows\Window.cs (7)
1892if (FlowDirection == FlowDirection.RightToLeft) 5003if (FlowDirection == FlowDirection.RightToLeft) 6825if ( this.FlowDirection == FlowDirection.LeftToRight ) 6829else if ( this.FlowDirection == FlowDirection.RightToLeft ) 7444private NativeMethods.POINT GetWindowScreenLocation(FlowDirection flowDirection) 7448if (flowDirection == FlowDirection.RightToLeft) 7557internal NativeMethods.POINT GetPointRelativeToWindow( int x, int y, FlowDirection flowDirection )
PresentationFramework.Aero (5)
Microsoft\Windows\Themes\BulletChrome.cs (2)
720if (FlowDirection == FlowDirection.RightToLeft) 728if (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)
720if (FlowDirection == FlowDirection.RightToLeft) 728if (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)
2229bool 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)
565FlowDirection elementFD = (FlowDirection)_clonedElement.GetValue(FlowDirectionProperty); 567FlowDirection parentFD = parent == null ? FlowDirection : (FlowDirection)parent.GetValue(FlowDirectionProperty); 1010if (FlowDirection == FlowDirection.RightToLeft)
Microsoft\Windows\Controls\Ribbon\RibbonGallery.cs (4)
2701else if ((e.Key == Key.Left) == (FlowDirection == FlowDirection.LeftToRight)) 2704FocusNavigationDirection direction = (FlowDirection == FlowDirection.LeftToRight ? FocusNavigationDirection.Left : FocusNavigationDirection.Right); 2732if ((FlowDirection == FlowDirection.LeftToRight && DoubleUtil.GreaterThan(predictedFocusedOrigin.X, focusedOrigin.X)) || 2733(FlowDirection == FlowDirection.RightToLeft && DoubleUtil.LessThan(predictedFocusedOrigin.X, focusedOrigin.X)))
Microsoft\Windows\Controls\Ribbon\RibbonMenuItem.cs (7)
814if (FlowDirection == FlowDirection.RightToLeft) 1309(isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.LeftToRight) || 1310(!isDropDownPhysicallyPositionedLeft && FlowDirection == FlowDirection.RightToLeft); 1335popupChildMargin = (FlowDirection == FlowDirection.LeftToRight) ? popupChild.Margin.Left : popupChild.Margin.Right ; 1345if (FlowDirection == FlowDirection.LeftToRight) 1364if (FlowDirection == FlowDirection.LeftToRight) 1377if (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)
175SW.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: