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
- DataServiceQueryOfT.cs
- CollectionChangeEventArgs.cs
- KerberosSecurityTokenAuthenticator.cs
- Storyboard.cs
- ScriptingRoleServiceSection.cs
- MemberInfoSerializationHolder.cs
- InvalidOperationException.cs
- ListViewItemEventArgs.cs
- MouseActionValueSerializer.cs
- ProgressBar.cs
- BackgroundFormatInfo.cs
- TreeNodeMouseHoverEvent.cs
- FixedPageProcessor.cs
- BindingGroup.cs
- RowToFieldTransformer.cs
- IdnMapping.cs
- ItemCollection.cs
- Util.cs
- SHA512Managed.cs
- ParameterModifier.cs
- X509RecipientCertificateServiceElement.cs
- future.cs
- AdCreatedEventArgs.cs
- MachineSettingsSection.cs
- CodeSubDirectoriesCollection.cs
- StrokeCollection.cs
- GlyphTypeface.cs
- DataGridColumnCollection.cs
- CacheForPrimitiveTypes.cs
- WizardStepBase.cs
- TextMarkerSource.cs
- DataViewListener.cs
- BaseTemplateCodeDomTreeGenerator.cs
- OdbcReferenceCollection.cs
- CacheOutputQuery.cs
- MemberNameValidator.cs
- MimeMapping.cs
- DocumentApplicationJournalEntryEventArgs.cs
- Encoder.cs
- HeaderedItemsControl.cs
- BindingExpression.cs
- PropertyConverter.cs
- OutOfProcStateClientManager.cs
- TextElementEditingBehaviorAttribute.cs
- WriteableBitmap.cs
- EnumerationRangeValidationUtil.cs
- Single.cs
- MbpInfo.cs
- InfiniteIntConverter.cs
- WmpBitmapDecoder.cs
- BufferedGraphicsManager.cs
- ExpressionDumper.cs
- ViewGenResults.cs
- TreeNode.cs
- SemanticAnalyzer.cs
- TriState.cs
- URLEditor.cs
- AssemblyInfo.cs
- BypassElementCollection.cs
- FontStyleConverter.cs
- FontInfo.cs
- TemplatedControlDesigner.cs
- JsonWriter.cs
- HtmlDocument.cs
- BaseResourcesBuildProvider.cs
- SystemFonts.cs
- PassportAuthenticationModule.cs
- JsonReaderDelegator.cs
- Schema.cs
- MultiView.cs
- DataControlLinkButton.cs
- HandlerBase.cs
- X509Certificate.cs
- FormatException.cs
- AutomationPatternInfo.cs
- DataObjectAttribute.cs
- SourceFilter.cs
- SecurityException.cs
- TypeLoadException.cs
- JsonSerializer.cs
- OperandQuery.cs
- HtmlEmptyTagControlBuilder.cs
- PropertyNames.cs
- SqlFunctions.cs
- InvalidDocumentContentsException.cs
- Util.cs
- MethodExpression.cs
- XmlCharacterData.cs
- ActivationArguments.cs
- log.cs
- DisposableCollectionWrapper.cs
- InvokeMemberBinder.cs
- ArrayWithOffset.cs
- DataGrid.cs
- TokenBasedSetEnumerator.cs
- OleDbException.cs
- XmlSerializer.cs
- ObjectHandle.cs
- IsolatedStorageFilePermission.cs
- TimerElapsedEvenArgs.cs