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
- XmlName.cs
- XmlReturnReader.cs
- ImageList.cs
- Journaling.cs
- PublisherMembershipCondition.cs
- ClientScriptManager.cs
- HostedBindingBehavior.cs
- PerformanceCounterCategory.cs
- ControlPaint.cs
- ChildChangedEventArgs.cs
- TreeNodeCollection.cs
- FrameworkReadOnlyPropertyMetadata.cs
- RecommendedAsConfigurableAttribute.cs
- AutoCompleteStringCollection.cs
- ConfigurationLocationCollection.cs
- DataControlFieldCollection.cs
- DataControlField.cs
- DateBoldEvent.cs
- BlurEffect.cs
- CapabilitiesUse.cs
- InvalidCommandTreeException.cs
- DebugView.cs
- MessageDesigner.cs
- ElementMarkupObject.cs
- LineBreak.cs
- FolderNameEditor.cs
- PersonalizablePropertyEntry.cs
- ObjectResult.cs
- ValueProviderWrapper.cs
- Filter.cs
- GenericWebPart.cs
- DBConcurrencyException.cs
- TextSpan.cs
- SchemaName.cs
- httpapplicationstate.cs
- SettingsPropertyWrongTypeException.cs
- DESCryptoServiceProvider.cs
- CodeCommentStatement.cs
- NetworkInterface.cs
- WSSecurityPolicy11.cs
- WebSysDescriptionAttribute.cs
- PropertyMetadata.cs
- LassoHelper.cs
- QilCloneVisitor.cs
- WebHostScriptMappingsInstallComponent.cs
- TreeNode.cs
- httpapplicationstate.cs
- DataContractSerializerOperationGenerator.cs
- FileClassifier.cs
- SimpleWebHandlerParser.cs
- AuthorizationRule.cs
- XmlSerializationReader.cs
- EntityTypeBase.cs
- ScriptReferenceBase.cs
- DocumentEventArgs.cs
- InlineObject.cs
- StyleCollection.cs
- QualifiedCellIdBoolean.cs
- CalendarDataBindingHandler.cs
- ViewCellSlot.cs
- ViewStateException.cs
- CodeStatementCollection.cs
- DataControlField.cs
- ProcessProtocolHandler.cs
- TemplatedAdorner.cs
- SettingsSavedEventArgs.cs
- MultiByteCodec.cs
- ClientScriptManager.cs
- DodSequenceMerge.cs
- LayoutTableCell.cs
- ValidatingReaderNodeData.cs
- DBDataPermissionAttribute.cs
- WorkflowApplicationEventArgs.cs
- AssemblyInfo.cs
- RTTrackingProfile.cs
- QilScopedVisitor.cs
- MenuCommand.cs
- DataGridViewDataConnection.cs
- StorageBasedPackageProperties.cs
- ReadOnlyPermissionSet.cs
- TemplateBamlRecordReader.cs
- XmlAttribute.cs
- RangeValuePattern.cs
- DnsCache.cs
- PersonalizationStateQuery.cs
- RichTextBox.cs
- ActivityDesignerHighlighter.cs
- FormViewModeEventArgs.cs
- DataRow.cs
- StylusPointCollection.cs
- MenuTracker.cs
- InternalRelationshipCollection.cs
- NetworkAddressChange.cs
- SoapEnumAttribute.cs
- SQLSingle.cs
- UnsafeNativeMethods.cs
- X509PeerCertificateAuthentication.cs
- NavigationFailedEventArgs.cs
- DataGridViewRowEventArgs.cs
- OperatingSystem.cs