Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Core.Presentation / System / Activities / Core / Presentation / InvokeMethodDesigner.xaml.cs / 1305376 / InvokeMethodDesigner.xaml.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Core.Presentation { using System; using System.Activities.Expressions; using System.Activities.Statements; using System.Activities.Presentation; using System.Activities.Presentation.Metadata; using System.Activities.Presentation.PropertyEditing; using System.ComponentModel; using System.Activities.Presentation.View; ////// Interaction logic for InvokeMethodDesigner.xaml /// partial class InvokeMethodDesigner { public InvokeMethodDesigner() { InitializeComponent(); } public static void RegisterMetadata(AttributeTableBuilder builder) { Type type = typeof(InvokeMethod); builder.AddCustomAttributes(type, new DesignerAttribute(typeof(InvokeMethodDesigner))); builder.AddCustomAttributes( type, "GenericTypeArguments", PropertyValueEditor.CreateEditorAttribute(typeof(TypeCollectionPropertyEditor)), new EditorOptionsAttribute { Name = TypeCollectionPropertyEditor.AllowDuplicate, Value = true }); builder.AddCustomAttributes( type, "Parameters", PropertyValueEditor.CreateEditorAttribute(typeof(ArgumentCollectionPropertyEditor))); builder.AddCustomAttributes( type, "TargetType", new EditorOptionsAttribute { Name = TypePropertyEditor.AllowNull, Value = true }, new EditorOptionsAttribute { Name = TypePropertyEditor.BrowseTypeDirectly, Value = false }); builder.AddCustomAttributes(type, new ActivityDesignerOptionsAttribute { AllowDrillIn = false }); ArgumentFixer.RegisterArgumentFixer( new ActivityArgumentFixer( (invoke, isLocation) => isLocation?(Argument)invoke.Result : (Argument)invoke.TargetObject, (invoke, argument) => { if (argument is InArgument) { invoke.TargetObject = (InArgument)argument; } else { invoke.Result = (OutArgument)argument; } } ) ); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- TimeSpanMinutesConverter.cs
- XmlSchemaRedefine.cs
- EnterpriseServicesHelper.cs
- StringSource.cs
- CompositeTypefaceMetrics.cs
- PolicyException.cs
- NavigationService.cs
- SqlCommand.cs
- Event.cs
- ThreadStaticAttribute.cs
- PropertyPath.cs
- GenericTypeParameterConverter.cs
- Double.cs
- ListViewContainer.cs
- DesignerRegionCollection.cs
- AlphaSortedEnumConverter.cs
- HttpAsyncResult.cs
- AudienceUriMode.cs
- IconHelper.cs
- DeflateEmulationStream.cs
- LogRecordSequence.cs
- WebServiceEnumData.cs
- RSAPKCS1KeyExchangeFormatter.cs
- DataGridViewEditingControlShowingEventArgs.cs
- LineGeometry.cs
- Int32Rect.cs
- CatalogZoneBase.cs
- DataSvcMapFileSerializer.cs
- AssemblyNameProxy.cs
- ServiceOperationWrapper.cs
- XmlSerializerVersionAttribute.cs
- GlobalEventManager.cs
- __Filters.cs
- CustomTypeDescriptor.cs
- DataFormat.cs
- PriorityQueue.cs
- ErrorStyle.cs
- DesignerLoader.cs
- _SslStream.cs
- Unit.cs
- Form.cs
- TrustSection.cs
- RowToFieldTransformer.cs
- RowUpdatingEventArgs.cs
- XmlName.cs
- Vector.cs
- MouseGestureConverter.cs
- TextAction.cs
- TextServicesLoader.cs
- UpdateTracker.cs
- ArithmeticException.cs
- JsonMessageEncoderFactory.cs
- PageAction.cs
- XmlIncludeAttribute.cs
- RotateTransform3D.cs
- NotSupportedException.cs
- SystemInfo.cs
- SafeWaitHandle.cs
- InkCanvasAutomationPeer.cs
- ExtenderControl.cs
- UnionCodeGroup.cs
- ImportDesigner.xaml.cs
- ConfigurationManagerInternal.cs
- XmlDomTextWriter.cs
- Guid.cs
- MDIControlStrip.cs
- MergeLocalizationDirectives.cs
- XmlSchemaObjectCollection.cs
- AssemblyBuilderData.cs
- XPathSelfQuery.cs
- ActivationArguments.cs
- MimeMapping.cs
- TemplatedMailWebEventProvider.cs
- TextDecorationCollectionConverter.cs
- FormViewModeEventArgs.cs
- XPathMessageFilterElement.cs
- SqlDelegatedTransaction.cs
- StylusCaptureWithinProperty.cs
- SecurityCriticalDataForSet.cs
- HwndHost.cs
- StringKeyFrameCollection.cs
- CounterSample.cs
- XmlILIndex.cs
- BezierSegment.cs
- CompositeActivityValidator.cs
- XmlArrayAttribute.cs
- ResponseBodyWriter.cs
- _LoggingObject.cs
- RootProjectionNode.cs
- _ChunkParse.cs
- HtmlEncodedRawTextWriter.cs
- _SslSessionsCache.cs
- Debug.cs
- UndoEngine.cs
- ProcessManager.cs
- SQLResource.cs
- OleDbErrorCollection.cs
- HostTimeoutsElement.cs
- TimeSpanOrInfiniteConverter.cs
- AnyAllSearchOperator.cs