2 types derived from Grid
PresentationFramework (1)
System\Windows\Controls\Primitives\SelectiveScrollingGrid.cs (1)
18public class SelectiveScrollingGrid : Grid
PresentationUI (1)
artifacts\obj\PresentationUI\Debug\net9.0\InstallationError.g.cs (1)
37internal partial class InstallationErrorPage : System.Windows.Controls.Grid, System.Windows.Markup.IComponentConnector {
4 instantiations of Grid
PresentationFramework (4)
System\Windows\Controls\BorderGapMaskConverter.cs (1)
82Grid grid = new Grid();
System\Windows\Documents\TextTreeDeleteContentUndoUnit.cs (1)
383embeddedObject = new Grid();
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4893bamlType.DefaultConstructor = delegate() { return new System.Windows.Controls.Grid(); };
System\Windows\Markup\KnownTypes.cs (1)
1304case KnownElements.Grid: o = new System.Windows.Controls.Grid(); break;
135 references to Grid
PresentationFramework (120)
System\Windows\Automation\Peers\CalendarAutomationPeer.cs (5)
43private Grid OwningGrid 142int childRow = (int)child.GetValue(Grid.RowProperty); 386int childRow = (int)child.GetValue(Grid.RowProperty); 387int childColumn = (int)child.GetValue(Grid.ColumnProperty); 628int childRow = (int)child.GetValue(Grid.RowProperty);
System\Windows\Automation\Peers\DateTimeAutomationPeer.cs (6)
645return (int)owningButton.GetValue(Grid.ColumnProperty); 664return (int)owningButton.GetValue(Grid.ColumnSpanProperty); 696Debug.Assert((int)owningButton.GetValue(Grid.RowProperty) > 0); 699return (int)owningButton.GetValue(Grid.RowProperty) - 1; 703return (int)owningButton.GetValue(Grid.RowProperty); 725return (int)owningButton.GetValue(Grid.RowSpanProperty);
System\Windows\Controls\BorderGapMaskConverter.cs (9)
82Grid grid = new Grid(); 108Grid.SetRowSpan(rectColumn1, 2); 109Grid.SetRow(rectColumn1, 0); 110Grid.SetColumn(rectColumn1, 0); 112Grid.SetRow(rectColumn2, 1); 113Grid.SetColumn(rectColumn2, 1); 115Grid.SetRowSpan(rectColumn3, 2); 116Grid.SetRow(rectColumn3, 0); 117Grid.SetColumn(rectColumn3, 2);
System\Windows\Controls\ColumnDefinition.cs (3)
67internal ColumnDefinitionCollection(Grid owner) 734private readonly Grid _owner; // owner of the collection 981value = ((Grid)base.Parent).GetFinalColumnDefinitionWidth(base.Index);
System\Windows\Controls\DatePicker.cs (1)
26[TemplatePart(Name = DatePicker.ElementRoot, Type = typeof(Grid))]
System\Windows\Controls\DefinitionBase.cs (16)
117internal void OnBeforeLayout(Grid grid) 163Grid parentGrid = (Grid) definition.Parent; 200Grid parentGrid = (Grid) definition.Parent; 229Grid parentGrid = (Grid) definition.Parent; 334internal Grid.LayoutTimeSizeType SizeType 360if ( _sizeType != Grid.LayoutTimeSizeType.Auto 673private Grid.LayoutTimeSizeType _sizeType; // layout-time user size type. it may differ from _userSizeValueCache.UnitType when calculating "to-content" 798Grid parentGrid = (Grid)(_registry[i].Parent); 937Grid parentGrid = (Grid)definitionBase.Parent; 945Grid parentGrid = (Grid)definitionBase.Parent;
System\Windows\Controls\Grid.cs (13)
2969Grid grid = (Grid)d; 2989Grid grid = VisualTreeHelper.GetParent(child) as Grid; 3387typeof(Grid), 3408typeof(Grid), 3430typeof(Grid), 3451typeof(Grid), 3472typeof(Grid), 3486typeof(Grid), 3883internal GridChildrenCollectionEnumeratorSimple(Grid grid, bool includeChildren) 4001Grid grid = VisualTreeHelper.GetParent(this) as Grid;
System\Windows\Controls\GridSplitter.cs (10)
493Grid grid = Parent as Grid; 524int gridSpan = (int)GetValue(_resizeData.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnSpanProperty : Grid.RowSpanProperty); 528splitterIndex = (int)GetValue(_resizeData.ResizeDirection == GridResizeDirection.Columns ? Grid.ColumnProperty : Grid.RowProperty); 737Grid grid = Parent as Grid; 767private static DefinitionBase GetGridDefinition(Grid grid, int index, GridResizeDirection direction) 998public Grid Grid;
System\Windows\Controls\Primitives\CalendarItem.cs (14)
22[TemplatePart(Name = CalendarItem.ElementMonthView, Type = typeof(Grid))] 23[TemplatePart(Name = CalendarItem.ElementYearView, Type = typeof(Grid))] 53private Grid _monthView; 56private Grid _yearView; 81internal Grid MonthView 92internal Grid YearView 171_monthView = GetTemplateChild(ElementMonthView) as Grid; 172_yearView = GetTemplateChild(ElementYearView) as Grid; 960titleCell.SetValue(Grid.RowProperty, 0); 961titleCell.SetValue(Grid.ColumnProperty, i); 972dayCell.SetValue(Grid.RowProperty, i); 973dayCell.SetValue(Grid.ColumnProperty, j); 998monthCell.SetValue(Grid.RowProperty, i); 999monthCell.SetValue(Grid.ColumnProperty, j);
System\Windows\Controls\RowDefinition.cs (3)
67internal RowDefinitionCollection(Grid owner) 734private readonly Grid _owner; // owner of the collection 981value = ((Grid)base.Parent).GetFinalRowDefinitionHeight(base.Index);
System\Windows\Controls\ScrollViewer.cs (10)
2676FrameworkElementFactory grid = new FrameworkElementFactory(typeof(Grid), "Grid"); 2695grid.SetValue(Grid.BackgroundProperty, new TemplateBindingExtension(BackgroundProperty)); 2710content.SetValue(Grid.ColumnProperty, 0); 2711content.SetValue(Grid.RowProperty, 0); 2718hsb.SetValue(Grid.ColumnProperty, 0); 2719hsb.SetValue(Grid.RowProperty, 1); 2728vsb.SetValue(Grid.ColumnProperty, 1); 2729vsb.SetValue(Grid.RowProperty, 0); 2738corner.SetValue(Grid.ColumnProperty, 1); 2739corner.SetValue(Grid.RowProperty, 1);
System\Windows\FrameworkElementFactory.cs (2)
889Grid parentGrid; 894&& (parentGrid = parent as Grid) != null
System\Windows\Markup\Baml2006\Baml2006KnownTypes.cs (1)
350case 254: t = () => typeof(Grid); break;
System\Windows\Markup\Baml2006\WpfGeneratedKnownProperties.cs (21)
2728Type type = typeof(System.Windows.Controls.Grid); 2729DependencyProperty dp = System.Windows.Controls.Grid.ColumnProperty; 2731this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 2745Type type = typeof(System.Windows.Controls.Grid); 2746DependencyProperty dp = System.Windows.Controls.Grid.ColumnSpanProperty; 2748this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 2762Type type = typeof(System.Windows.Controls.Grid); 2763DependencyProperty dp = System.Windows.Controls.Grid.RowProperty; 2765this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 2779Type type = typeof(System.Windows.Controls.Grid); 2780DependencyProperty dp = System.Windows.Controls.Grid.RowSpanProperty; 2782this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 4658Type type = typeof(System.Windows.Controls.Grid); 4660this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 4666bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).Children; }; 6397Type type = typeof(System.Windows.Controls.Grid); 6399this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 6405bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).ColumnDefinitions; }; 6414Type type = typeof(System.Windows.Controls.Grid); 6416this.GetXamlType(typeof(System.Windows.Controls.Grid)), // DeclaringType 6422bamlMember.GetDelegate = delegate(object target) { return ((System.Windows.Controls.Grid)target).RowDefinitions; };
System\Windows\Markup\Baml2006\WpfGeneratedKnownTypes.cs (1)
4891typeof(System.Windows.Controls.Grid),
System\Windows\Markup\KnownTypes.cs (5)
1802return System.Windows.Controls.Grid.ColumnProperty; 1804return System.Windows.Controls.Grid.ColumnSpanProperty; 1806return System.Windows.Controls.Grid.RowProperty; 1808return System.Windows.Controls.Grid.RowSpanProperty; 5808case KnownElements.Grid: t = typeof(System.Windows.Controls.Grid); break;
PresentationUI (9)
artifacts\obj\PresentationUI\Debug\net9.0\InstallationError.g.cs (2)
42internal System.Windows.Controls.Grid RedWarning; 134this.RedWarning = ((System.Windows.Controls.Grid)(target));
artifacts\obj\PresentationUI\Debug\net9.0\MS\Internal\Documents\FindToolBar.g.cs (2)
66internal System.Windows.Controls.Grid FindTextBoxGrid; 199this.FindTextBoxGrid = ((System.Windows.Controls.Grid)(target));
artifacts\obj\PresentationUI\Debug\net9.0\TenFeetInstallationError.g.cs (2)
42internal System.Windows.Controls.Grid Grid_2; 142this.Grid_2 = ((System.Windows.Controls.Grid)(target));
MS\Internal\Documents\DocumentApplicationDocumentViewer.cs (3)
693private Grid ToolBar 700_toolBar = GetTemplateChild(_toolBarName) as Grid; 2218private Grid _toolBar;
System.Windows.Controls.Ribbon (6)
Microsoft\Windows\Controls\Ribbon\Ribbon.cs (1)
51[TemplatePart(Name = Ribbon.QatHostTemplateName, Type = typeof(Grid))]
Microsoft\Windows\Controls\Ribbon\RibbonGroup.cs (3)
47[TemplatePart(Name = RibbonGroup.PopupGridTemplatePartName, Type = typeof(Grid))] 146Grid popupGrid = this.GetTemplateChild(PopupGridTemplatePartName) as Grid;
Microsoft\Windows\Controls\Ribbon\RibbonSeparator.cs (2)
160SetValue(Grid.IsSharedSizeScopeProperty, true); 161ClearValue(Grid.IsSharedSizeScopeProperty);