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
- ZoomPercentageConverter.cs
- ObjectQuery.cs
- TrackingDataItemValue.cs
- DataGridViewRowCollection.cs
- securitycriticaldataClass.cs
- SHA384Managed.cs
- SystemDropShadowChrome.cs
- DocumentPageHost.cs
- EntitySqlQueryCacheKey.cs
- DynamicDiscoveryDocument.cs
- OverflowException.cs
- PointValueSerializer.cs
- SequentialWorkflowRootDesigner.cs
- SplayTreeNode.cs
- PathGeometry.cs
- TagElement.cs
- ConstantSlot.cs
- DescriptionAttribute.cs
- TreeNodeStyleCollection.cs
- VariantWrapper.cs
- LoginView.cs
- ArraySubsetEnumerator.cs
- OdbcStatementHandle.cs
- ThemeDirectoryCompiler.cs
- EventToken.cs
- ProcessInfo.cs
- DisplayMemberTemplateSelector.cs
- WorkflowWebService.cs
- CurrentChangingEventArgs.cs
- DetailsViewActionList.cs
- CodeAccessSecurityEngine.cs
- RandomNumberGenerator.cs
- ToolStripContainerActionList.cs
- TextOnlyOutput.cs
- FilteredXmlReader.cs
- MemoryMappedViewStream.cs
- PasswordDeriveBytes.cs
- Encoder.cs
- SafePEFileHandle.cs
- SymDocumentType.cs
- MetricEntry.cs
- CurrentChangingEventArgs.cs
- XsdSchemaFileEditor.cs
- TextPenaltyModule.cs
- httpapplicationstate.cs
- TypeBuilder.cs
- SystemGatewayIPAddressInformation.cs
- _UncName.cs
- ParentQuery.cs
- SharedPerformanceCounter.cs
- DataColumnSelectionConverter.cs
- DesignerEditorPartChrome.cs
- ClientBuildManagerCallback.cs
- BitmapEffectGroup.cs
- IndexerNameAttribute.cs
- StringUtil.cs
- WebPartsPersonalization.cs
- SplitterEvent.cs
- EmptyElement.cs
- WebConfigurationManager.cs
- CategoryNameCollection.cs
- PreProcessor.cs
- _ContextAwareResult.cs
- formatter.cs
- TextEditorTables.cs
- Crypto.cs
- LogWriteRestartAreaState.cs
- BoolLiteral.cs
- DocumentPageTextView.cs
- ListParaClient.cs
- PassportPrincipal.cs
- HtmlInputSubmit.cs
- TransactionFlowProperty.cs
- ReflectionUtil.cs
- PrimarySelectionAdorner.cs
- ImplicitInputBrush.cs
- OutputScope.cs
- BindingObserver.cs
- TriggerAction.cs
- SimpleRecyclingCache.cs
- mediapermission.cs
- GPStream.cs
- StringHelper.cs
- SecurityManager.cs
- GridViewHeaderRowPresenter.cs
- DataTableNameHandler.cs
- SHA1Cng.cs
- DESCryptoServiceProvider.cs
- JumpTask.cs
- DesignerTransactionCloseEvent.cs
- ComponentEditorPage.cs
- VariableExpressionConverter.cs
- InputLangChangeEvent.cs
- XmlSignatureManifest.cs
- ContextBase.cs
- MergeLocalizationDirectives.cs
- GridPattern.cs
- SevenBitStream.cs
- InProcStateClientManager.cs
- WindowsPen.cs