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
- GroupQuery.cs
- XmlElementList.cs
- SpecularMaterial.cs
- HttpStreamXmlDictionaryReader.cs
- FamilyMap.cs
- VariableAction.cs
- WorkflowInvoker.cs
- FileVersion.cs
- Track.cs
- SemaphoreFullException.cs
- BitmapEffectInput.cs
- ConfigurationSectionGroup.cs
- ValueTypeFixupInfo.cs
- ViewSimplifier.cs
- ComponentCommands.cs
- XmlNotation.cs
- PersonalizationProviderCollection.cs
- NavigatorOutput.cs
- VirtualDirectoryMappingCollection.cs
- LinearKeyFrames.cs
- BitStream.cs
- DataGridViewColumn.cs
- DependencyPropertyKey.cs
- ToolStripPanelCell.cs
- InlineCategoriesDocument.cs
- Content.cs
- JsonObjectDataContract.cs
- EventProvider.cs
- ProfileModule.cs
- DataGridSortCommandEventArgs.cs
- Fonts.cs
- TimeZone.cs
- RightNameExpirationInfoPair.cs
- RubberbandSelector.cs
- HtmlUtf8RawTextWriter.cs
- ErrorStyle.cs
- TreeSet.cs
- SendActivityDesigner.cs
- FamilyTypefaceCollection.cs
- HttpRawResponse.cs
- HostingEnvironmentSection.cs
- SecurityException.cs
- UInt16Storage.cs
- ObjectListShowCommandsEventArgs.cs
- NullableBoolConverter.cs
- MemberDomainMap.cs
- TcpConnectionPoolSettingsElement.cs
- indexingfiltermarshaler.cs
- DynamicQueryableWrapper.cs
- SettingsSavedEventArgs.cs
- TextFormatter.cs
- PackWebRequest.cs
- HtmlTableRowCollection.cs
- Matrix3D.cs
- AuthenticationService.cs
- ObjectContextServiceProvider.cs
- ColumnReorderedEventArgs.cs
- figurelengthconverter.cs
- ArglessEventHandlerProxy.cs
- wgx_render.cs
- SortFieldComparer.cs
- GridViewCommandEventArgs.cs
- JournalEntry.cs
- TextRangeEdit.cs
- CultureInfoConverter.cs
- XomlCompilerHelpers.cs
- XmlIlGenerator.cs
- ScriptResourceInfo.cs
- BinarySerializer.cs
- Freezable.cs
- SchemaCollectionPreprocessor.cs
- ObjectNotFoundException.cs
- SortQuery.cs
- SingleConverter.cs
- FtpRequestCacheValidator.cs
- FormsAuthentication.cs
- DataGridViewCheckBoxCell.cs
- Partitioner.cs
- SchemaElementLookUpTableEnumerator.cs
- ToolBarButton.cs
- SafeNativeMethods.cs
- PriorityQueue.cs
- SQLBoolean.cs
- UInt32.cs
- EpmCustomContentDeSerializer.cs
- PropertyChangingEventArgs.cs
- ItemMap.cs
- DependencyProperty.cs
- CachedBitmap.cs
- ListBoxItem.cs
- EventWaitHandle.cs
- OperationFormatUse.cs
- BookmarkScope.cs
- GridViewRowPresenter.cs
- DecimalConverter.cs
- FastPropertyAccessor.cs
- ObjectDataSourceView.cs
- TemplateField.cs
- TypePropertyEditor.cs
- Timer.cs