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
- KeyInstance.cs
- DataKeyCollection.cs
- DataBinding.cs
- LookupTables.cs
- RequiredAttributeAttribute.cs
- ToolboxItem.cs
- ExpressionCopier.cs
- ByteStorage.cs
- SelectionHighlightInfo.cs
- entitydatasourceentitysetnameconverter.cs
- WebCategoryAttribute.cs
- InheritanceContextChangedEventManager.cs
- ContextMenuStripGroup.cs
- ByteStack.cs
- NonSerializedAttribute.cs
- IntSecurity.cs
- SamlAuthenticationStatement.cs
- StyleCollection.cs
- ListChangedEventArgs.cs
- Calendar.cs
- PermissionToken.cs
- ExpressionBuilder.cs
- SystemWebSectionGroup.cs
- WSFederationHttpBindingElement.cs
- WebPartDeleteVerb.cs
- CellPartitioner.cs
- WebConfigurationManager.cs
- ListViewSelectEventArgs.cs
- RangeEnumerable.cs
- DbMetaDataColumnNames.cs
- Ipv6Element.cs
- MessageEventSubscriptionService.cs
- GacUtil.cs
- GroupBox.cs
- PolicyLevel.cs
- TextParagraphView.cs
- RepeaterCommandEventArgs.cs
- LockedHandleGlyph.cs
- TextTreeText.cs
- CommandExpr.cs
- ContentElementCollection.cs
- DesignColumnCollection.cs
- EventHandlerList.cs
- DaylightTime.cs
- CustomErrorsSectionWrapper.cs
- ContourSegment.cs
- HebrewCalendar.cs
- Table.cs
- XmlSchemaSimpleTypeRestriction.cs
- StdRegProviderWrapper.cs
- PropertyFilter.cs
- EntitySetBase.cs
- ExpressionBindings.cs
- ContractHandle.cs
- CollectionType.cs
- ProtocolReflector.cs
- controlskin.cs
- AccessibleObject.cs
- TableRow.cs
- ProcessStartInfo.cs
- SchemaMapping.cs
- ellipse.cs
- SimpleRecyclingCache.cs
- smtpconnection.cs
- XamlPoint3DCollectionSerializer.cs
- webproxy.cs
- TextProperties.cs
- MetabaseServerConfig.cs
- FixedPageProcessor.cs
- ContextItem.cs
- SettingsBase.cs
- SqlBulkCopyColumnMapping.cs
- IndentTextWriter.cs
- FileUtil.cs
- ResourceDictionary.cs
- XmlQueryRuntime.cs
- ModelToObjectValueConverter.cs
- XmlReturnReader.cs
- LogicalTreeHelper.cs
- SpellerStatusTable.cs
- XmlSchemaFacet.cs
- StringBuilder.cs
- ChtmlTextBoxAdapter.cs
- categoryentry.cs
- ReadOnlyDataSourceView.cs
- LazyTextWriterCreator.cs
- PreviewKeyDownEventArgs.cs
- DefaultMemberAttribute.cs
- TextChange.cs
- BaseCodePageEncoding.cs
- odbcmetadatacollectionnames.cs
- ZoneButton.cs
- XmlSerializableServices.cs
- assemblycache.cs
- Button.cs
- FullTextBreakpoint.cs
- PointCollection.cs
- DirectionalLight.cs
- StaticTextPointer.cs
- DecimalKeyFrameCollection.cs