Code:
/ 4.0 / 4.0 / untmp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- XmlDataSource.cs
- updatecommandorderer.cs
- XmlSerializerAssemblyAttribute.cs
- Polygon.cs
- SmtpNegotiateAuthenticationModule.cs
- CurrentChangedEventManager.cs
- WsiProfilesElementCollection.cs
- GridViewDeleteEventArgs.cs
- AlphabetConverter.cs
- ViewValidator.cs
- ObjectDataSource.cs
- LogPolicy.cs
- MeasurementDCInfo.cs
- ByeMessageCD1.cs
- SchemaImporterExtensionElement.cs
- GPStream.cs
- ServerIdentity.cs
- PenCursorManager.cs
- Component.cs
- ConsumerConnectionPointCollection.cs
- CommandExpr.cs
- controlskin.cs
- UnsafeNativeMethods.cs
- RowUpdatedEventArgs.cs
- HwndHost.cs
- RuntimeCompatibilityAttribute.cs
- TypeProvider.cs
- ExceptQueryOperator.cs
- CompilerGeneratedAttribute.cs
- CounterSampleCalculator.cs
- StylusDownEventArgs.cs
- LinqToSqlWrapper.cs
- FixedSOMPage.cs
- PrivilegeNotHeldException.cs
- ImageAutomationPeer.cs
- CookielessHelper.cs
- PasswordRecoveryDesigner.cs
- WindowsRichEditRange.cs
- ScrollableControl.cs
- NativeCppClassAttribute.cs
- CheckBoxField.cs
- LocalIdCollection.cs
- PropertyStore.cs
- TextTreeTextElementNode.cs
- TraceFilter.cs
- IIS7WorkerRequest.cs
- ReadOnlyDataSourceView.cs
- EditorPartChrome.cs
- XmlResolver.cs
- AssemblyBuilderData.cs
- AncillaryOps.cs
- CodeMemberEvent.cs
- VisualTarget.cs
- ToolStripHighContrastRenderer.cs
- TableCell.cs
- Point.cs
- DbProviderFactoriesConfigurationHandler.cs
- GuidelineSet.cs
- PagedDataSource.cs
- precedingsibling.cs
- LinkLabel.cs
- TypeResolvingOptionsAttribute.cs
- BufferedStream.cs
- MediaTimeline.cs
- Preprocessor.cs
- MouseDevice.cs
- PasswordDeriveBytes.cs
- EmissiveMaterial.cs
- SecurityListenerSettingsLifetimeManager.cs
- OrderedDictionaryStateHelper.cs
- XmlILAnnotation.cs
- XPathParser.cs
- InOutArgumentConverter.cs
- AssemblyAttributes.cs
- DocumentPageHost.cs
- Table.cs
- ListBoxChrome.cs
- StorageEndPropertyMapping.cs
- DuplicateWaitObjectException.cs
- UriSectionReader.cs
- METAHEADER.cs
- _SecureChannel.cs
- FileLogRecordHeader.cs
- COM2ExtendedTypeConverter.cs
- GC.cs
- WebEvents.cs
- WebPartMinimizeVerb.cs
- ConstraintManager.cs
- AuthenticationService.cs
- DataGridViewComboBoxCell.cs
- ListViewGroup.cs
- MessageSmuggler.cs
- ObjectDataSourceView.cs
- CurrencyWrapper.cs
- PropagatorResult.cs
- HtmlForm.cs
- GlobalizationSection.cs
- KeyValueSerializer.cs
- ColorBlend.cs
- PointAnimation.cs