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