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