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
- CheckPair.cs
- FontStyle.cs
- XmlDataSourceNodeDescriptor.cs
- versioninfo.cs
- HeaderUtility.cs
- StandardCommands.cs
- ContentType.cs
- AnnotationAdorner.cs
- PolygonHotSpot.cs
- Module.cs
- PackageRelationshipCollection.cs
- HttpCacheVaryByContentEncodings.cs
- VisualStateManager.cs
- HttpServerVarsCollection.cs
- CngProperty.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- CompositeClientFormatter.cs
- HttpRuntime.cs
- OneOfConst.cs
- ConfigurationStrings.cs
- WebRequest.cs
- ListViewInsertEventArgs.cs
- ScrollData.cs
- GlobalAllocSafeHandle.cs
- ModelFunction.cs
- CacheAxisQuery.cs
- GenericAuthenticationEventArgs.cs
- XsltCompileContext.cs
- SByte.cs
- ValueType.cs
- WorkflowItemsPresenter.cs
- SqlDependencyUtils.cs
- __Filters.cs
- Matrix3D.cs
- SoapMessage.cs
- VisualBasicExpressionConverter.cs
- RecordsAffectedEventArgs.cs
- Int16.cs
- IISMapPath.cs
- BooleanProjectedSlot.cs
- SqlWriter.cs
- ParagraphVisual.cs
- ImagingCache.cs
- CountdownEvent.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- CounterCreationDataConverter.cs
- XslCompiledTransform.cs
- DataPagerCommandEventArgs.cs
- ConfigXmlComment.cs
- LocationChangedEventArgs.cs
- ThreadNeutralSemaphore.cs
- SelectionRange.cs
- ChtmlTextBoxAdapter.cs
- ClientConfigurationHost.cs
- ExpressionSelection.cs
- ToolBarPanel.cs
- IDReferencePropertyAttribute.cs
- SqlDataSourceCache.cs
- DownloadProgressEventArgs.cs
- ExtenderControl.cs
- SchemaCollectionCompiler.cs
- Column.cs
- DataBoundLiteralControl.cs
- ScriptMethodAttribute.cs
- AutomationProperties.cs
- QueryCacheManager.cs
- MILUtilities.cs
- GradientStopCollection.cs
- BatchStream.cs
- ReturnType.cs
- HiddenFieldPageStatePersister.cs
- UIPermission.cs
- ListViewTableRow.cs
- Identifier.cs
- TreeNodeStyleCollectionEditor.cs
- RowType.cs
- HttpListener.cs
- HebrewCalendar.cs
- TransformedBitmap.cs
- ErrorEventArgs.cs
- HtmlInputHidden.cs
- SystemInformation.cs
- SqlClientWrapperSmiStream.cs
- GridView.cs
- AppDomainShutdownMonitor.cs
- WinFormsUtils.cs
- ThreadInterruptedException.cs
- QilGenerator.cs
- DbQueryCommandTree.cs
- MemberDescriptor.cs
- EditorPartChrome.cs
- ClientTargetSection.cs
- WebConfigurationManager.cs
- Variant.cs
- WebPartEventArgs.cs
- ParagraphResult.cs
- SBCSCodePageEncoding.cs
- ModelService.cs
- ConfigXmlWhitespace.cs
- TreeNodeStyle.cs