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
- SemaphoreFullException.cs
- SequenceRangeCollection.cs
- __Filters.cs
- PropertyPath.cs
- ResourceExpressionEditorSheet.cs
- cookieexception.cs
- DbConnectionFactory.cs
- BuilderInfo.cs
- LicFileLicenseProvider.cs
- XmlSubtreeReader.cs
- IndexedGlyphRun.cs
- PropertyValue.cs
- SchemaMerger.cs
- ObservableDictionary.cs
- TimerElapsedEvenArgs.cs
- PasswordTextContainer.cs
- Imaging.cs
- DataColumnMapping.cs
- TypeInitializationException.cs
- PrintPreviewGraphics.cs
- MetadataPropertyAttribute.cs
- BehaviorEditorPart.cs
- KeyboardDevice.cs
- BindingExpressionUncommonField.cs
- SubMenuStyleCollectionEditor.cs
- EnvelopedSignatureTransform.cs
- GenericRootAutomationPeer.cs
- NonParentingControl.cs
- QilDataSource.cs
- TagPrefixInfo.cs
- DataKeyArray.cs
- BasicViewGenerator.cs
- ToolTipService.cs
- StrongNameUtility.cs
- Application.cs
- SyndicationFeed.cs
- MarshalByValueComponent.cs
- SingleTagSectionHandler.cs
- CompositeDataBoundControl.cs
- FormatSettings.cs
- DataGridViewRowsAddedEventArgs.cs
- ExportOptions.cs
- GrammarBuilderPhrase.cs
- _TLSstream.cs
- FormatException.cs
- RowBinding.cs
- PropertyEntry.cs
- CompositeKey.cs
- ColorTranslator.cs
- UniqueID.cs
- CharacterBufferReference.cs
- RequiredFieldValidator.cs
- Figure.cs
- XmlSchemaGroup.cs
- EncodingTable.cs
- FtpWebResponse.cs
- RichTextBoxAutomationPeer.cs
- MatchSingleFxEngineOpcode.cs
- AttachedPropertyBrowsableForTypeAttribute.cs
- TextSegment.cs
- x509utils.cs
- PackageController.cs
- OutgoingWebResponseContext.cs
- LabelLiteral.cs
- TiffBitmapEncoder.cs
- ActiveXHost.cs
- SqlTopReducer.cs
- EntityParameterCollection.cs
- AlternationConverter.cs
- PropertyItem.cs
- MessagePropertyVariants.cs
- ExportOptions.cs
- WCFModelStrings.Designer.cs
- _ScatterGatherBuffers.cs
- EntityClassGenerator.cs
- SiteMapHierarchicalDataSourceView.cs
- RemoteWebConfigurationHostServer.cs
- FlowDocument.cs
- CodeAttachEventStatement.cs
- PrintingPermission.cs
- SingleKeyFrameCollection.cs
- GrammarBuilderPhrase.cs
- ActivatableWorkflowsQueryResult.cs
- GeneralTransform3DGroup.cs
- TimeSpanSecondsConverter.cs
- StylusButtonEventArgs.cs
- RuntimeConfigLKG.cs
- _AutoWebProxyScriptWrapper.cs
- UnmanagedMemoryStreamWrapper.cs
- DefaultPropertyAttribute.cs
- WebPartCancelEventArgs.cs
- ActivityCodeDomSerializationManager.cs
- ShaderEffect.cs
- IntegerValidator.cs
- QueryConverter.cs
- EventRoute.cs
- InfoCardArgumentException.cs
- SplitterPanelDesigner.cs
- DelegateBodyWriter.cs
- Vector3D.cs