Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Base / Core / PropertyEditing / PropertyOrder.cs / 1305376 / PropertyOrder.cs
namespace System.Activities.Presentation.PropertyEditing { using System; using System.ComponentModel; using System.Runtime; using System.Activities.Presentation; using System.Diagnostics.CodeAnalysis; ////// This class is used to set the order in which properties show up within a category, /// or within a list of sub-properties. 3rd parties may choose to derive from this class /// and create their own custom order tokens, which can both guarantee property order as /// well as property grouping. /// [Fx.Tag.XamlVisible(false)] sealed class PropertyOrder : OrderToken { private static PropertyOrder _default; ////// Creates a PropertyOrder. /// /// Precedence of this token based on the /// referenced token. /// Referenced token. /// Conflict resolution semantics. /// Winning ConflictResultion semantic should only be used /// on predefined, default OrderToken instances to ensure /// their correct placement in more complex chain of order /// dependencies. private PropertyOrder(OrderTokenPrecedence precedence, OrderToken reference, OrderTokenConflictResolution conflictResolution) : base(precedence, reference, conflictResolution) { } ////// Creates a PropertyOrder that comes after the passed in token. /// /// The reference token ///The new PropertyOrder ///When reference is null public static PropertyOrder CreateAfter(OrderToken reference) { if (reference == null) throw FxTrace.Exception.ArgumentNull("reference"); return new PropertyOrder(OrderTokenPrecedence.After, reference, OrderTokenConflictResolution.Lose); } ////// Treat equal orders as equal /// /// Left token /// Right token ///0 protected override int ResolveConflict(OrderToken left, OrderToken right) { return 0; } ////// Gets the system defined Default order position. /// public static PropertyOrder Default { get { if (_default == null) { _default = new PropertyOrder(OrderTokenPrecedence.After, null, OrderTokenConflictResolution.Win); } return _default; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Activities.Presentation.PropertyEditing { using System; using System.ComponentModel; using System.Runtime; using System.Activities.Presentation; using System.Diagnostics.CodeAnalysis; ////// This class is used to set the order in which properties show up within a category, /// or within a list of sub-properties. 3rd parties may choose to derive from this class /// and create their own custom order tokens, which can both guarantee property order as /// well as property grouping. /// [Fx.Tag.XamlVisible(false)] sealed class PropertyOrder : OrderToken { private static PropertyOrder _default; ////// Creates a PropertyOrder. /// /// Precedence of this token based on the /// referenced token. /// Referenced token. /// Conflict resolution semantics. /// Winning ConflictResultion semantic should only be used /// on predefined, default OrderToken instances to ensure /// their correct placement in more complex chain of order /// dependencies. private PropertyOrder(OrderTokenPrecedence precedence, OrderToken reference, OrderTokenConflictResolution conflictResolution) : base(precedence, reference, conflictResolution) { } ////// Creates a PropertyOrder that comes after the passed in token. /// /// The reference token ///The new PropertyOrder ///When reference is null public static PropertyOrder CreateAfter(OrderToken reference) { if (reference == null) throw FxTrace.Exception.ArgumentNull("reference"); return new PropertyOrder(OrderTokenPrecedence.After, reference, OrderTokenConflictResolution.Lose); } ////// Treat equal orders as equal /// /// Left token /// Right token ///0 protected override int ResolveConflict(OrderToken left, OrderToken right) { return 0; } ////// Gets the system defined Default order position. /// public static PropertyOrder Default { get { if (_default == null) { _default = new PropertyOrder(OrderTokenPrecedence.After, null, OrderTokenConflictResolution.Win); } return _default; } } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- FormViewPageEventArgs.cs
- AutomationPropertyInfo.cs
- OracleMonthSpan.cs
- BezierSegment.cs
- MdImport.cs
- DbFunctionCommandTree.cs
- LogArchiveSnapshot.cs
- ResourceExpression.cs
- EmbeddedMailObjectsCollection.cs
- CombinedGeometry.cs
- DataTableClearEvent.cs
- SqlUserDefinedAggregateAttribute.cs
- CodeNamespace.cs
- AnnotationResourceCollection.cs
- _ConnectStream.cs
- KnownTypeAttribute.cs
- ProfileBuildProvider.cs
- InvokePattern.cs
- QuaternionRotation3D.cs
- AttributeUsageAttribute.cs
- VarRemapper.cs
- Random.cs
- DocComment.cs
- InfoCardListRequest.cs
- CompiledQueryCacheEntry.cs
- validationstate.cs
- FactoryGenerator.cs
- DetailsViewAutoFormat.cs
- RowUpdatedEventArgs.cs
- DataGridTablesFactory.cs
- _ListenerAsyncResult.cs
- TypeLoadException.cs
- ProfessionalColorTable.cs
- XmlTypeAttribute.cs
- HistoryEventArgs.cs
- X509RecipientCertificateServiceElement.cs
- LocatorBase.cs
- CreateUserWizard.cs
- Stacktrace.cs
- StoreAnnotationsMap.cs
- SqlConnectionStringBuilder.cs
- ServiceTimeoutsBehavior.cs
- Resources.Designer.cs
- Number.cs
- RelationshipConverter.cs
- ImageMetadata.cs
- TextReturnReader.cs
- COM2FontConverter.cs
- XmlnsDefinitionAttribute.cs
- X509CertificateInitiatorClientCredential.cs
- DependencyObject.cs
- ProvideValueServiceProvider.cs
- WebControlParameterProxy.cs
- DataTablePropertyDescriptor.cs
- CommonRemoteMemoryBlock.cs
- DesignerActionListCollection.cs
- ProcessModelSection.cs
- datacache.cs
- Int32AnimationBase.cs
- HScrollProperties.cs
- UndirectedGraph.cs
- GrammarBuilderWildcard.cs
- Int64.cs
- XmlSchemaAttributeGroupRef.cs
- UIPermission.cs
- ServiceOperationDetailViewControl.cs
- CommentEmitter.cs
- ParserContext.cs
- QuaternionKeyFrameCollection.cs
- TimeSpan.cs
- Ticks.cs
- EdmProperty.cs
- Manipulation.cs
- CollectionView.cs
- MeshGeometry3D.cs
- HttpPostedFile.cs
- TouchPoint.cs
- UserControlDocumentDesigner.cs
- RuleSetBrowserDialog.cs
- RoutingService.cs
- UseAttributeSetsAction.cs
- SingleAnimationBase.cs
- OlePropertyStructs.cs
- FilteredXmlReader.cs
- hwndwrapper.cs
- RouteItem.cs
- TypefaceMap.cs
- TextCompositionEventArgs.cs
- LinkConverter.cs
- ContentType.cs
- TakeQueryOptionExpression.cs
- GeneralTransform2DTo3D.cs
- StaticExtensionConverter.cs
- IndexedWhereQueryOperator.cs
- SponsorHelper.cs
- dataSvcMapFileLoader.cs
- InternalBufferOverflowException.cs
- PanelStyle.cs
- FormViewInsertedEventArgs.cs
- GraphicsContext.cs