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
- GuidTagList.cs
- FormsAuthenticationConfiguration.cs
- PriorityChain.cs
- MediaTimeline.cs
- ToolBarButton.cs
- KeyValueConfigurationElement.cs
- TypefaceCollection.cs
- System.Data_BID.cs
- NameValueCollection.cs
- DataGridViewColumnDividerDoubleClickEventArgs.cs
- SizeF.cs
- DateTimeFormat.cs
- ConfigXmlCDataSection.cs
- PropertyMap.cs
- XPathScanner.cs
- SymmetricAlgorithm.cs
- SendActivityEventArgs.cs
- TranslateTransform.cs
- MailAddressCollection.cs
- PathData.cs
- WindowsPen.cs
- updatecommandorderer.cs
- Iis7Helper.cs
- InstanceBehavior.cs
- TreeNodeStyle.cs
- GeneralTransform.cs
- BitmapEffectInput.cs
- DeferredReference.cs
- addressfiltermode.cs
- Color.cs
- ManagedWndProcTracker.cs
- IntegerValidator.cs
- DrawingAttributesDefaultValueFactory.cs
- Funcletizer.cs
- ObjectItemAssemblyLoader.cs
- WebMessageEncoderFactory.cs
- ConfigurationSectionGroup.cs
- ConsumerConnectionPointCollection.cs
- WebDescriptionAttribute.cs
- CryptoStream.cs
- ObjectStateEntryDbDataRecord.cs
- ColumnWidthChangingEvent.cs
- MsmqOutputChannel.cs
- HttpApplicationFactory.cs
- HttpConfigurationContext.cs
- RemotingHelper.cs
- OrthographicCamera.cs
- _NativeSSPI.cs
- HttpProxyTransportBindingElement.cs
- TableCell.cs
- RMEnrollmentPage3.cs
- CorrelationManager.cs
- AbandonedMutexException.cs
- ChannelOptions.cs
- Filter.cs
- ProxyElement.cs
- NavigateEvent.cs
- XmlSchemaAttributeGroupRef.cs
- ServicePerformanceCounters.cs
- SignedXml.cs
- ListBindingConverter.cs
- TextElementCollectionHelper.cs
- SignedXml.cs
- LocatorPartList.cs
- TextServicesPropertyRanges.cs
- Binding.cs
- StringBlob.cs
- ProcessStartInfo.cs
- StylusSystemGestureEventArgs.cs
- Function.cs
- ObfuscationAttribute.cs
- HtmlInputSubmit.cs
- AxisAngleRotation3D.cs
- PrimarySelectionGlyph.cs
- PopupRootAutomationPeer.cs
- AnimatedTypeHelpers.cs
- SqlProfileProvider.cs
- TrustSection.cs
- TextSerializer.cs
- DictionaryBase.cs
- DiscoveryClientReferences.cs
- ProvidersHelper.cs
- PeerNameRegistration.cs
- SqlDependency.cs
- HyperLinkStyle.cs
- DiagnosticsConfigurationHandler.cs
- ToolStripItem.cs
- Itemizer.cs
- DocumentViewerAutomationPeer.cs
- MemberAccessException.cs
- TileModeValidation.cs
- DataRelation.cs
- HashAlgorithm.cs
- QueueProcessor.cs
- ControlUtil.cs
- NegatedCellConstant.cs
- TextEditorContextMenu.cs
- ExpressionVisitorHelpers.cs
- JsonFormatGeneratorStatics.cs
- HatchBrush.cs