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