52 references to SetValue
Microsoft.VisualStudio.LanguageServices (5)
InheritanceMargin\MarginGlyph\InheritanceMarginGlyph.cs (5)
80
templateBorder.
SetValue
(Border.BorderThicknessProperty, new Thickness(1));
81
templateBorder.
SetValue
(Border.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty));
82
templateBorder.
SetValue
(Border.BorderBrushProperty, new TemplateBindingExtension(BorderBrushProperty));
85
templateImage.
SetValue
(CrispImage.MonikerProperty, viewModel.ImageMoniker);
86
templateImage.
SetValue
(CrispImage.ScaleFactorProperty, viewModel.ScaleFactor);
PresentationFramework (44)
System\Windows\Controls\ContentPresenter.cs (2)
47
text.
SetValue
(AccessText.TextProperty, new TemplateBindingExtension(ContentProperty));
55
text.
SetValue
(TextBlock.TextProperty, new TemplateBindingExtension(ContentProperty));
System\Windows\Controls\DataGrid.cs (1)
42
dataGridRowPresenterFactory.
SetValue
(FrameworkElement.NameProperty, ItemsPanelPartName);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1157
border.
SetValue
(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
System\Windows\Controls\ItemsPanelTemplate.cs (1)
128
root.
SetValue
(Panel.IsItemsHostProperty, true);
System\Windows\Controls\ScrollViewer.cs (30)
2687
grid.
SetValue
(Grid.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty));
2697
gridColumn1.
SetValue
(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Star));
2698
gridColumn2.
SetValue
(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Auto));
2699
gridRow1.
SetValue
(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Star));
2700
gridRow2.
SetValue
(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Auto));
2702
content.
SetValue
(Grid.ColumnProperty, 0);
2703
content.
SetValue
(Grid.RowProperty, 0);
2704
content.
SetValue
(ContentPresenter.MarginProperty, new TemplateBindingExtension(PaddingProperty));
2705
content.
SetValue
(ContentProperty, new TemplateBindingExtension(ContentProperty));
2706
content.
SetValue
(ContentTemplateProperty, new TemplateBindingExtension(ContentTemplateProperty));
2707
content.
SetValue
(CanContentScrollProperty, new TemplateBindingExtension(CanContentScrollProperty));
2709
hsb.
SetValue
(ScrollBar.OrientationProperty, Orientation.Horizontal);
2710
hsb.
SetValue
(Grid.ColumnProperty, 0);
2711
hsb.
SetValue
(Grid.RowProperty, 1);
2712
hsb.
SetValue
(RangeBase.MinimumProperty, 0.0);
2713
hsb.
SetValue
(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableWidthProperty));
2714
hsb.
SetValue
(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportWidthProperty));
2716
hsb.
SetValue
(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty));
2717
hsb.
SetValue
(FrameworkElement.CursorProperty, Cursors.Arrow);
2718
hsb.
SetValue
(AutomationProperties.AutomationIdProperty, "HorizontalScrollBar");
2720
vsb.
SetValue
(Grid.ColumnProperty, 1);
2721
vsb.
SetValue
(Grid.RowProperty, 0);
2722
vsb.
SetValue
(RangeBase.MinimumProperty, 0.0);
2723
vsb.
SetValue
(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableHeightProperty));
2724
vsb.
SetValue
(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportHeightProperty));
2726
vsb.
SetValue
(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
2727
vsb.
SetValue
(FrameworkElement.CursorProperty, Cursors.Arrow);
2728
vsb.
SetValue
(AutomationProperties.AutomationIdProperty, "VerticalScrollBar");
2730
corner.
SetValue
(Grid.ColumnProperty, 1);
2731
corner.
SetValue
(Grid.RowProperty, 1);
System\Windows\Controls\Validation.cs (2)
602
border.
SetValue
(Border.BorderBrushProperty, Brushes.Red);
603
border.
SetValue
(Border.BorderThicknessProperty, new Thickness(1));
System\Windows\FrameworkElementFactory.cs (7)
270
SetValue
(dp, binding);
1192
SetValue
(ContentPresenter.ContentProperty, new TemplateBindingExtension(dpContent));
1201
SetValue
(ContentPresenter.ContentTemplateProperty, new TemplateBindingExtension(dpContentTemplate));
1203
SetValue
(ContentPresenter.ContentTemplateSelectorProperty, new TemplateBindingExtension(dpContentTemplateSelector));
1205
SetValue
(ContentPresenter.ContentStringFormatProperty, new TemplateBindingExtension(dpContentStringFormat));
1226
SetValue
(GridViewRowPresenter.ContentProperty, new TemplateBindingExtension(dpContent));
1234
SetValue
(GridViewRowPresenter.ColumnsProperty, new TemplateBindingExtension(GridView.ColumnCollectionProperty));
Roslyn.VisualStudio.DiagnosticsWindow (1)
PerfMargin\PerfMarginPanel.cs (1)
119
wrapPanelFactory.
SetValue
(WrapPanel.ItemWidthProperty, 120d);
System.Windows.Controls.Ribbon (2)
Microsoft\Windows\Controls\Ribbon\RibbonComboBox.cs (1)
62
text.
SetValue
(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
40
fef.
SetValue
(StackPanel.OrientationProperty, Orientation.Horizontal);