16 implementations of Instance
PresentationBuildTasks (1)
Framework\System\Windows\Markup\TypeContext.cs (1)
121
public object
Instance
PresentationFramework (8)
src\Framework\MS\Internal\Data\DefaultValueConverter.cs (1)
800
public object
Instance
{ get { return null; } }
src\Framework\System\Windows\Controls\ContentPresenter.cs (1)
1146
object ITypeDescriptorContext.
Instance
{ get { return _instance; } }
src\Framework\System\Windows\Documents\DPTypeDescriptorContext.cs (1)
160
object System.ComponentModel.ITypeDescriptorContext.
Instance
src\Framework\System\Windows\Markup\Baml2006\DeferredBinaryDeserializerExtension.cs (1)
89
object ITypeDescriptorContext.
Instance
src\Framework\System\Windows\Markup\Baml2006\TypeConverterMarkupExtension.cs (1)
52
object ITypeDescriptorContext.
Instance
src\Framework\System\Windows\Markup\Primitives\ElementMarkupObject.cs (1)
209
object ITypeDescriptorContext.
Instance
src\Framework\System\Windows\Markup\typecontext.cs (1)
121
public object
Instance
src\Framework\System\Windows\TemplateContent.cs (1)
1563
object ITypeDescriptorContext.
Instance
System.Activities (1)
System\Activities\Debugger\DebugInfo.cs (1)
590
public object
Instance
System.Activities.Presentation (1)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (1)
38
public object
Instance
System.Data (1)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (1)
38
public object
Instance
System.Windows.Forms (1)
winforms\Managed\System\WinForms\PropertyGridInternal\GridEntry.cs (1)
751
public virtual object
Instance
{
System.Workflow.Activities (1)
Common\CompModHelpers.cs (1)
1351
public object
Instance
System.Workflow.ComponentModel (2)
AuthoringOM\Design\ComponentSerializationService.cs (1)
576
public object
Instance
{ get { return this.component; } }
Shared\CompModHelpers.cs (1)
1349
public object
Instance
335 references to Instance
PresentationCore (33)
Core\CSharp\System\Windows\Input\Command\KeyGestureConverter.cs (2)
68
if (context != null && context.
Instance
!= null)
70
KeyGesture keyGesture = context.
Instance
as KeyGesture;
Core\CSharp\System\Windows\Input\Command\MouseActionConverter.cs (2)
68
if (context != null && context.
Instance
!= null)
70
return (MouseActionConverter.IsDefinedMouseAction((MouseAction)context.
Instance
));
Core\CSharp\System\Windows\Input\Command\MouseGestureConverter.cs (2)
129
if (context != null && context.
Instance
!= null)
131
MouseGesture mouseGesture = context.
Instance
as MouseGesture;
Core\CSharp\System\Windows\Input\InputScopeNameConverter.cs (2)
70
if (typeof (string) == destinationType && null != context && null != context.
Instance
&& context.
Instance
is InputScopeName)
Core\CSharp\System\Windows\Media\FontFamilyConverter.cs (1)
64
FontFamily fontFamily = context.
Instance
as FontFamily;
Core\CSharp\System\Windows\Media\Generated\BrushConverter.cs (4)
82
if (context != null && context.
Instance
!= null)
84
if (!(context.
Instance
is Brush))
89
Brush value = (Brush)context.
Instance
;
155
if (context != null && context.
Instance
!= null)
Core\CSharp\System\Windows\Media\Generated\CacheModeConverter.cs (4)
82
if (context != null && context.
Instance
!= null)
84
if (!(context.
Instance
is CacheMode))
89
CacheMode value = (CacheMode)context.
Instance
;
155
if (context != null && context.
Instance
!= null)
Core\CSharp\System\Windows\Media\Generated\GeometryConverter.cs (4)
82
if (context != null && context.
Instance
!= null)
84
if (!(context.
Instance
is Geometry))
89
Geometry value = (Geometry)context.
Instance
;
155
if (context != null && context.
Instance
!= null)
Core\CSharp\System\Windows\Media\Generated\PathFigureCollectionConverter.cs (4)
82
if (context != null && context.
Instance
!= null)
84
if (!(context.
Instance
is PathFigureCollection))
89
PathFigureCollection value = (PathFigureCollection)context.
Instance
;
155
if (context != null && context.
Instance
!= null)
Core\CSharp\System\Windows\Media\Generated\TransformConverter.cs (4)
82
if (context != null && context.
Instance
!= null)
84
if (!(context.
Instance
is Transform))
89
Transform value = (Transform)context.
Instance
;
155
if (context != null && context.
Instance
!= null)
Core\CSharp\System\Windows\Media\ImageSourceConverter.cs (4)
71
if (context != null && context.
Instance
!= null)
73
if (!(context.
Instance
is ImageSource))
79
ImageSource value = (ImageSource)context.
Instance
;
223
if (context != null && context.
Instance
!= null)
PresentationFramework (1)
src\Framework\System\Windows\Input\Command\CommandConverter.cs (1)
82
RoutedCommand command = context != null ? context.
Instance
as RoutedCommand : null;
System.Activities.Presentation (2)
System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (2)
46
instance = this.context.
Instance
;
69
ModelItem item = this.context.
Instance
as ModelItem;
System.Data (5)
cdf\src\NetFx40\Tools\System.Activities.Presentation\System\Activities\Presentation\Model\ModelTypeDescriptorContextWrapper.cs (2)
46
instance = this.context.
Instance
;
69
ModelItem item = this.context.
Instance
as ModelItem;
fx\src\data\System\Data\SqlClient\SqlConnectionStringBuilder.cs (3)
1295
constr = (context.
Instance
as SqlConnectionStringBuilder);
1374
SqlConnectionStringBuilder constr = (context.
Instance
as SqlConnectionStringBuilder);
1398
SqlConnectionStringBuilder constr = (SqlConnectionStringBuilder)context.
Instance
;
System.Messaging (2)
System\Messaging\Design\QueuePathEditor.cs (2)
65
if (context.
Instance
is MessageQueue || context.
Instance
is MessageQueueInstaller)
System.Web (2)
UI\ControlIdConverter.cs (1)
81
string[] controlIDs = GetControls(host, context.
Instance
);
UI\ControlPropertyNameConverter.cs (1)
52
ControlParameter param = (ControlParameter)context.
Instance
;
System.Web.DataVisualization (85)
Common\Converters\AxisConverters.cs (23)
68
if (context != null && context.
Instance
!= null)
77
PropertyInfo propertyInfo = context.
Instance
.GetType().GetProperty("IntervalType");
80
intervalType = (DateTimeIntervalType)propertyInfo.GetValue(context.
Instance
, null);
84
propertyInfo = context.
Instance
.GetType().GetProperty("Interval");
87
interval = (double)propertyInfo.GetValue(context.
Instance
, null);
95
if(context.
Instance
is Axis)
97
axis = (Axis)context.
Instance
;
101
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetAxis");
105
axis = (Axis)methodInfo.Invoke(context.
Instance
, null);
117
if(context.
Instance
.GetType() != typeof(StripLine) || interval == 0)
148
if (context != null && context.
Instance
!= null)
153
PropertyInfo propertyInfo = context.
Instance
.GetType().GetProperty("intervalType");
156
intervalType = (DateTimeIntervalType)propertyInfo.GetValue(context.
Instance
, null);
164
if(context.
Instance
is Axis)
166
axis = (Axis)context.
Instance
;
170
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetAxis");
174
axis = (Axis)methodInfo.Invoke(context.
Instance
, null);
351
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
353
Axis axis = (Axis)context.
Instance
;
382
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
384
Axis axis = (Axis)context.
Instance
;
Common\Converters\CustomAttributesConverters.cs (11)
118
if(stringValue != null && context != null && context.
Instance
!= null)
121
if(context.
Instance
is DataPointCustomProperties)
123
((DataPointCustomProperties)context.
Instance
).CustomProperties = stringValue;
124
CustomProperties newAttributes = new CustomProperties(((DataPointCustomProperties)context.
Instance
));
128
else if (context.
Instance
is CustomProperties)
130
CustomProperties newAttributes = new CustomProperties(((CustomProperties)context.
Instance
).DataPointCustomProperties);
133
else if (context.
Instance
is IDataPointCustomPropertiesProvider)
135
CustomProperties newAttributes = new CustomProperties(((IDataPointCustomPropertiesProvider)context.
Instance
).DataPointCustomProperties);
139
else if (context.
Instance
is Array)
142
foreach (object obj in ((Array)context.
Instance
))
198
if(IsApplicableCustomProperty(attrInfo, context.
Instance
))
Common\Converters\DataManagerConverters.cs (18)
404
if (context != null && context.
Instance
!= null)
407
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetService");
412
dataManager = (DataManager)methodInfo.Invoke(context.
Instance
, parameters);
425
throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.
Instance
.GetType().ToString())));
452
if (context != null && context.
Instance
!= null)
504
if (context != null && context.
Instance
!= null)
506
DataPoint dataPoint = (DataPoint)context.
Instance
;
570
if (context != null && context.
Instance
!= null)
572
DataPoint dataPoint = (DataPoint)context.
Instance
;
624
if (context != null && context.
Instance
!= null)
626
DataPoint dataPoint = (DataPoint)context.
Instance
;
646
if (context != null && context.
Instance
!= null)
652
DataPoint dataPoint = (DataPoint)context.
Instance
;
855
if (context == null || context.
Instance
== null)
860
IChartElement element = context.
Instance
as IChartElement;
866
IList list = context.
Instance
as IList;
877
Chart chart = context.
Instance
as Chart;
883
IServiceProvider provider = context.
Instance
as IServiceProvider;
Common\Converters\LegendConverters.cs (26)
84
if (context != null && context.
Instance
!= null)
86
if (context.
Instance
is Legend)
88
Legend legend = (Legend)context.
Instance
;
94
else if (context.
Instance
is ChartArea)
96
ChartArea area = (ChartArea)context.
Instance
;
103
else if (context.
Instance
is Title)
105
Title title = (Title)context.
Instance
;
112
else if (context.
Instance
is Annotation)
114
Annotation annotation = (Annotation)context.
Instance
;
120
else if (context.
Instance
is IServiceProvider)
122
IServiceProvider provider = context.
Instance
as IServiceProvider;
131
else if (context.
Instance
is Array)
133
if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Legend)
135
Legend legend = (Legend)((Array)context.
Instance
).GetValue(0);
141
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is ChartArea)
143
ChartArea area = (ChartArea)((Array)context.
Instance
).GetValue(0);
149
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Title)
151
Title title = (Title)((Array)context.
Instance
).GetValue(0);
158
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Annotation)
160
Annotation annotation = (Annotation)((Array)context.
Instance
).GetValue(0);
204
if (context != null && context.
Instance
!= null)
207
if(context.
Instance
is Chart)
Common\General\AxisScrollZoom.cs (7)
1602
if (context != null && context.
Instance
!= null)
1606
if(context.
Instance
is AxisScaleView)
1608
axis = ((AxisScaleView)context.
Instance
).axis;
1696
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
1701
if(context.
Instance
is AxisScaleView)
1703
axis = ((AxisScaleView)context.
Instance
).axis;
System.Web.Entity.Design (5)
System\Data\WebControls\Design\EntityDataSourceContainerNameConverter.cs (1)
32
EntityDataSource entityDataSource = context.
Instance
as EntityDataSource;
System\Data\WebControls\Design\EntityDataSourceEntitySetNameConverter.cs (1)
32
EntityDataSource entityDataSource = context.
Instance
as EntityDataSource;
System\Data\WebControls\Design\EntityDataSourceEntityTypeFilterConverter.cs (1)
33
EntityDataSource entityDataSource = context.
Instance
as EntityDataSource;
System\Data\WebControls\Design\EntityDataSourceStatementEditor.cs (2)
31
EntityDataSource entityDataSource = (EntityDataSource)context.
Instance
;
46
(IComponent)context.
Instance
,
System.Web.Mobile (39)
UI\MobileControls\Design\AppliedDeviceFiltersEditor.cs (2)
29
Debug.Assert(context.
Instance
is Control, "Expected control");
30
Control ctrl = (Control) context.
Instance
;
UI\MobileControls\Design\CommandCollectionEditor.cs (2)
56
Debug.Assert(context.
Instance
is ObjectList, "Expected objectlist");
57
ObjectList _objectList = (ObjectList)context.
Instance
;
UI\MobileControls\Design\Converters\ChoiceConverter.cs (3)
33
if (context != null && context.
Instance
is Array)
140
if (context == null || context.
Instance
== null)
145
Object [] objValues = GetChoices(context.
Instance
);
UI\MobileControls\Design\Converters\DataFieldConverter.cs (2)
105
IComponent component = context.
Instance
as IComponent;
228
if (context.
Instance
is IComponent)
UI\MobileControls\Design\Converters\DataMemberConverter.cs (2)
94
IComponent component = context.
Instance
as IComponent;
154
if (context.
Instance
is IComponent)
UI\MobileControls\Design\Converters\DefaultCommandConverter.cs (6)
61
if (context == null || context.
Instance
== null)
67
if (context.
Instance
is IDeviceSpecificChoiceDesigner)
69
objectList = ((IDeviceSpecificChoiceDesigner)context.
Instance
).UnderlyingObject as ObjectList;
71
else if (context.
Instance
is ObjectList)
73
objectList = (ObjectList)context.
Instance
;
130
if (context.
Instance
is IComponent)
UI\MobileControls\Design\Converters\FormConverter.cs (6)
57
if (context.
Instance
is Array)
59
Array list = (Array)context.
Instance
;
81
if (context.
Instance
is MobileControl)
83
control = (MobileControl) context.
Instance
;
85
else if (context.
Instance
is ChoicePropertyFilter)
87
ChoicePropertyFilter filter = (ChoicePropertyFilter)context.
Instance
;
UI\MobileControls\Design\Converters\NavigateUrlConverter.cs (1)
31
if (formList != null && !(context.
Instance
is Array))
UI\MobileControls\Design\Converters\StyleConverter.cs (2)
75
if (context == null || context.
Instance
== null)
80
Object [] objValues = GetStyles(context.
Instance
);
UI\MobileControls\Design\Converters\StyleReferenceConverter.cs (2)
162
if (context == null || context.
Instance
== null)
167
Object [] objValues = GetStyles(context.
Instance
);
UI\MobileControls\Design\Converters\ValidatedMobileControlConverter.cs (2)
179
if (context == null || context.
Instance
== null)
184
Object [] objValues = GetValidatableControls(context.
Instance
);
UI\MobileControls\Design\FieldCollectionEditor.cs (2)
56
Debug.Assert(context.
Instance
is ObjectList, "Expected objectlist");
57
ObjectList _objectList = (ObjectList)context.
Instance
;
UI\MobileControls\Design\ItemCollectionEditor.cs (1)
55
Object obj = context.
Instance
;
UI\MobileControls\Design\MobileUITypeEditor.cs (2)
33
Debug.Assert(context.
Instance
is Control, "Expected Control");
34
Control control = (Control)context.
Instance
;
UI\MobileControls\Design\PropertyOverridesTypeEditor.cs (2)
29
Debug.Assert(context.
Instance
is Control, "Expected control");
30
Control ctrl = (Control) context.
Instance
;
UI\MobileControls\Design\TableFieldsEditor.cs (2)
51
ObjectList objectList = context.
Instance
as ObjectList;
65
if (context.
Instance
is ObjectList)
System.Windows.Forms (18)
winforms\Managed\System\WinForms\AxHost.cs (1)
7328
object instance = context.
Instance
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2AboutBoxPropertyDescriptor.cs (1)
159
object component = context.
Instance
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyPageUITypeConverter.cs (1)
54
object instance = context.
Instance
;
winforms\Managed\System\WinForms\FlatButtonAppearance.cs (1)
189
if (context != null && context.
Instance
is Button) {
winforms\Managed\System\WinForms\ImageIndexConverter.cs (2)
94
if (context != null && context.
Instance
!= null) {
95
object instance = context.
Instance
;
winforms\Managed\System\WinForms\ImageKeyConverter.cs (2)
110
if (context != null && context.
Instance
!= null) {
111
object instance = context.
Instance
;
winforms\Managed\System\WinForms\ListViewGroupConverter.cs (6)
37
if (sourceType == typeof(string) && context != null && context.
Instance
is ListViewItem) {
52
if (destinationType == typeof(string) && context != null && context.
Instance
is ListViewItem) {
67
if (context != null && context.
Instance
!= null) {
68
ListViewItem item = context.
Instance
as ListViewItem;
127
if (context != null && context.
Instance
!= null) {
128
ListViewItem item = context.
Instance
as ListViewItem;
winforms\Managed\System\WinForms\MdiWindowListItemConverter.cs (1)
23
MenuStrip menu = context.
Instance
as MenuStrip;
winforms\Managed\System\WinForms\Padding.cs (1)
393
Padding original = (Padding) context.PropertyDescriptor.GetValue(context.
Instance
);
winforms\Managed\System\WinForms\TreeViewImageIndexConverter.cs (2)
90
if (context != null && context.
Instance
!= null) {
91
object instance = context.
Instance
;
System.Windows.Forms.DataVisualization (85)
Common\Converters\AxisConverters.cs (23)
68
if (context != null && context.
Instance
!= null)
77
PropertyInfo propertyInfo = context.
Instance
.GetType().GetProperty("IntervalType");
80
intervalType = (DateTimeIntervalType)propertyInfo.GetValue(context.
Instance
, null);
84
propertyInfo = context.
Instance
.GetType().GetProperty("Interval");
87
interval = (double)propertyInfo.GetValue(context.
Instance
, null);
95
if(context.
Instance
is Axis)
97
axis = (Axis)context.
Instance
;
101
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetAxis");
105
axis = (Axis)methodInfo.Invoke(context.
Instance
, null);
117
if(context.
Instance
.GetType() != typeof(StripLine) || interval == 0)
148
if (context != null && context.
Instance
!= null)
153
PropertyInfo propertyInfo = context.
Instance
.GetType().GetProperty("intervalType");
156
intervalType = (DateTimeIntervalType)propertyInfo.GetValue(context.
Instance
, null);
164
if(context.
Instance
is Axis)
166
axis = (Axis)context.
Instance
;
170
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetAxis");
174
axis = (Axis)methodInfo.Invoke(context.
Instance
, null);
351
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
353
Axis axis = (Axis)context.
Instance
;
382
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
384
Axis axis = (Axis)context.
Instance
;
Common\Converters\CustomAttributesConverters.cs (11)
118
if(stringValue != null && context != null && context.
Instance
!= null)
121
if(context.
Instance
is DataPointCustomProperties)
123
((DataPointCustomProperties)context.
Instance
).CustomProperties = stringValue;
124
CustomProperties newAttributes = new CustomProperties(((DataPointCustomProperties)context.
Instance
));
128
else if (context.
Instance
is CustomProperties)
130
CustomProperties newAttributes = new CustomProperties(((CustomProperties)context.
Instance
).DataPointCustomProperties);
133
else if (context.
Instance
is IDataPointCustomPropertiesProvider)
135
CustomProperties newAttributes = new CustomProperties(((IDataPointCustomPropertiesProvider)context.
Instance
).DataPointCustomProperties);
139
else if (context.
Instance
is Array)
142
foreach (object obj in ((Array)context.
Instance
))
198
if(IsApplicableCustomProperty(attrInfo, context.
Instance
))
Common\Converters\DataManagerConverters.cs (18)
404
if (context != null && context.
Instance
!= null)
407
MethodInfo methodInfo = context.
Instance
.GetType().GetMethod("GetService");
412
dataManager = (DataManager)methodInfo.Invoke(context.
Instance
, parameters);
425
throw (new InvalidOperationException(SR.ExceptionEditorChartTypeRegistryServiceInObjectInaccessible(context.
Instance
.GetType().ToString())));
452
if (context != null && context.
Instance
!= null)
504
if (context != null && context.
Instance
!= null)
506
DataPoint dataPoint = (DataPoint)context.
Instance
;
570
if (context != null && context.
Instance
!= null)
572
DataPoint dataPoint = (DataPoint)context.
Instance
;
624
if (context != null && context.
Instance
!= null)
626
DataPoint dataPoint = (DataPoint)context.
Instance
;
646
if (context != null && context.
Instance
!= null)
652
DataPoint dataPoint = (DataPoint)context.
Instance
;
855
if (context == null || context.
Instance
== null)
860
IChartElement element = context.
Instance
as IChartElement;
866
IList list = context.
Instance
as IList;
877
Chart chart = context.
Instance
as Chart;
883
IServiceProvider provider = context.
Instance
as IServiceProvider;
Common\Converters\LegendConverters.cs (26)
84
if (context != null && context.
Instance
!= null)
86
if (context.
Instance
is Legend)
88
Legend legend = (Legend)context.
Instance
;
94
else if (context.
Instance
is ChartArea)
96
ChartArea area = (ChartArea)context.
Instance
;
103
else if (context.
Instance
is Title)
105
Title title = (Title)context.
Instance
;
112
else if (context.
Instance
is Annotation)
114
Annotation annotation = (Annotation)context.
Instance
;
120
else if (context.
Instance
is IServiceProvider)
122
IServiceProvider provider = context.
Instance
as IServiceProvider;
131
else if (context.
Instance
is Array)
133
if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Legend)
135
Legend legend = (Legend)((Array)context.
Instance
).GetValue(0);
141
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is ChartArea)
143
ChartArea area = (ChartArea)((Array)context.
Instance
).GetValue(0);
149
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Title)
151
Title title = (Title)((Array)context.
Instance
).GetValue(0);
158
else if (((Array)context.
Instance
).Length > 0 && ((Array)context.
Instance
).GetValue(0) is Annotation)
160
Annotation annotation = (Annotation)((Array)context.
Instance
).GetValue(0);
204
if (context != null && context.
Instance
!= null)
207
if(context.
Instance
is Chart)
Common\General\AxisScrollZoom.cs (7)
1602
if (context != null && context.
Instance
!= null)
1606
if(context.
Instance
is AxisScaleView)
1608
axis = ((AxisScaleView)context.
Instance
).axis;
1696
if (context != null && context.
Instance
!= null && context.
Instance
is Axis)
1701
if(context.
Instance
is AxisScaleView)
1703
axis = ((AxisScaleView)context.
Instance
).axis;
System.Workflow.Activities (19)
Common\BasePropertyDescriptor.cs (5)
66
ISite site = (context != null) ? GetSite(context, context.
Instance
) : null;
598
object[] instances = context.
Instance
as object[];
602
valuesProvider = context.
Instance
as IPropertyValueProvider;
704
object[] instances = context.
Instance
as object[];
708
valuesProvider = context.
Instance
as IPropertyValueProvider;
Designers\InvokeWebServiceDesigner.cs (1)
234
typeDescriptorContext.PropertyDescriptor.SetValue(typeDescriptorContext.
Instance
, returnVal as string);
Designers\SetStateDesigner.cs (2)
252
Activity activity = _context.
Instance
as Activity;
257
object[] activities = _context.
Instance
as object[];
LocalService\CorrelationTokenTypeConvertor.cs (1)
67
Activity activity = context.
Instance
as Activity;
Rules\Design\LogicalExpressionEditor.cs (9)
35
RuleConditionReference conditionDeclaration = typeDescriptorContext.
Instance
as RuleConditionReference;
44
baseActivity = rs.GetComponent(typeDescriptorContext.
Instance
) as Activity;
60
CodeExpression experssion = typeDescriptorContext.PropertyDescriptor.GetValue(typeDescriptorContext.
Instance
) as CodeExpression;
108
baseActivity = rs.GetComponent(typeDescriptorContext.
Instance
) as Activity;
110
string conditionName = typeDescriptorContext.PropertyDescriptor.GetValue(typeDescriptorContext.
Instance
) as string;
152
baseActivity = rs.GetComponent(typeDescriptorContext.
Instance
) as Activity;
155
RuleSetReference ruleSetReference = typeDescriptorContext.PropertyDescriptor.GetValue(typeDescriptorContext.
Instance
) as RuleSetReference;
201
RuleSetReference ruleSetReference = typeDescriptorContext.
Instance
as RuleSetReference;
210
baseActivity = rs.GetComponent(typeDescriptorContext.
Instance
) as Activity;
Rules\Design\LogicalExpressionTypeConverter.cs (1)
125
ISite site = PropertyDescriptorUtils.GetSite(context, context.
Instance
);
System.Workflow.ComponentModel (31)
AuthoringOM\Design\Dialogs\ActivityBindForm.cs (6)
186
activity = rs.GetComponent(this.context.
Instance
) as Activity;
189
ActivityBind previousBinding = context.PropertyDescriptor.GetValue(context.
Instance
) as ActivityBind;
275
PropertyValidationContext propertyValidationContext = new PropertyValidationContext(this.context.
Instance
, DependencyProperty.FromName(this.context.PropertyDescriptor.Name, this.context.
Instance
.GetType()));
276
manager.Context.Append(this.context.
Instance
); //
315
activity = rs.GetComponent(this.context.
Instance
) as Activity;
AuthoringOM\Design\PropertyDescriptors.cs (2)
427
Type memberType = PropertyDescriptorUtils.GetBaseType(context.PropertyDescriptor, context.
Instance
, context);
528
Type boundType = PropertyDescriptorUtils.GetBaseType(context.PropertyDescriptor, context.
Instance
, context);
AuthoringOM\Design\TypeConverters.cs (7)
174
ActivityBind activityBind = context.PropertyDescriptor.GetValue(context.
Instance
) as ActivityBind;
251
ActivityBind activityBind = context.PropertyDescriptor.GetValue(context.
Instance
) as ActivityBind;
317
object existingPropertyValue = (context.
Instance
!= null) ? context.PropertyDescriptor.GetValue(context.
Instance
) : null;
336
object existingPropertyValue = (context.
Instance
!= null) ? context.PropertyDescriptor.GetValue(context.
Instance
) : null;
371
realContext = new TypeDescriptorContext(currentContext, activityBindPropertyDescriptor.RealPropertyDescriptor, currentContext.
Instance
);
AuthoringOM\Design\UITypeEditors.cs (8)
62
typeFilterProvider = ((typeDescriptorContext.
Instance
is object[]) ? ((object[])typeDescriptorContext.
Instance
)[0] : typeDescriptorContext.
Instance
) as ITypeFilterProvider;
72
IComponent baseComponent = rs.GetComponent(typeDescriptorContext.
Instance
);
145
properties.Add(CustomProperty.CreateCustomProperty(this.serviceProvider, bindDialog.NewMemberName, context.PropertyDescriptor, context.
Instance
));
182
if (context != null && context.PropertyDescriptor != null && context.
Instance
!= null)
185
value = context.PropertyDescriptor.GetValue(context.
Instance
);
191
context.PropertyDescriptor.SetValue(context.
Instance
, value);
AuthoringOM\Design\XomlDesignerLoader.cs (2)
877
component = referenceService.GetComponent(context.
Instance
);
895
string fullPropertyName = referenceService.GetName(context.
Instance
); //schedule1.send1.message
AuthoringOM\Fault.cs (1)
187
ITypeFilterProvider typeFilterProvider = context.
Instance
as ITypeFilterProvider;
Shared\BasePropertyDescriptor.cs (5)
65
ISite site = (context != null) ? GetSite(context, context.
Instance
) : null;
597
object[] instances = context.
Instance
as object[];
601
valuesProvider = context.
Instance
as IPropertyValueProvider;
703
object[] instances = context.
Instance
as object[];
707
valuesProvider = context.
Instance
as IPropertyValueProvider;
System.WorkflowServices (3)
System\Workflow\Activities\ChannelTokenTypeConverter.cs (1)
81
Activity activity = context.
Instance
as Activity;
System\Workflow\Activities\ContextTokenTypeConverter.cs (1)
81
Activity activity = context.
Instance
as Activity;
System\Workflow\Activities\Design\ServiceOperationUIEditor.cs (1)
108
if (TryPickOperation(provider, (Activity) context.
Instance
, (OperationInfoBase) value, out pickedServiceOperation))
WindowsBase (5)
Base\System\Windows\Input\KeyConverter.cs (2)
69
if (context != null && context.
Instance
!= null)
71
Key key = (Key)context.
Instance
;
Base\System\Windows\Input\ModifierKeysConverter.cs (3)
68
if (context != null && context.
Instance
!= null &&
69
context.
Instance
is ModifierKeys)
71
return (IsDefinedModifierKeys((ModifierKeys)context.
Instance
));