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
- SHA384Cng.cs
- LayoutDump.cs
- PropertyTab.cs
- AsyncOperationManager.cs
- EmbossBitmapEffect.cs
- SymbolType.cs
- DesignerVerbToolStripMenuItem.cs
- VisualStyleInformation.cs
- RectangleF.cs
- AppDomainAttributes.cs
- SearchForVirtualItemEventArgs.cs
- BevelBitmapEffect.cs
- XPathPatternParser.cs
- ImageFormat.cs
- IdentitySection.cs
- EllipseGeometry.cs
- MetadataArtifactLoaderCompositeFile.cs
- ObservableCollection.cs
- TextFormatterHost.cs
- BufferedGraphicsContext.cs
- ReflectTypeDescriptionProvider.cs
- QilFunction.cs
- RegisteredExpandoAttribute.cs
- UnmanagedHandle.cs
- EmptyEnumerable.cs
- PolygonHotSpot.cs
- BamlWriter.cs
- TabletCollection.cs
- CompositeControl.cs
- WebServiceErrorEvent.cs
- UserControl.cs
- RuleRef.cs
- WeakReference.cs
- ContentIterators.cs
- TreeNodeEventArgs.cs
- LocalValueEnumerator.cs
- SettingsContext.cs
- SerialStream.cs
- ButtonColumn.cs
- EndpointDiscoveryMetadataCD1.cs
- _UriSyntax.cs
- BitVector32.cs
- StateRuntime.cs
- PopupRoot.cs
- FolderBrowserDialog.cs
- CertificateManager.cs
- XmlSchemaCollection.cs
- ContractUtils.cs
- TrackBar.cs
- XhtmlBasicObjectListAdapter.cs
- EventArgs.cs
- _TLSstream.cs
- NavigationProperty.cs
- NativeMethods.cs
- Panel.cs
- AutomationProperties.cs
- ByteKeyFrameCollection.cs
- FormViewModeEventArgs.cs
- RuleAttributes.cs
- CatalogPart.cs
- HttpContextServiceHost.cs
- DefaultValueAttribute.cs
- PolyBezierSegmentFigureLogic.cs
- Debugger.cs
- ListViewSelectEventArgs.cs
- AspNetPartialTrustHelpers.cs
- PersonalizationEntry.cs
- Subset.cs
- KeyedPriorityQueue.cs
- DateTimeValueSerializerContext.cs
- Crypto.cs
- ObjectStorage.cs
- WindowsStatic.cs
- OperatorExpressions.cs
- ColorAnimationUsingKeyFrames.cs
- LinkConverter.cs
- SqlBooleanizer.cs
- CachedFontFace.cs
- ResourceProperty.cs
- XmlSchemaParticle.cs
- FileAuthorizationModule.cs
- AdvancedBindingPropertyDescriptor.cs
- AttributeTable.cs
- TabPanel.cs
- LicenseContext.cs
- StandardCommands.cs
- LabelLiteral.cs
- TracedNativeMethods.cs
- VirtualPath.cs
- MembershipUser.cs
- PropertyEntry.cs
- CultureMapper.cs
- RIPEMD160.cs
- WriteableBitmap.cs
- TagMapInfo.cs
- ConstrainedDataObject.cs
- TimelineClockCollection.cs
- SerializationObjectManager.cs
- Int32CAMarshaler.cs
- UserControlParser.cs