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)
56
text.
SetValue
(AccessText.TextProperty, new TemplateBindingExtension(ContentProperty));
64
text.
SetValue
(TextBlock.TextProperty, new TemplateBindingExtension(ContentProperty));
System\Windows\Controls\DataGrid.cs (1)
45
dataGridRowPresenterFactory.
SetValue
(FrameworkElement.NameProperty, ItemsPanelPartName);
System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1160
border.
SetValue
(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
System\Windows\Controls\ItemsPanelTemplate.cs (1)
133
root.
SetValue
(Panel.IsItemsHostProperty, true);
System\Windows\Controls\ScrollViewer.cs (30)
2695
grid.
SetValue
(Grid.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty));
2705
gridColumn1.
SetValue
(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Star));
2706
gridColumn2.
SetValue
(ColumnDefinition.WidthProperty, new GridLength(1.0, GridUnitType.Auto));
2707
gridRow1.
SetValue
(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Star));
2708
gridRow2.
SetValue
(RowDefinition.HeightProperty, new GridLength(1.0, GridUnitType.Auto));
2710
content.
SetValue
(Grid.ColumnProperty, 0);
2711
content.
SetValue
(Grid.RowProperty, 0);
2712
content.
SetValue
(ContentPresenter.MarginProperty, new TemplateBindingExtension(PaddingProperty));
2713
content.
SetValue
(ContentProperty, new TemplateBindingExtension(ContentProperty));
2714
content.
SetValue
(ContentTemplateProperty, new TemplateBindingExtension(ContentTemplateProperty));
2715
content.
SetValue
(CanContentScrollProperty, new TemplateBindingExtension(CanContentScrollProperty));
2717
hsb.
SetValue
(ScrollBar.OrientationProperty, Orientation.Horizontal);
2718
hsb.
SetValue
(Grid.ColumnProperty, 0);
2719
hsb.
SetValue
(Grid.RowProperty, 1);
2720
hsb.
SetValue
(RangeBase.MinimumProperty, 0.0);
2721
hsb.
SetValue
(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableWidthProperty));
2722
hsb.
SetValue
(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportWidthProperty));
2724
hsb.
SetValue
(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty));
2725
hsb.
SetValue
(FrameworkElement.CursorProperty, Cursors.Arrow);
2726
hsb.
SetValue
(AutomationProperties.AutomationIdProperty, "HorizontalScrollBar");
2728
vsb.
SetValue
(Grid.ColumnProperty, 1);
2729
vsb.
SetValue
(Grid.RowProperty, 0);
2730
vsb.
SetValue
(RangeBase.MinimumProperty, 0.0);
2731
vsb.
SetValue
(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableHeightProperty));
2732
vsb.
SetValue
(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportHeightProperty));
2734
vsb.
SetValue
(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty));
2735
vsb.
SetValue
(FrameworkElement.CursorProperty, Cursors.Arrow);
2736
vsb.
SetValue
(AutomationProperties.AutomationIdProperty, "VerticalScrollBar");
2738
corner.
SetValue
(Grid.ColumnProperty, 1);
2739
corner.
SetValue
(Grid.RowProperty, 1);
System\Windows\Controls\Validation.cs (2)
610
border.
SetValue
(Border.BorderBrushProperty, Brushes.Red);
611
border.
SetValue
(Border.BorderThicknessProperty, new Thickness(1));
System\Windows\FrameworkElementFactory.cs (7)
278
SetValue
(dp, binding);
1200
SetValue
(ContentPresenter.ContentProperty, new TemplateBindingExtension(dpContent));
1209
SetValue
(ContentPresenter.ContentTemplateProperty, new TemplateBindingExtension(dpContentTemplate));
1211
SetValue
(ContentPresenter.ContentTemplateSelectorProperty, new TemplateBindingExtension(dpContentTemplateSelector));
1213
SetValue
(ContentPresenter.ContentStringFormatProperty, new TemplateBindingExtension(dpContentStringFormat));
1234
SetValue
(GridViewRowPresenter.ContentProperty, new TemplateBindingExtension(dpContent));
1242
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)
64
text.
SetValue
(TextBlock.TextProperty, new TemplateBindingExtension(ContentPresenter.ContentProperty));
Microsoft\Windows\Controls\Ribbon\RibbonControlGroup.cs (1)
43
fef.
SetValue
(StackPanel.OrientationProperty, Orientation.Horizontal);