Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Base / System / Windows / AttachedPropertyBrowsableAttribute.cs / 1 / AttachedPropertyBrowsableAttribute.cs
namespace System.Windows { using MS.Internal.WindowsBase; using System; ////// This is the base class for all attached property browsable attributes. /// TypeDescriptor will call IsBrowsable for each attribute it discovers /// on the method metadata. Note that the method TypeDescriptor examines /// is always the method on the class returned from the dependency property's /// OwnerType property. If another type calls AddOwner, the new property is /// considered a "direct" property, not an attached property, and no search /// for a matching method will be performed. /// public abstract class AttachedPropertyBrowsableAttribute : Attribute { //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- ////// Used to determine the browsable algorithm. Normally, all /// AttachedPropertyBrowsable attributes must return true from /// IsBrowsable in order for the property to be considered browsable /// for the given dependency object. If UnionResults is true, the /// IsBrowsable result from all AttachedPropertyBrowsable attributes /// of the same type will be logically or-ed together, and the result /// will be used to test for browsability. UnionResults only applies /// to attributes of the same type. /// internal virtual bool UnionResults { get { return false; } } //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- ////// Returns true if the object allows the given dependency property /// should be visible on the given dependency object. /// [FriendAccessAllowed] // Built into Base, also used by Framework. internal abstract bool IsBrowsable(DependencyObject d, DependencyProperty dp); } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. namespace System.Windows { using MS.Internal.WindowsBase; using System; ////// This is the base class for all attached property browsable attributes. /// TypeDescriptor will call IsBrowsable for each attribute it discovers /// on the method metadata. Note that the method TypeDescriptor examines /// is always the method on the class returned from the dependency property's /// OwnerType property. If another type calls AddOwner, the new property is /// considered a "direct" property, not an attached property, and no search /// for a matching method will be performed. /// public abstract class AttachedPropertyBrowsableAttribute : Attribute { //------------------------------------------------------ // // Internal Properties // //----------------------------------------------------- ////// Used to determine the browsable algorithm. Normally, all /// AttachedPropertyBrowsable attributes must return true from /// IsBrowsable in order for the property to be considered browsable /// for the given dependency object. If UnionResults is true, the /// IsBrowsable result from all AttachedPropertyBrowsable attributes /// of the same type will be logically or-ed together, and the result /// will be used to test for browsability. UnionResults only applies /// to attributes of the same type. /// internal virtual bool UnionResults { get { return false; } } //----------------------------------------------------- // // Internal Methods // //----------------------------------------------------- ////// Returns true if the object allows the given dependency property /// should be visible on the given dependency object. /// [FriendAccessAllowed] // Built into Base, also used by Framework. internal abstract bool IsBrowsable(DependencyObject d, DependencyProperty dp); } } // 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
- PolicyManager.cs
- WebBrowserNavigatedEventHandler.cs
- RenamedEventArgs.cs
- Bezier.cs
- XmlSchemas.cs
- EntityClientCacheEntry.cs
- UpdateRecord.cs
- SelectionManager.cs
- ParserExtension.cs
- DisableDpiAwarenessAttribute.cs
- TextFormatterHost.cs
- SqlTypeSystemProvider.cs
- VectorValueSerializer.cs
- DebugInfoGenerator.cs
- IdentifierService.cs
- OleDbEnumerator.cs
- SafeEventLogWriteHandle.cs
- IgnorePropertiesAttribute.cs
- Vector3DAnimationUsingKeyFrames.cs
- EventSetter.cs
- LifetimeServices.cs
- _ProxyRegBlob.cs
- elementinformation.cs
- CompositeDesignerAccessibleObject.cs
- NonClientArea.cs
- ServerValidateEventArgs.cs
- XmlAttributeCache.cs
- PatternMatcher.cs
- PrivilegedConfigurationManager.cs
- SafeEventHandle.cs
- uribuilder.cs
- ToolboxDataAttribute.cs
- XmlStreamStore.cs
- OverrideMode.cs
- VBCodeProvider.cs
- PropertyMetadata.cs
- SoapMessage.cs
- _DomainName.cs
- BeginStoryboard.cs
- GraphicsPath.cs
- BamlRecords.cs
- DiagnosticTraceSchemas.cs
- Rights.cs
- UpdatePanelTriggerCollection.cs
- MultipartIdentifier.cs
- DBCommandBuilder.cs
- WorkflowRuntimeServicesBehavior.cs
- NotifyParentPropertyAttribute.cs
- TemplatePropertyEntry.cs
- WmlValidatorAdapter.cs
- CacheChildrenQuery.cs
- TextCompositionEventArgs.cs
- RectangleHotSpot.cs
- PersistenceMetadataNamespace.cs
- ProtocolsConfigurationHandler.cs
- EmptyEnumerator.cs
- XmlTypeAttribute.cs
- XpsFilter.cs
- OleDragDropHandler.cs
- RemotingAttributes.cs
- XmlnsPrefixAttribute.cs
- TraceSwitch.cs
- ConfigurationProperty.cs
- ReferenceConverter.cs
- XmlDocumentType.cs
- AllMembershipCondition.cs
- SqlPersonalizationProvider.cs
- WindowsImpersonationContext.cs
- AssemblyHash.cs
- WebPartDisplayModeCollection.cs
- QueryContext.cs
- EventLogPropertySelector.cs
- ParseNumbers.cs
- InfoCardTrace.cs
- Encoder.cs
- BezierSegment.cs
- ContentType.cs
- ValidatingReaderNodeData.cs
- EntityContainer.cs
- LoginAutoFormat.cs
- InkCanvasAutomationPeer.cs
- OuterGlowBitmapEffect.cs
- ProcessModelSection.cs
- XPathSingletonIterator.cs
- ErrorInfoXmlDocument.cs
- TemplateManager.cs
- Types.cs
- RuleSettings.cs
- WebPartChrome.cs
- DataGridViewAdvancedBorderStyle.cs
- ItemChangedEventArgs.cs
- ActivityBuilderHelper.cs
- ImageSourceValueSerializer.cs
- QilPatternVisitor.cs
- Timeline.cs
- ArraySet.cs
- UrlMapping.cs
- DbRetry.cs
- DesignDataSource.cs
- XmlDataProvider.cs