Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- CustomErrorsSectionWrapper.cs
- WarningException.cs
- FontDifferentiator.cs
- TypedElement.cs
- WindowsFormsHostPropertyMap.cs
- StatusBarItem.cs
- IProvider.cs
- ScriptReferenceBase.cs
- PathFigureCollection.cs
- DynamicValidatorEventArgs.cs
- WebPartsPersonalization.cs
- EncryptedKey.cs
- ChannelManager.cs
- SQLDateTime.cs
- CodeTypeDeclarationCollection.cs
- MobileControlDesigner.cs
- HttpPostedFile.cs
- InstallerTypeAttribute.cs
- TextFormatterHost.cs
- UpdatePanel.cs
- HandleRef.cs
- Journaling.cs
- MenuCommands.cs
- DuplicateWaitObjectException.cs
- BlurEffect.cs
- DataControlImageButton.cs
- DrawingImage.cs
- PersistChildrenAttribute.cs
- ObjectSet.cs
- SoapIncludeAttribute.cs
- ActivityExecutionFilter.cs
- SafeLocalMemHandle.cs
- SecurityAppliedMessage.cs
- DataServiceClientException.cs
- ScriptingSectionGroup.cs
- CircleHotSpot.cs
- CurrencyManager.cs
- UIElementPropertyUndoUnit.cs
- TransformGroup.cs
- DataGridViewCellPaintingEventArgs.cs
- SerializationSectionGroup.cs
- ActivityExecutionContextCollection.cs
- _ListenerResponseStream.cs
- TextShapeableCharacters.cs
- UnsafeNativeMethods.cs
- Logging.cs
- PeerNameRegistration.cs
- TextLineResult.cs
- SubclassTypeValidator.cs
- SafeThemeHandle.cs
- Rect3D.cs
- WinFormsComponentEditor.cs
- RegexCode.cs
- EditorAttribute.cs
- RequestBringIntoViewEventArgs.cs
- ObjectSet.cs
- ToolStripContentPanelDesigner.cs
- EdmComplexPropertyAttribute.cs
- BackEase.cs
- ServicesExceptionNotHandledEventArgs.cs
- MsmqDecodeHelper.cs
- KeyGesture.cs
- ImageFormatConverter.cs
- RegexGroupCollection.cs
- SqlAliaser.cs
- ExpressionEditorSheet.cs
- StructuralCache.cs
- Bold.cs
- SortQuery.cs
- TableRowsCollectionEditor.cs
- PreservationFileReader.cs
- DecimalAnimationUsingKeyFrames.cs
- InternalException.cs
- MenuItemCollection.cs
- ModelProperty.cs
- SQLBinary.cs
- InvalidCastException.cs
- MailMessageEventArgs.cs
- COM2IManagedPerPropertyBrowsingHandler.cs
- ProfileEventArgs.cs
- followingquery.cs
- DataSourceSelectArguments.cs
- DocumentReferenceCollection.cs
- AsymmetricKeyExchangeDeformatter.cs
- XmlCharType.cs
- RelationshipNavigation.cs
- Attributes.cs
- HttpCachePolicyBase.cs
- DoubleAnimationClockResource.cs
- RtfToXamlReader.cs
- DelegateTypeInfo.cs
- TextBox.cs
- SignatureGenerator.cs
- EventLog.cs
- DataTableReaderListener.cs
- RawContentTypeMapper.cs
- InputScope.cs
- HtmlInputHidden.cs
- GroupByExpressionRewriter.cs
- SecurityException.cs