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)
2888private TextAlignment HorizontalAlignmentToTextAlignment(HorizontalAlignment horizontalAlignment) 2894case HorizontalAlignment.Left: 2899case HorizontalAlignment.Right: 2903case HorizontalAlignment.Center: 2907case HorizontalAlignment.Stretch: 3096return HorizontalAlignmentToTextAlignment((HorizontalAlignment)o); 3105return HorizontalAlignmentToTextAlignment((HorizontalAlignment)o);
MS\Internal\PtsHost\FloaterParaClient.cs (1)
811if(floater.HorizontalAlignment != HorizontalAlignment.Stretch)
MS\Internal\PtsHost\FloaterParagraph.cs (12)
130case HorizontalAlignment.Right: 133case HorizontalAlignment.Center: 136case HorizontalAlignment.Left: 267if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 443if(fsbbox.fsrc.du < subpageWidth && Double.IsNaN(specifiedWidth) && HorizontalAlignment != HorizontalAlignment.Stretch) 786private HorizontalAlignment HorizontalAlignment 802return HorizontalAlignment.Left; 808return HorizontalAlignment.Right; 814return HorizontalAlignment.Center; 819return HorizontalAlignment.Center; 836if (HorizontalAlignment == HorizontalAlignment.Stretch) 892if(Element is Floater && HorizontalAlignment != HorizontalAlignment.Stretch)
System\Windows\Controls\Control.cs (4)
283typeof(HorizontalAlignment), 285new FrameworkPropertyMetadata(HorizontalAlignment.Left), 294public HorizontalAlignment HorizontalContentAlignment 296get { return (HorizontalAlignment) GetValue(HorizontalContentAlignmentProperty); }
System\Windows\Controls\DataGridCheckBoxColumn.cs (2)
44style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty, HorizontalAlignment.Center)); 73style.Setters.Add(new Setter(CheckBox.HorizontalAlignmentProperty, HorizontalAlignment.Center));
System\Windows\Controls\DatePicker.cs (1)
1079_calendar.HorizontalAlignment = HorizontalAlignment.Left;
System\Windows\Controls\GridSplitter.cs (4)
92FrameworkElement.HorizontalAlignmentProperty.OverrideMetadata(typeof(GridSplitter), new FrameworkPropertyMetadata(HorizontalAlignment.Right)); 307if (HorizontalAlignment != HorizontalAlignment.Stretch) 338case HorizontalAlignment.Left: 341case HorizontalAlignment.Right:
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1123paddingHeader.HorizontalAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\RichTextBox.cs (2)
786if (this.RenderScope.HorizontalAlignment != HorizontalAlignment.Stretch) 788this.RenderScope.HorizontalAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\Separator.cs (1)
35container.HorizontalContentAlignment = HorizontalAlignment.Stretch;
System\Windows\Controls\UserControl.cs (1)
26HorizontalContentAlignmentProperty.OverrideMetadata(typeof(UserControl), new FrameworkPropertyMetadata(HorizontalAlignment.Stretch));
System\Windows\Documents\Floater.cs (3)
84HorizontalAlignment.Stretch, 90public HorizontalAlignment HorizontalAlignment 92get { return (HorizontalAlignment)GetValue(HorizontalAlignmentProperty); }
System\Windows\Documents\TextRangeEdit.cs (12)
881HorizontalAlignment horizontalAlignment = GetHorizontalAlignmentFromTextAlignment((TextAlignment)newValue); 1156internal static HorizontalAlignment GetHorizontalAlignmentFromTextAlignment(TextAlignment textAlignment) 1158HorizontalAlignment horizontalAlignment; 1163horizontalAlignment = HorizontalAlignment.Left; 1166horizontalAlignment = HorizontalAlignment.Center; 1169horizontalAlignment = HorizontalAlignment.Right; 1172horizontalAlignment = HorizontalAlignment.Stretch; 1180internal static TextAlignment GetTextAlignmentFromHorizontalAlignment(HorizontalAlignment horizontalAlignment) 1185case HorizontalAlignment.Left: 1188case HorizontalAlignment.Center: 1191case HorizontalAlignment.Right: 1195case HorizontalAlignment.Stretch:
System\windows\Documents\UIElementPropertyUndoUnit.cs (1)
102internal static void Add(ITextContainer textContainer, UIElement uiElement, DependencyProperty property, HorizontalAlignment newValue)
System\Windows\FrameworkElement.cs (17)
3754typeof(HorizontalAlignment), 3757HorizontalAlignment.Stretch, 3763HorizontalAlignment ha = (HorizontalAlignment)value; 3764return ( ha == HorizontalAlignment.Left 3765|| ha == HorizontalAlignment.Center 3766|| ha == HorizontalAlignment.Right 3767|| ha == HorizontalAlignment.Stretch ); 3773public HorizontalAlignment HorizontalAlignment 3775get { return (HorizontalAlignment) GetValue(HorizontalAlignmentProperty); } 4624if (HorizontalAlignment != HorizontalAlignment.Stretch) 4820HorizontalAlignment ha = HorizontalAlignment; 4825if( ha == HorizontalAlignment.Stretch 4828ha = HorizontalAlignment.Left; 4838if ( ha == HorizontalAlignment.Center 4839|| ha == HorizontalAlignment.Stretch ) 4843else if (ha == HorizontalAlignment.Right)
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (2)
2269bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment); 2518bamlMember.TypeConverterType = typeof(System.Windows.HorizontalAlignment);
PresentationUI (3)
MS\Internal\Documents\Application\PageTextBox.cs (2)
335HorizontalAlignment = HorizontalAlignment.Center; 337HorizontalContentAlignment = HorizontalAlignment.Center;
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (1)
1827newItem.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)
393HorizontalAlignment childAlignment = (HorizontalAlignment)contentChild.GetValue(HorizontalAlignmentProperty); 394if (childAlignment == HorizontalAlignment.Left || 395childAlignment == HorizontalAlignment.Right)
WindowsFormsIntegration (1)
System\Windows\Integration\ElementHost.cs (1)
310childFrameworkElement.HorizontalAlignment = SW.HorizontalAlignment.Stretch;