Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Core.Presentation / System / Activities / Core / Presentation / PickDesigner.xaml.cs / 1305376 / PickDesigner.xaml.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Core.Presentation { using System.Activities.Presentation; using System.Activities.Presentation.Metadata; using System.Activities.Statements; using System.ComponentModel; using System.Runtime; using System.Windows; using System.Windows.Controls; using System.Windows.Data; using System.Windows.Input; partial class PickDesigner { public static readonly RoutedCommand CreateBranchCommand = new RoutedCommand("CreateBranchCommand", typeof(PickDesigner)); WorkflowItemsPresenter branchesPresenter; public PickDesigner() { this.InitializeComponent(); } public static void RegisterMetadata(AttributeTableBuilder builder) { Type type = typeof(System.Activities.Statements.Pick); builder.AddCustomAttributes(type, new DesignerAttribute(typeof(PickDesigner))); builder.AddCustomAttributes(type, type.GetProperty("Branches"), BrowsableAttribute.No); } void OnBranchesPresenterLoaded(object sender, RoutedEventArgs e) { this.branchesPresenter = (WorkflowItemsPresenter)sender; } void OnBranchesPresenterUnloaded(object sender, RoutedEventArgs e) { this.branchesPresenter = null; } void OnCreateBranchCommandExecute(object sender, ExecutedRoutedEventArgs e) { if (!e.Handled) { // Simulate a PickBranch being drop onto the Branches WIsP. object instance = DragDropHelper.GetDroppedObjectInstance(this.branchesPresenter, this.Context, typeof(PickBranch)); if (instance != null) { this.ModelItem.Properties["Branches"].Collection.Add(instance); } e.Handled = true; } } } } // 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
- CultureTableRecord.cs
- BadImageFormatException.cs
- SiteMapProvider.cs
- TypeLibConverter.cs
- DependencyObjectPropertyDescriptor.cs
- OSEnvironmentHelper.cs
- EventLog.cs
- DataSetUtil.cs
- ConsoleKeyInfo.cs
- CodeTypeReferenceExpression.cs
- ListControl.cs
- GlyphRun.cs
- DataSvcMapFile.cs
- RoutedPropertyChangedEventArgs.cs
- ProcessHostConfigUtils.cs
- XsdDateTime.cs
- securitycriticaldataClass.cs
- MultiView.cs
- ScriptingScriptResourceHandlerSection.cs
- InternalResources.cs
- ValidatorCollection.cs
- Stackframe.cs
- BitVector32.cs
- ListDictionary.cs
- Parameter.cs
- NotFiniteNumberException.cs
- BaseCodePageEncoding.cs
- RSAPKCS1KeyExchangeDeformatter.cs
- XamlVector3DCollectionSerializer.cs
- SoapAttributeAttribute.cs
- PrintingPermission.cs
- IChannel.cs
- CacheSection.cs
- LineGeometry.cs
- ServiceDescription.cs
- XNodeValidator.cs
- ConstrainedDataObject.cs
- ConfigXmlSignificantWhitespace.cs
- PingReply.cs
- UdpTransportSettings.cs
- PropertyOverridesDialog.cs
- _NtlmClient.cs
- ConnectionStringEditor.cs
- ProcessHostFactoryHelper.cs
- WebPartPersonalization.cs
- RelatedEnd.cs
- ISFTagAndGuidCache.cs
- FieldToken.cs
- SystemIPInterfaceProperties.cs
- ProcessStartInfo.cs
- DataColumnMappingCollection.cs
- UnsafeNativeMethodsTablet.cs
- IpcChannelHelper.cs
- DetailsViewDeleteEventArgs.cs
- DataViewSettingCollection.cs
- CSharpCodeProvider.cs
- DoubleCollection.cs
- DataGridViewCellParsingEventArgs.cs
- DataRelationCollection.cs
- ConfigurationSection.cs
- CultureSpecificStringDictionary.cs
- SocketElement.cs
- SqlBuffer.cs
- ApplicationInfo.cs
- SchemaElementLookUpTable.cs
- FieldAccessException.cs
- SpellerStatusTable.cs
- DragEventArgs.cs
- IQueryable.cs
- ThreadSafeList.cs
- DateTimeOffsetStorage.cs
- Base64Stream.cs
- DataRelation.cs
- PageContent.cs
- BodyWriter.cs
- BaseUriHelper.cs
- ColorConverter.cs
- EncoderExceptionFallback.cs
- DisplayNameAttribute.cs
- TypeConstant.cs
- TextElementEnumerator.cs
- ContainerActivationHelper.cs
- CharStorage.cs
- OleDbStruct.cs
- ResourcePermissionBase.cs
- SqlDataSourceCustomCommandPanel.cs
- DataBoundControlHelper.cs
- FunctionNode.cs
- If.cs
- DeclarativeExpressionConditionDeclaration.cs
- XmlSerializationReader.cs
- InstanceView.cs
- ObjectViewListener.cs
- WebPartConnectionsDisconnectVerb.cs
- SignatureResourcePool.cs
- ApplicationException.cs
- ListControl.cs
- ConfigurationLocation.cs
- WebPart.cs
- CngKeyCreationParameters.cs