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
- ImmutableObjectAttribute.cs
- Crypto.cs
- OptionalRstParameters.cs
- PerformanceCountersElement.cs
- GridErrorDlg.cs
- StylusCollection.cs
- CodeAccessPermission.cs
- DesignTimeResourceProviderFactoryAttribute.cs
- IISMapPath.cs
- MobileComponentEditorPage.cs
- ToolboxItemAttribute.cs
- UnsafeNativeMethodsTablet.cs
- BaseAppDomainProtocolHandler.cs
- XmlException.cs
- XmlILStorageConverter.cs
- UpDownBase.cs
- SecurityBindingElement.cs
- DataTableMappingCollection.cs
- SoapAttributes.cs
- ResolveMatches11.cs
- RequestBringIntoViewEventArgs.cs
- FixedSOMTextRun.cs
- DbConnectionPoolOptions.cs
- ArrayTypeMismatchException.cs
- DrawingGroupDrawingContext.cs
- AutomationPatternInfo.cs
- PathFigureCollectionValueSerializer.cs
- ActivityMarkupSerializer.cs
- HandlerWithFactory.cs
- WebRequestModulesSection.cs
- XmlDataProvider.cs
- ContainerParagraph.cs
- securitycriticaldataformultiplegetandset.cs
- MethodBody.cs
- RootBrowserWindow.cs
- Graphics.cs
- ProviderConnectionPointCollection.cs
- PropertyConverter.cs
- EventSetter.cs
- DotAtomReader.cs
- BamlLocalizabilityResolver.cs
- WsdlWriter.cs
- _NetRes.cs
- MemberMemberBinding.cs
- Utils.cs
- LineGeometry.cs
- SchemaTableColumn.cs
- ToolboxItemAttribute.cs
- Button.cs
- QueryPageSettingsEventArgs.cs
- HostUtils.cs
- IdentityReference.cs
- ExclusiveTcpListener.cs
- COM2IDispatchConverter.cs
- SingleStorage.cs
- StructuralObject.cs
- XmlQueryContext.cs
- ImmutableObjectAttribute.cs
- HtmlTable.cs
- SpeechSeg.cs
- RenamedEventArgs.cs
- SqlMethods.cs
- ReachDocumentPageSerializerAsync.cs
- ThreadSafeList.cs
- GridViewHeaderRowPresenterAutomationPeer.cs
- SupportingTokenListenerFactory.cs
- GroupBoxDesigner.cs
- FontEmbeddingManager.cs
- SerializerProvider.cs
- DatePicker.cs
- XmlDomTextWriter.cs
- CommandLibraryHelper.cs
- ServiceBehaviorAttribute.cs
- altserialization.cs
- BindingManagerDataErrorEventArgs.cs
- Form.cs
- PositiveTimeSpanValidatorAttribute.cs
- RewritingSimplifier.cs
- OutputCacheSettings.cs
- MimeParameter.cs
- MemberInfoSerializationHolder.cs
- DateTimeOffsetAdapter.cs
- DataGridViewHeaderCell.cs
- ListSortDescription.cs
- WorkflowElementDialog.cs
- BooleanAnimationBase.cs
- XmlLinkedNode.cs
- CodePageUtils.cs
- ListComponentEditor.cs
- SettingsPropertyIsReadOnlyException.cs
- MenuBindingsEditor.cs
- TextTreeUndo.cs
- ObjectReaderCompiler.cs
- FaultDesigner.cs
- Repeater.cs
- EmptyEnumerator.cs
- UserPersonalizationStateInfo.cs
- CurrentChangingEventArgs.cs
- ListViewInsertedEventArgs.cs
- TextEffect.cs