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
- CurrencyWrapper.cs
- DefaultPropertiesToSend.cs
- DrawingGroup.cs
- Flattener.cs
- VisualStateManager.cs
- ValidationRuleCollection.cs
- SerializationSectionGroup.cs
- LayoutTable.cs
- AsyncResult.cs
- RadioButtonFlatAdapter.cs
- UmAlQuraCalendar.cs
- GridViewHeaderRowPresenter.cs
- followingsibling.cs
- DelegateArgumentValue.cs
- ProjectionAnalyzer.cs
- XmlLoader.cs
- TypefaceMetricsCache.cs
- UnsafeNativeMethods.cs
- NgenServicingAttributes.cs
- NamespaceCollection.cs
- ScriptResourceInfo.cs
- XmlException.cs
- WebControlAdapter.cs
- DBSqlParserTableCollection.cs
- FunctionGenerator.cs
- NativeMethods.cs
- TextEditor.cs
- GroupBoxAutomationPeer.cs
- XmlArrayItemAttribute.cs
- ParameterCollection.cs
- ArrayWithOffset.cs
- FixedPage.cs
- Ipv6Element.cs
- RectValueSerializer.cs
- BooleanAnimationBase.cs
- InternalEnumValidatorAttribute.cs
- SelectionProviderWrapper.cs
- BoolExpression.cs
- DataGridViewHeaderCell.cs
- StringValidator.cs
- ContextMenuStripGroup.cs
- cookieexception.cs
- BitmapEffect.cs
- ResourceType.cs
- ValuePattern.cs
- FormViewInsertEventArgs.cs
- Constraint.cs
- FileEnumerator.cs
- Site.cs
- ServiceBuildProvider.cs
- SessionStateItemCollection.cs
- BindStream.cs
- CleanUpVirtualizedItemEventArgs.cs
- relpropertyhelper.cs
- XmlText.cs
- SingleAnimation.cs
- FixUp.cs
- WizardPanelChangingEventArgs.cs
- datacache.cs
- EllipticalNodeOperations.cs
- SourceInterpreter.cs
- TableParagraph.cs
- TransactionFlowProperty.cs
- OleDbMetaDataFactory.cs
- UiaCoreApi.cs
- FormattedTextSymbols.cs
- TextStore.cs
- _BasicClient.cs
- SerializerWriterEventHandlers.cs
- CommentEmitter.cs
- RelationshipEndCollection.cs
- DataTemplateKey.cs
- PrinterSettings.cs
- Point3DIndependentAnimationStorage.cs
- PeerDefaultCustomResolverClient.cs
- ClientEventManager.cs
- PointAnimationBase.cs
- WpfSharedXamlSchemaContext.cs
- ByteAnimationUsingKeyFrames.cs
- SelectionProcessor.cs
- MetafileHeaderWmf.cs
- XamlInterfaces.cs
- IRCollection.cs
- SystemResourceKey.cs
- CheckBox.cs
- SynchronousReceiveBehavior.cs
- TypeElement.cs
- ProtectedConfiguration.cs
- TabItemWrapperAutomationPeer.cs
- DrawListViewColumnHeaderEventArgs.cs
- SemaphoreSecurity.cs
- TablePatternIdentifiers.cs
- BinHexEncoding.cs
- DbConnectionFactory.cs
- AndCondition.cs
- SoapTransportImporter.cs
- PrintController.cs
- TraceFilter.cs
- ECDiffieHellmanCng.cs
- ObjectParameterCollection.cs