Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- TypeGeneratedEventArgs.cs
- UpdatePanelTrigger.cs
- ConnectionConsumerAttribute.cs
- SecurityTokenRequirement.cs
- ConfigurationSection.cs
- GetCertificateRequest.cs
- HostDesigntimeLicenseContext.cs
- wmiprovider.cs
- GacUtil.cs
- ToolStripSplitStackLayout.cs
- AssertValidation.cs
- GeneralTransform2DTo3D.cs
- TimeZone.cs
- ExtentJoinTreeNode.cs
- InternalCache.cs
- DefaultConfirmation.cs
- XsdBuilder.cs
- AdornerDecorator.cs
- cookiecontainer.cs
- XmlDataSource.cs
- InputLangChangeEvent.cs
- CatalogPart.cs
- DataGridViewToolTip.cs
- InternalCache.cs
- LambdaCompiler.Address.cs
- DataObjectPastingEventArgs.cs
- ProfileParameter.cs
- TextContainer.cs
- StringArrayConverter.cs
- CodeIndexerExpression.cs
- TaskFormBase.cs
- Pen.cs
- QueryStringParameter.cs
- EventArgs.cs
- SendActivity.cs
- SqlClientWrapperSmiStream.cs
- TextProperties.cs
- PersonalizationStateInfoCollection.cs
- CodeThrowExceptionStatement.cs
- DataColumnMapping.cs
- MailMessage.cs
- ColumnHeaderConverter.cs
- CompiledQuery.cs
- FixedPageAutomationPeer.cs
- FrameworkElementFactory.cs
- SecureStringHasher.cs
- WebPartDescription.cs
- FieldAccessException.cs
- ResourcesBuildProvider.cs
- DefaultMemberAttribute.cs
- TextStore.cs
- FormViewInsertedEventArgs.cs
- IndentedWriter.cs
- XslAst.cs
- HtmlElementEventArgs.cs
- HostedNamedPipeTransportManager.cs
- securitycriticaldataClass.cs
- CorrelationToken.cs
- RequestCacheValidator.cs
- TextLineBreak.cs
- PaginationProgressEventArgs.cs
- CommandCollectionEditor.cs
- TraceContextRecord.cs
- APCustomTypeDescriptor.cs
- CalculatedColumn.cs
- PopupRoot.cs
- KeyFrames.cs
- XPathItem.cs
- Process.cs
- DataGridViewHitTestInfo.cs
- WebCategoryAttribute.cs
- ReversePositionQuery.cs
- PageHandlerFactory.cs
- SctClaimSerializer.cs
- TraceLevelStore.cs
- EntityCollection.cs
- SqlBuffer.cs
- LambdaReference.cs
- EllipticalNodeOperations.cs
- SQLInt32Storage.cs
- InputMethodStateChangeEventArgs.cs
- Point3DAnimationUsingKeyFrames.cs
- CancellationHandlerDesigner.cs
- ComEventsInfo.cs
- TextServicesCompartmentEventSink.cs
- ToolStripItemImageRenderEventArgs.cs
- DesignOnlyAttribute.cs
- DiscoveryEndpointValidator.cs
- IriParsingElement.cs
- WorkItem.cs
- SqlSupersetValidator.cs
- SoapTypeAttribute.cs
- Selection.cs
- PropertyMetadata.cs
- unsafeIndexingFilterStream.cs
- X509ThumbprintKeyIdentifierClause.cs
- VScrollBar.cs
- ResXResourceSet.cs
- TcpChannelHelper.cs
- CompareValidator.cs