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
- SoapProtocolReflector.cs
- ComponentChangedEvent.cs
- XmlSchemaInferenceException.cs
- handlecollector.cs
- Opcode.cs
- DataBoundControl.cs
- ComponentDispatcher.cs
- ToolStripOverflow.cs
- UnsafeNativeMethods.cs
- DBCSCodePageEncoding.cs
- RangeValuePattern.cs
- safex509handles.cs
- ObjectTypeMapping.cs
- ReadOnlyMetadataCollection.cs
- SelectorAutomationPeer.cs
- input.cs
- PropertyTabAttribute.cs
- externdll.cs
- PointCollection.cs
- JoinGraph.cs
- TypeKeyValue.cs
- SplitContainer.cs
- Utils.cs
- ResourceManagerWrapper.cs
- VarRemapper.cs
- OutputCacheModule.cs
- UIPermission.cs
- TextSyndicationContentKindHelper.cs
- IsolatedStorageFileStream.cs
- MimeParameter.cs
- AxImporter.cs
- FixedFindEngine.cs
- Pair.cs
- DataControlFieldCell.cs
- ListViewDataItem.cs
- ViewStateModeByIdAttribute.cs
- DataTemplateKey.cs
- EventArgs.cs
- SuppressIldasmAttribute.cs
- Paragraph.cs
- DebugHandleTracker.cs
- RemotingClientProxy.cs
- MenuAutoFormat.cs
- Rect3D.cs
- RowBinding.cs
- DbFunctionCommandTree.cs
- _ProxyChain.cs
- SpellerInterop.cs
- xml.cs
- MultiDataTrigger.cs
- Aggregates.cs
- TextContainerChangeEventArgs.cs
- SettingsSection.cs
- ObjectStateFormatter.cs
- PackagingUtilities.cs
- HttpPostedFileWrapper.cs
- ApplicationSecurityInfo.cs
- ItemDragEvent.cs
- ClientSideQueueItem.cs
- TypeTypeConverter.cs
- CryptoStream.cs
- Errors.cs
- CodeDesigner.cs
- GregorianCalendar.cs
- Parameter.cs
- DataBindingHandlerAttribute.cs
- UnsafeNativeMethods.cs
- AdornedElementPlaceholder.cs
- RolePrincipal.cs
- TypeExtensionConverter.cs
- FileRecordSequenceHelper.cs
- SecurityCriticalDataForSet.cs
- SqlDataSourceCache.cs
- ProgramPublisher.cs
- ITextView.cs
- DataGridViewRowEventArgs.cs
- MenuItem.cs
- ToolStripDropDownClosingEventArgs.cs
- ColumnMapTranslator.cs
- CustomErrorsSection.cs
- SQLMembershipProvider.cs
- Point3DIndependentAnimationStorage.cs
- ProofTokenCryptoHandle.cs
- IndexExpression.cs
- IIS7WorkerRequest.cs
- IERequestCache.cs
- InternalConfigEventArgs.cs
- AnimationClockResource.cs
- RectangleGeometry.cs
- SecurityDescriptor.cs
- ClassicBorderDecorator.cs
- GuidConverter.cs
- FileDialog_Vista_Interop.cs
- BackgroundFormatInfo.cs
- IfAction.cs
- FixedSOMElement.cs
- WindowsListViewItem.cs
- ObjectStateEntryOriginalDbUpdatableDataRecord.cs
- CommonRemoteMemoryBlock.cs
- XhtmlTextWriter.cs