42 references to SetValue
PresentationFramework (40)
src\Framework\System\Windows\Controls\ContentPresenter.cs (2)
58text.SetValue(AccessText.TextProperty, new TemplateBindingExtension(ContentProperty)); 66text.SetValue(TextBlock.TextProperty, new TemplateBindingExtension(ContentProperty));
src\Framework\System\Windows\Controls\DataGrid.cs (1)
46dataGridRowPresenterFactory.SetValue(FrameworkElement.NameProperty, ItemsPanelPartName);
src\Framework\System\Windows\Controls\GridViewHeaderRowPresenter.cs (1)
1163border.SetValue(Border.BackgroundProperty, new SolidColorBrush(Color.FromUInt32(0xFF000080)));
src\Framework\System\Windows\Controls\ItemsPanelTemplate.cs (1)
137root.SetValue(Panel.IsItemsHostProperty, true);
src\Framework\System\Windows\Controls\ScrollViewer.cs (26)
2735grid.SetValue(Grid.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty)); 2750content.SetValue(Grid.ColumnProperty, 0); 2751content.SetValue(Grid.RowProperty, 0); 2752content.SetValue(ContentPresenter.MarginProperty, new TemplateBindingExtension(PaddingProperty)); 2753content.SetValue(ContentProperty, new TemplateBindingExtension(ContentProperty)); 2754content.SetValue(ContentTemplateProperty, new TemplateBindingExtension(ContentTemplateProperty)); 2755content.SetValue(CanContentScrollProperty, new TemplateBindingExtension(CanContentScrollProperty)); 2757hsb.SetValue(ScrollBar.OrientationProperty, Orientation.Horizontal); 2758hsb.SetValue(Grid.ColumnProperty, 0); 2759hsb.SetValue(Grid.RowProperty, 1); 2760hsb.SetValue(RangeBase.MinimumProperty, 0.0); 2761hsb.SetValue(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableWidthProperty)); 2762hsb.SetValue(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportWidthProperty)); 2764hsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedHorizontalScrollBarVisibilityProperty)); 2765hsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2766hsb.SetValue(AutomationProperties.AutomationIdProperty, "HorizontalScrollBar"); 2768vsb.SetValue(Grid.ColumnProperty, 1); 2769vsb.SetValue(Grid.RowProperty, 0); 2770vsb.SetValue(RangeBase.MinimumProperty, 0.0); 2771vsb.SetValue(RangeBase.MaximumProperty, new TemplateBindingExtension(ScrollableHeightProperty)); 2772vsb.SetValue(ScrollBar.ViewportSizeProperty, new TemplateBindingExtension(ViewportHeightProperty)); 2774vsb.SetValue(UIElement.VisibilityProperty, new TemplateBindingExtension(ComputedVerticalScrollBarVisibilityProperty)); 2775vsb.SetValue(FrameworkElement.CursorProperty, Cursors.Arrow); 2776vsb.SetValue(AutomationProperties.AutomationIdProperty, "VerticalScrollBar"); 2778corner.SetValue(Grid.ColumnProperty, 1); 2779corner.SetValue(Grid.RowProperty, 1);
src\Framework\System\Windows\Controls\Validation.cs (2)
605border.SetValue(Border.BorderBrushProperty, Brushes.Red); 606border.SetValue(Border.BorderThicknessProperty, new Thickness(1));
src\Framework\System\Windows\FrameworkElementFactory.cs (7)
284SetValue(dp, binding); 1224SetValue(ContentPresenter.ContentProperty, new TemplateBindingExtension(dpContent)); 1233SetValue(ContentPresenter.ContentTemplateProperty, new TemplateBindingExtension(dpContentTemplate)); 1235SetValue(ContentPresenter.ContentTemplateSelectorProperty, new TemplateBindingExtension(dpContentTemplateSelector)); 1237SetValue(ContentPresenter.ContentStringFormatProperty, new TemplateBindingExtension(dpContentStringFormat)); 1258SetValue(GridViewRowPresenter.ContentProperty, new TemplateBindingExtension(dpContent)); 1266SetValue(GridViewRowPresenter.ColumnsProperty, new TemplateBindingExtension(GridView.ColumnCollectionProperty));
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Base\Core\PropertyEditing\PropertyContainer.cs (1)
694this.flagEditorTemplate.VisualTree.SetValue(FlagEditor.FlagTypeProperty, propertyType);
System.Activities.Presentation\System\Activities\Presentation\View\DataGridHelper.cs (1)
938contentControlFactory.SetValue(ContentControl.NameProperty, DataGridHelper.dynamicContentControlName);