87 references to HorizontalAlignment
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
QuickInfo\OnTheFlyDocsView.xaml.cs (1)
99element.HorizontalAlignment = HorizontalAlignment.Stretch;
Microsoft.VisualStudio.LanguageServices (3)
PreviewPane\PreviewPane.xaml.cs (1)
143previewElement.HorizontalAlignment = HorizontalAlignment.Left;
StackTraceExplorer\StackTraceExplorerToolWindow.cs (1)
132HorizontalAlignment = HorizontalAlignment.Stretch,
UnusedReferences\Dialog\UnusedReferencesTableProvider.ColumnDefinitions.cs (1)
65HorizontalAlignment = HorizontalAlignment.Stretch
PresentationFramework (71)
MS\Internal\Documents\TextBoxView.cs (7)
2890private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2896case HorizontalAlignment.Left: 2901case HorizontalAlignment.Right: 2905case HorizontalAlignment.Center: 2909case HorizontalAlignment.Stretch: 3098return HorizontalAlignmentToTextAlignment((HorizontalAlignment)o); 3107return HorizontalAlignmentToTextAlignment((HorizontalAlignment)o);
MS\Internal\PtsHost\FloaterParaClient.cs (1)
816if(floater.HorizontalAlignment != HorizontalAlignment.Stretch)
MS\Internal\PtsHost\FloaterParagraph.cs (12)
134case HorizontalAlignment.Right: 137case HorizontalAlignment.Center: 140case HorizontalAlignment.Left: 271if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 447if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 790private HorizontalAlignment HorizontalAlignment 806return HorizontalAlignment.Left; 812return HorizontalAlignment.Right; 818return HorizontalAlignment.Center; 823return HorizontalAlignment.Center; 840if (HorizontalAlignment == HorizontalAlignment.Stretch) 896if(Element is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
System\Windows\Controls\Control.cs (4)
292typeof(HorizontalAlignment), 294new FrameworkPropertyMetadata(HorizontalAlignment.Left), 303public HorizontalAlignment HorizontalContentAlignment 305get { return (HorizontalAlignment) GetValue(HorizontalContentAlignmentProperty); }
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
48style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty, HorizontalAlignment.Center)); 77style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty, HorizontalAlignment.Center));
System\Windows\Controls\DatePicker.cs (1)
1083_calendar.HorizontalAlignment = HorizontalAlignment.Left;
System\Windows\Controls\GridSplitter.cs (4)
98FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right)); 313if (HorizontalAlignment != HorizontalAlignment.Stretch) 344case HorizontalAlignment.Left: 347case HorizontalAlignment.Right:
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1126paddingHeader.HorizontalAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\RichTextBox.cs (2)
790if (this.RenderScope.HorizontalAlignment != HorizontalAlignment.Stretch) 792this.RenderScope.HorizontalAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\Separator.cs (1)
35container.HorizontalContentAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\UserControl.cs (1)
32HorizontalContentAlignmentProperty.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(HorizontalAlignment.Stretch));
System\Windows\Documents\Floater.cs (3)
85HorizontalAlignment.Stretch, 91public HorizontalAlignment HorizontalAlignment 93get { return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty); }
System\Windows\Documents\TextRangeEdit.cs (12)
883HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1158internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1160HorizontalAlignment horizontalAlignment; 1165horizontalAlignment = HorizontalAlignment.Left; 1168horizontalAlignment = HorizontalAlignment.Center; 1171horizontalAlignment = HorizontalAlignment.Right; 1174horizontalAlignment = HorizontalAlignment.Stretch; 1182internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1187case HorizontalAlignment.Left: 1190case HorizontalAlignment.Center: 1193case HorizontalAlignment.Right: 1197case HorizontalAlignment.Stretch:
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
104internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue)
System\Windows\FrameworkElement.cs (17)
3765typeof(HorizontalAlignment), 3768HorizontalAlignment.Stretch, 3774HorizontalAlignment ha = (HorizontalAlignment)value; 3775return ( ha == HorizontalAlignment.Left 3776|| ha == HorizontalAlignment.Center 3777|| ha == HorizontalAlignment.Right 3778|| ha == HorizontalAlignment.Stretch ); 3784public HorizontalAlignment HorizontalAlignment 3786get { return (HorizontalAlignment) GetValue(HorizontalAlignmentProperty); } 4635if (HorizontalAlignment != HorizontalAlignment.Stretch) 4831HorizontalAlignment ha = HorizontalAlignment; 4836if( ha == HorizontalAlignment.Stretch 4839ha = HorizontalAlignment.Left; 4849if ( ha == HorizontalAlignment.Center 4850|| ha == HorizontalAlignment.Stretch ) 4854else if (ha == HorizontalAlignment.Right)
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2271bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment); 2520bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment);
PresentationUI (3)
MS\Internal\Documents\Application\PageTextBox.cs (2)
337HorizontalAlignment = HorizontalAlignment.Center; 339HorizontalContentAlignment = HorizontalAlignment.Center;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1834newItem.HorizontalAlignment = HorizontalAlignment.Right;
Roslyn.VisualStudio.DiagnosticsWindow (4)
OptionPages\InternalOptionsControl.cs (4)
41var searchBox = new TextBox() { MinWidth = 200, HorizontalAlignment = HorizontalAlignment.Stretch }; 74HorizontalAlignment = HorizontalAlignment.Stretch 92HorizontalAlignment = HorizontalAlignment.Stretch 99var mainPanel = new DockPanel() { HorizontalAlignment = HorizontalAlignment.Stretch };
System.Windows.Controls.Ribbon (4)
Microsoft\Windows\Controls\Ribbon\Primitives\RibbonGroupItemsPanel.cs (4)
395HorizontalAlignment childAlignment = (HorizontalAlignment)contentChild.GetValue(HorizontalAlignmentProperty); 396if (childAlignment == HorizontalAlignment.Left || 397childAlignment == HorizontalAlignment.Right)
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
313childFrameworkElement.HorizontalAlignment = SW.HorizontalAlignment.Stretch;