Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Core.Presentation / System / Activities / Presentation / DynamicArgumentDialog.cs / 1407647 / DynamicArgumentDialog.cs
//------------------------------------------------------------ // Copyright (c) Microsoft Corporation. All rights reserved. //----------------------------------------------------------- namespace System.Activities.Presentation { using System.Activities.Presentation.Model; using System.Windows; using System.Collections; using System.Collections.ObjectModel; using System.Collections.Generic; using System.Runtime; public sealed class DynamicArgumentDialog : WorkflowElementDialog { bool isDictionary; Type underlyingArgumentType; ModelItem data; DynamicArgumentDialog(ModelItem activity, ModelItem data, EditingContext context, DependencyObject owner, DynamicArgumentDesignerOptions options) { this.MinHeight = 200; this.MinWidth = 700; this.WindowSizeToContent = SizeToContent.Manual; this.ModelItem = activity; this.Context = context; this.HelpKeyword = HelpKeywords.DynamicArgumentDialog; this.Owner = owner; this.Title = options.Title; this.data = data; this.Content = new DynamicArgumentDesigner() { DynamicArguments = DynamicArgumentDesigner.ModelItemToWrapperCollection(data, out isDictionary, out underlyingArgumentType), IsDictionary = isDictionary, UnderlyingArgumentType = underlyingArgumentType, Context = context, OwnerActivity = activity, HideDirection = options.HideDirection, ArgumentPrefix = options.ArgumentPrefix, HintText = options.HintText, ParentDialog = this, }; } public static bool ShowDialog(ModelItem activity, ModelItem data, EditingContext context, DependencyObject owner, DynamicArgumentDesignerOptions options) { return new DynamicArgumentDialog(activity, data, context, owner, options).ShowOkCancel(); } protected override void OnWorkflowElementDialogClosed(bool? dialogResult) { if (dialogResult.Value) { DynamicArgumentDesigner.WrapperCollectionToModelItem((this.Content as DynamicArgumentDesigner).DynamicArguments, data, isDictionary, underlyingArgumentType); } } } } // 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
- HiddenFieldPageStatePersister.cs
- SqlConnectionString.cs
- SHA1.cs
- CustomTokenProvider.cs
- ColorAnimation.cs
- WeakReferenceKey.cs
- LocatorBase.cs
- FieldBuilder.cs
- SystemNetworkInterface.cs
- InputLanguageCollection.cs
- Tablet.cs
- SqlConnection.cs
- ObjectRef.cs
- ColumnPropertiesGroup.cs
- CodeExpressionStatement.cs
- StylusPointPropertyInfo.cs
- C14NUtil.cs
- EncryptedPackage.cs
- DesignerSelectionListAdapter.cs
- FixedFindEngine.cs
- SqlClientFactory.cs
- FileDialog_Vista.cs
- DetailsViewInsertEventArgs.cs
- UpnEndpointIdentity.cs
- CatalogZone.cs
- DesignTimeParseData.cs
- BrowsableAttribute.cs
- EventLogPermissionEntryCollection.cs
- ClickablePoint.cs
- RSAPKCS1SignatureDeformatter.cs
- CacheAxisQuery.cs
- DbgCompiler.cs
- LoadItemsEventArgs.cs
- SqlExpressionNullability.cs
- XmlText.cs
- VisualStyleInformation.cs
- SchemaType.cs
- DBSqlParser.cs
- MostlySingletonList.cs
- HandledMouseEvent.cs
- InternalConfigHost.cs
- VirtualPathProvider.cs
- Column.cs
- XamlTypeMapper.cs
- NumberSubstitution.cs
- OlePropertyStructs.cs
- Vector3DValueSerializer.cs
- XPathNavigatorReader.cs
- LinqExpressionNormalizer.cs
- Aes.cs
- URIFormatException.cs
- Wow64ConfigurationLoader.cs
- DrawingContextWalker.cs
- UTF7Encoding.cs
- FlowPanelDesigner.cs
- ListViewSortEventArgs.cs
- NativeMethods.cs
- TranslateTransform.cs
- AutomationFocusChangedEventArgs.cs
- Rect3D.cs
- WebPartTransformerAttribute.cs
- DES.cs
- WindowsSysHeader.cs
- WCFBuildProvider.cs
- VectorValueSerializer.cs
- BackStopAuthenticationModule.cs
- ConfigXmlSignificantWhitespace.cs
- ServerIdentity.cs
- MultiDataTrigger.cs
- QueryExpr.cs
- XmlElementList.cs
- InteropBitmapSource.cs
- StyleCollection.cs
- SoapAttributes.cs
- StringCollectionMarkupSerializer.cs
- ToggleProviderWrapper.cs
- DelegateSerializationHolder.cs
- MetadataCache.cs
- XmlWriterSettings.cs
- Verify.cs
- ReferentialConstraint.cs
- ProfilePropertyNameValidator.cs
- TabItemWrapperAutomationPeer.cs
- Style.cs
- TextElementEnumerator.cs
- ResourceContainerWrapper.cs
- SystemWebCachingSectionGroup.cs
- XmlNode.cs
- TreeView.cs
- Transform.cs
- FrugalList.cs
- AccessibleObject.cs
- TypedServiceOperationListItem.cs
- ExpanderAutomationPeer.cs
- wgx_exports.cs
- QilScopedVisitor.cs
- Vector3DConverter.cs
- CompModSwitches.cs
- shaperfactoryquerycacheentry.cs
- Token.cs