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
- ToolStripSettings.cs
- SerializationStore.cs
- TraversalRequest.cs
- WpfKnownMemberInvoker.cs
- dataobject.cs
- ExceptionAggregator.cs
- AttributeSetAction.cs
- ThreadExceptionDialog.cs
- SafeHandles.cs
- TabControl.cs
- _SingleItemRequestCache.cs
- __TransparentProxy.cs
- controlskin.cs
- figurelength.cs
- DynamicMethod.cs
- ColumnBinding.cs
- MarkupCompiler.cs
- ArcSegment.cs
- DataBinding.cs
- Dump.cs
- unsafenativemethodstextservices.cs
- ContainerCodeDomSerializer.cs
- CFStream.cs
- PageStatePersister.cs
- DrawingVisual.cs
- ComboBoxRenderer.cs
- CompiledIdentityConstraint.cs
- MonthChangedEventArgs.cs
- UserThread.cs
- RijndaelCryptoServiceProvider.cs
- ToolStripItemTextRenderEventArgs.cs
- AssemblyCache.cs
- ReliableSessionElement.cs
- PropertyRecord.cs
- LifetimeManager.cs
- HMACMD5.cs
- HttpCapabilitiesBase.cs
- LocationUpdates.cs
- DataTableTypeConverter.cs
- SoapFault.cs
- SoapParser.cs
- GetRecipientListRequest.cs
- ToolStripItemCollection.cs
- TransportContext.cs
- WebRequest.cs
- _DomainName.cs
- ModelItemDictionaryImpl.cs
- ResourceContainer.cs
- WebPartConnectVerb.cs
- TCPListener.cs
- CloseSequenceResponse.cs
- FontStretch.cs
- ServiceTimeoutsBehavior.cs
- GridPattern.cs
- MetadataArtifactLoaderComposite.cs
- DocumentViewerBase.cs
- _HTTPDateParse.cs
- ApplicationManager.cs
- RenderOptions.cs
- XmlSchemaAnnotation.cs
- DoWorkEventArgs.cs
- ImageSourceTypeConverter.cs
- ConversionContext.cs
- DbProviderFactoriesConfigurationHandler.cs
- MLangCodePageEncoding.cs
- KnownTypes.cs
- InfoCardRSAOAEPKeyExchangeFormatter.cs
- ListViewItem.cs
- Transform3DGroup.cs
- Pen.cs
- XamlNamespaceHelper.cs
- __ComObject.cs
- PrintController.cs
- WorkflowControlEndpoint.cs
- TemplateParser.cs
- TextContainer.cs
- BinHexEncoder.cs
- Context.cs
- ConditionalDesigner.cs
- PassportAuthenticationEventArgs.cs
- EventWaitHandleSecurity.cs
- FamilyCollection.cs
- Shape.cs
- DocumentAutomationPeer.cs
- ConstructorNeedsTagAttribute.cs
- ModuleConfigurationInfo.cs
- ListBindableAttribute.cs
- ErrorStyle.cs
- FileLogRecord.cs
- BlobPersonalizationState.cs
- IFormattable.cs
- WmpBitmapEncoder.cs
- JsonByteArrayDataContract.cs
- While.cs
- PerfCounters.cs
- MultipartContentParser.cs
- SemanticValue.cs
- TextDecorationCollectionConverter.cs
- ExtendedPropertyCollection.cs
- IsolatedStoragePermission.cs