67 references to RootComponent
System (4)
services\io\system\io\FileSystemWatcher.cs (1)
357object baseComponent = host.RootComponent;
services\monitoring\system\diagnosticts\EventLogInternal.cs (1)
515object baseComponent = host.RootComponent;
services\monitoring\system\diagnosticts\Process.cs (1)
1023object baseComponent = host.RootComponent;
services\timers\system\timers\Timer.cs (1)
220object baseComponent = host.RootComponent;
System.Messaging (1)
System\Messaging\MessageQueue.cs (1)
1245object baseComponent = host.RootComponent;
System.Web (3)
UI\ControlIdConverter.cs (1)
56control != host.RootComponent &&
UI\TagNameToTypeMapper.cs (2)
120if (_parser.DesignerHost.RootComponent != null) { 121WebFormsRootDesigner rootDesigner = _parser.DesignerHost.GetDesigner(_parser.DesignerHost.RootComponent) as WebFormsRootDesigner;
System.Web.Mobile (2)
UI\MobileControls\Design\Adapters\DesignerAdapterUtil.cs (1)
98return host.RootComponent;
UI\MobileControls\Design\Converters\FormConverter.cs (1)
113((IDesignerHost)container).RootComponent is MobileUserControl);
System.Windows.Forms (4)
winforms\Managed\System\WinForms\AxHost.cs (1)
2324ContainerControl rootControl = host.RootComponent as ContainerControl;
winforms\Managed\System\WinForms\Control.cs (1)
6604if (host != null && host.RootComponent == this) {
winforms\Managed\System\WinForms\ErrorProvider.cs (1)
128IComponent baseComp = host.RootComponent;
winforms\Managed\System\WinForms\WebBrowserBase.cs (1)
1212IComponent comp = host.RootComponent;
System.Workflow.ComponentModel (52)
AuthoringOM\Compiler\Validation\BindValidator.cs (1)
829if (designerHost.RootComponent == refActivity)
AuthoringOM\Design\ActivityDesigner.cs (4)
324isRootDesigner = (designerHost.RootComponent == Activity); 879return (designerHost != null) ? GetDesigner(designerHost.RootComponent as Activity) as ActivityDesigner : null; 1158if (designerHost != null && InvokingDesigner == null && Activity == designerHost.RootComponent) 2385if (this.workflowView == null && surface != null && designerHost != null && designerHost.RootComponent == Activity)
AuthoringOM\Design\ActivityDesignerLayoutSerializers.cs (1)
59Activity activity = host.RootComponent as Activity;
AuthoringOM\Design\CommandSet.cs (7)
369if (designerHost != null && this.selectionService.GetComponentSelected(designerHost.RootComponent)) 394if (designerHost != null && designerHost.RootComponent != null && this.selectionService.GetComponentSelected(designerHost.RootComponent)) 481!this.selectionService.GetComponentSelected(designerHost.RootComponent)); 560IRootDesigner rootDesigner = ActivityDesigner.GetDesigner(host.RootComponent as Activity) as IRootDesigner; 714IComponent rootComponent = (designerHost != null) ? designerHost.RootComponent : null; 828if (designerHost != null && this.selectionService.GetComponentSelected(designerHost.RootComponent))
AuthoringOM\Design\CustomActivityDesigner.cs (22)
66if (designerHost.RootComponent == null) 89if (designerHost.RootComponent == eventArgs.Component) 91Activity rootActivity = designerHost.RootComponent as Activity; 157CompositeActivity rootActivity = designerHost.RootComponent as CompositeActivity; 298Type oldBaseType = host.RootComponent.GetType(); 306PropertyDescriptor supportsEventsPropDesc = TypeDescriptor.GetProperties(host.RootComponent)["SupportsEvents"]; 307if (supportsEventsPropDesc != null && ((bool)supportsEventsPropDesc.GetValue(host.RootComponent)) == true) 308supportsEventsPropDesc.SetValue(host.RootComponent, false); 310PropertyDescriptor supportsExceptionsPropDesc = TypeDescriptor.GetProperties(host.RootComponent)["SupportsExceptions"]; 311if (supportsExceptionsPropDesc != null && ((bool)supportsExceptionsPropDesc.GetValue(host.RootComponent)) == true) 312supportsExceptionsPropDesc.SetValue(host.RootComponent, false); 315PropertyDescriptorCollection properties = TypeDescriptor.GetProperties(host.RootComponent); 316if (host.RootComponent is CompositeActivity && ((CompositeActivity)host.RootComponent).Activities.Count > 0) 329List<Activity> activitiesToRemove = new List<Activity>(((CompositeActivity)host.RootComponent).Activities); 330CompositeActivityDesigner rootDesigner = host.GetDesigner(host.RootComponent) as CompositeActivityDesigner; 340propertyDescriptor.CanResetValue(host.RootComponent)) 342propertyDescriptor.ResetValue(host.RootComponent); 351changeService.OnComponentChanging(host.RootComponent, baseActivityTypePropertyDescriptor); 353((Activity)host.RootComponent).UserData[UserDataKeys.NewBaseType] = newBaseType; 358changeService.OnComponentChanged(host.RootComponent, baseActivityTypePropertyDescriptor, baseActivityTypePropertyDescriptor.GetValue(host.RootComponent), typeName);
AuthoringOM\Design\DesignerHelpers.cs (2)
1611Activity contextActivity = host.RootComponent as Activity; 1681MethodInfo mi = host.RootComponent.GetType().GetMethod(uniqueName, bindingFlags, null, dti.ParameterTypes, null);
AuthoringOM\Design\Dialogs\ThemeConfigurationDialog.cs (3)
958if (host != null && host.RootComponent != null) 959WorkflowDesignerLoader.RemoveActivityFromDesigner(this.surface, host.RootComponent as Activity); 982CompositeActivity rootDecl = host.RootComponent as CompositeActivity;
AuthoringOM\Design\Dialogs\TypeBrowserDialog.cs (1)
110if (designerHost == null || designerHost.RootComponent == null || loader == null || loader.InDebugMode)
AuthoringOM\Design\MessageFilters\DragDropManager.cs (2)
808if (components == null || components.Count < 1 || selectionService.GetComponentSelected(designerHost.RootComponent) || !Helpers.AreAllActivities(components)) 824if (components == null || components.Count < 1 || selectionService.GetComponentSelected(designerHost.RootComponent) || !Helpers.AreAllActivities(components))
AuthoringOM\Design\MessageFilters\WindowManager.cs (1)
254if (!(designerHost == null || selectionService.GetComponentSelected(designerHost.RootComponent)))
AuthoringOM\Design\PropertyDescriptors.cs (4)
125memberCreationService.UpdateTypeName(((Activity)host.RootComponent).GetValue(WorkflowMarkupSerializer.XClassProperty) as string, newClassName); 128((Activity)host.RootComponent).SetValue(WorkflowMarkupSerializer.XClassProperty, newClassName); 132DesignerHelpers.UpdateSiteName((Activity)host.RootComponent, name); 424Activity rootActivity = (designerHost != null) ? designerHost.RootComponent as Activity : null;
AuthoringOM\Design\XomlDesignerLoader.cs (4)
171if (activity.Parent == null && designerHost.RootComponent == null) 300if (designerHost != null && designerHost.RootComponent != null) 301rootDesigner = designerHost.GetDesigner(designerHost.RootComponent) as ActivityDesigner; 705Activity rootActivity = (designerHost != null) ? designerHost.RootComponent as Activity : null;
System.WorkflowServices (1)
System\Workflow\ComponentModel\Design\ActivityDesignerHighlighter.cs (1)
61highlightProvider = new HighlightGlyphProvider(designerHost.GetDesigner(designerHost.RootComponent) as ActivityDesigner, highlightedDesigners);