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
- DataGridViewCheckBoxColumn.cs
- ProfileManager.cs
- XmlSignatureManifest.cs
- ExtendedPropertyCollection.cs
- ErrorFormatter.cs
- Ops.cs
- SvcMapFile.cs
- SynchronizedInputHelper.cs
- WorkflowFileItem.cs
- BooleanFacetDescriptionElement.cs
- ProxyAttribute.cs
- EventBuilder.cs
- IApplicationTrustManager.cs
- BufferedGraphicsManager.cs
- HandlerWithFactory.cs
- PropertyChangingEventArgs.cs
- CTreeGenerator.cs
- TextServicesCompartmentEventSink.cs
- Win32Exception.cs
- ColorAnimationBase.cs
- MouseGesture.cs
- PersonalizableTypeEntry.cs
- PageWrapper.cs
- SignedPkcs7.cs
- HttpEncoder.cs
- EditCommandColumn.cs
- SqlConnectionHelper.cs
- SuppressMergeCheckAttribute.cs
- WebPartUserCapability.cs
- DesignerAutoFormat.cs
- complextypematerializer.cs
- SecureEnvironment.cs
- _StreamFramer.cs
- Control.cs
- DataColumn.cs
- IdentityModelStringsVersion1.cs
- DesignerOptionService.cs
- BuildProviderCollection.cs
- RuleInfoComparer.cs
- CompositeClientFormatter.cs
- ServiceReference.cs
- Aes.cs
- WaitForChangedResult.cs
- XamlClipboardData.cs
- CommonXSendMessage.cs
- SecurityPermission.cs
- DataServiceRequestException.cs
- ExecutionEngineException.cs
- PriorityChain.cs
- DbgCompiler.cs
- XmlNodeComparer.cs
- XslTransform.cs
- AutoResetEvent.cs
- followingquery.cs
- InputProcessorProfiles.cs
- EventSetterHandlerConverter.cs
- _LocalDataStoreMgr.cs
- BrowserCapabilitiesFactoryBase.cs
- SqlOuterApplyReducer.cs
- SqlRemoveConstantOrderBy.cs
- ConversionContext.cs
- BitmapDecoder.cs
- Bidi.cs
- XPathChildIterator.cs
- IntPtr.cs
- ThemeInfoAttribute.cs
- Compilation.cs
- TransformerInfoCollection.cs
- InternalDispatchObject.cs
- HttpResponseWrapper.cs
- FacetEnabledSchemaElement.cs
- MulticastIPAddressInformationCollection.cs
- SingleAnimation.cs
- Int32Converter.cs
- ScriptingJsonSerializationSection.cs
- EventLog.cs
- WebPartManagerInternals.cs
- WrappedReader.cs
- MimePart.cs
- ObjectStateManagerMetadata.cs
- _CacheStreams.cs
- TrackingRecordPreFilter.cs
- Mouse.cs
- RegisteredScript.cs
- DetailsViewInsertEventArgs.cs
- ToolboxBitmapAttribute.cs
- InstanceData.cs
- BitmapMetadata.cs
- RemoteWebConfigurationHostStream.cs
- DataTableReaderListener.cs
- EnumValAlphaComparer.cs
- DataGridCommandEventArgs.cs
- StoreItemCollection.Loader.cs
- MatrixKeyFrameCollection.cs
- FormCollection.cs
- RenderContext.cs
- SemaphoreFullException.cs
- EmptyEnumerator.cs
- HttpCapabilitiesBase.cs