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
- ReadOnlyObservableCollection.cs
- SmtpClient.cs
- AttributeData.cs
- DisplayNameAttribute.cs
- LayoutSettings.cs
- OleDbWrapper.cs
- CodeSnippetTypeMember.cs
- AspNetCompatibilityRequirementsAttribute.cs
- BaseCollection.cs
- MenuItemCollection.cs
- RangeBase.cs
- CollectionType.cs
- PrimaryKeyTypeConverter.cs
- ProcessHostMapPath.cs
- DataGridParentRows.cs
- AdapterUtil.cs
- SafeFileMapViewHandle.cs
- CachedBitmap.cs
- ViewSimplifier.cs
- DatagridviewDisplayedBandsData.cs
- FixedSOMPage.cs
- MainMenu.cs
- StickyNoteContentControl.cs
- Enum.cs
- EntityEntry.cs
- ParsedAttributeCollection.cs
- SystemColors.cs
- ScriptReferenceEventArgs.cs
- OrderingQueryOperator.cs
- ImageIndexConverter.cs
- AppDomainUnloadedException.cs
- TypeViewSchema.cs
- WebReferenceCollection.cs
- LogConverter.cs
- ReadOnlyDictionary.cs
- Frame.cs
- SessionStateUtil.cs
- ToolStripProgressBar.cs
- ReadWriteSpinLock.cs
- FontStretch.cs
- HostProtectionException.cs
- BeginStoryboard.cs
- TextBoxView.cs
- PaperSize.cs
- Message.cs
- ColumnMapProcessor.cs
- ScriptControl.cs
- SchemaElementDecl.cs
- DynamicDiscoSearcher.cs
- ImageField.cs
- DataGridViewComboBoxCell.cs
- GenericEnumerator.cs
- ServiceDeploymentInfo.cs
- _TransmitFileOverlappedAsyncResult.cs
- Logging.cs
- DocumentReference.cs
- QueryRewriter.cs
- KeyInterop.cs
- HtmlElement.cs
- Models.cs
- TransactionFlowOption.cs
- SmtpSection.cs
- login.cs
- Parameter.cs
- FileReservationCollection.cs
- DataRelation.cs
- ValueUtilsSmi.cs
- ToolStripDropTargetManager.cs
- BinaryUtilClasses.cs
- UrlPropertyAttribute.cs
- WorkflowViewStateService.cs
- TextFormatterImp.cs
- DataBoundControlHelper.cs
- PasswordTextNavigator.cs
- HwndMouseInputProvider.cs
- FixUpCollection.cs
- DataTransferEventArgs.cs
- CheckableControlBaseAdapter.cs
- JoinCqlBlock.cs
- IntSecurity.cs
- XPathArrayIterator.cs
- CollectionChangeEventArgs.cs
- ConsoleCancelEventArgs.cs
- SqlGatherProducedAliases.cs
- LogicalTreeHelper.cs
- XmlILTrace.cs
- DataTemplateSelector.cs
- Graph.cs
- SqlServices.cs
- LastQueryOperator.cs
- UriScheme.cs
- BitVector32.cs
- GlyphCache.cs
- SchemaTableOptionalColumn.cs
- MenuItemBindingCollection.cs
- OdbcFactory.cs
- diagnosticsswitches.cs
- MetabaseServerConfig.cs
- DataGridViewRowEventArgs.cs
- KeyInterop.cs