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