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
- Package.cs
- CommonXSendMessage.cs
- login.cs
- ExpandableObjectConverter.cs
- RegexGroupCollection.cs
- ToolboxItemCollection.cs
- ScrollChrome.cs
- XslAstAnalyzer.cs
- XmlSerializerNamespaces.cs
- SqlParameterCollection.cs
- CommentGlyph.cs
- SeparatorAutomationPeer.cs
- EventLogTraceListener.cs
- InvalidBodyAccessException.cs
- _LocalDataStore.cs
- XmlParserContext.cs
- SQLGuidStorage.cs
- FileSystemEventArgs.cs
- EventDescriptor.cs
- SerializationSectionGroup.cs
- TimeSpanFormat.cs
- XmlHierarchyData.cs
- SspiSecurityToken.cs
- DatatypeImplementation.cs
- ObjectDataSourceDisposingEventArgs.cs
- XmlLanguageConverter.cs
- TemplateField.cs
- ReferenceEqualityComparer.cs
- TableChangeProcessor.cs
- StateItem.cs
- KeyboardNavigation.cs
- XamlStream.cs
- HandleCollector.cs
- TextEditor.cs
- Point4DValueSerializer.cs
- WebPartMovingEventArgs.cs
- DataGridViewControlCollection.cs
- TableLayoutPanelCellPosition.cs
- ProgressBarBrushConverter.cs
- X509ChainElement.cs
- PropertyMapper.cs
- Keywords.cs
- CLRBindingWorker.cs
- CodeTypeParameter.cs
- ObjectViewQueryResultData.cs
- TextDpi.cs
- DbException.cs
- BitmapDecoder.cs
- ResourceExpressionEditorSheet.cs
- InputBuffer.cs
- WebPartVerbsEventArgs.cs
- AssociationType.cs
- InitiatorServiceModelSecurityTokenRequirement.cs
- DataGridViewBindingCompleteEventArgs.cs
- DataSourceView.cs
- OdbcEnvironmentHandle.cs
- HwndMouseInputProvider.cs
- ListViewGroupItemCollection.cs
- Decimal.cs
- MD5CryptoServiceProvider.cs
- PerspectiveCamera.cs
- NameTable.cs
- GregorianCalendar.cs
- ClonableStack.cs
- UIElementParagraph.cs
- PropertyValue.cs
- DynamicQueryableWrapper.cs
- HighlightVisual.cs
- IndexedGlyphRun.cs
- TableLayoutStyle.cs
- LedgerEntryCollection.cs
- XmlNamedNodeMap.cs
- ThreadStaticAttribute.cs
- WindowManager.cs
- BitmapFrame.cs
- ProjectionRewriter.cs
- CustomAttribute.cs
- NullableDecimalSumAggregationOperator.cs
- IsolatedStorageFile.cs
- Imaging.cs
- AsyncOperationManager.cs
- DataGridViewRowsRemovedEventArgs.cs
- SpotLight.cs
- XmlFormatMapping.cs
- StyleModeStack.cs
- ComplusTypeValidator.cs
- FontWeightConverter.cs
- RegionInfo.cs
- TextRange.cs
- DbConnectionFactory.cs
- Setter.cs
- DataGridViewRowEventArgs.cs
- MD5CryptoServiceProvider.cs
- InputScopeManager.cs
- CompiledIdentityConstraint.cs
- IDispatchConstantAttribute.cs
- OrderedDictionaryStateHelper.cs
- DesignerOptionService.cs
- PublishLicense.cs
- EnvironmentPermission.cs