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