Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- nulltextcontainer.cs
- ToolBarOverflowPanel.cs
- ArrayElementGridEntry.cs
- Command.cs
- ConfigXmlComment.cs
- XmlSchemaComplexContentRestriction.cs
- JsonWriterDelegator.cs
- TabControlCancelEvent.cs
- SelectionRange.cs
- MDIWindowDialog.cs
- ArcSegment.cs
- TreeViewImageKeyConverter.cs
- DataGridViewButtonCell.cs
- Brush.cs
- FindProgressChangedEventArgs.cs
- Stroke2.cs
- FileFormatException.cs
- GridPatternIdentifiers.cs
- PeerContact.cs
- XLinq.cs
- MetadataItemEmitter.cs
- EventManager.cs
- TailCallAnalyzer.cs
- NameTable.cs
- PackageRelationship.cs
- ClientBuildManagerCallback.cs
- listviewsubitemcollectioneditor.cs
- RotateTransform3D.cs
- OpenFileDialog.cs
- IntellisenseTextBox.designer.cs
- InvalidProgramException.cs
- Trigger.cs
- ZipArchive.cs
- RemotingConfiguration.cs
- CodeGenerator.cs
- ContextQuery.cs
- SqlTriggerContext.cs
- XComponentModel.cs
- DesignBindingPicker.cs
- DataGridViewIntLinkedList.cs
- OdbcRowUpdatingEvent.cs
- SQLChars.cs
- tibetanshape.cs
- WebEventTraceProvider.cs
- Camera.cs
- WsatServiceAddress.cs
- ValuePatternIdentifiers.cs
- HttpApplicationStateWrapper.cs
- DatasetMethodGenerator.cs
- EncoderFallback.cs
- UInt32Converter.cs
- IERequestCache.cs
- ToolStripArrowRenderEventArgs.cs
- ScriptServiceAttribute.cs
- _KerberosClient.cs
- DynamicDiscoSearcher.cs
- XmlName.cs
- OletxCommittableTransaction.cs
- DLinqTableProvider.cs
- DesignObjectWrapper.cs
- NetPeerTcpBindingCollectionElement.cs
- SafeNativeMethodsCLR.cs
- CodeArgumentReferenceExpression.cs
- ParallelQuery.cs
- EpmSyndicationContentSerializer.cs
- XmlUnspecifiedAttribute.cs
- CoreSwitches.cs
- WS2007FederationHttpBinding.cs
- ReferenceEqualityComparer.cs
- RefreshEventArgs.cs
- ClientRoleProvider.cs
- CustomTokenProvider.cs
- SortAction.cs
- SelectedDatesCollection.cs
- HttpInputStream.cs
- PerformanceCounterPermissionEntry.cs
- MsdtcClusterUtils.cs
- HtmlControl.cs
- IntSecurity.cs
- ADMembershipUser.cs
- GeometryGroup.cs
- ListViewContainer.cs
- StreamUpdate.cs
- LocalizeDesigner.cs
- basemetadatamappingvisitor.cs
- ConfigDefinitionUpdates.cs
- TimeSpanValidatorAttribute.cs
- SchemaType.cs
- BinaryNode.cs
- TypeUtil.cs
- XpsResourceDictionary.cs
- MetadataUtilsSmi.cs
- RoutedEventValueSerializer.cs
- CompositeDispatchFormatter.cs
- DesignSurfaceServiceContainer.cs
- SqlUserDefinedAggregateAttribute.cs
- ExpandedWrapper.cs
- ISAPIApplicationHost.cs
- RowUpdatingEventArgs.cs
- WindowsListViewGroupHelper.cs