Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / ndp / cdf / src / NetFx40 / Tools / System.Activities.Presentation / System / Activities / Presentation / Model / AttachedPropertyInfo.cs / 1305376 / AttachedPropertyInfo.cs
//---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Model { using System.Activities.Presentation; public abstract class AttachedPropertyInfo { bool isBrowsable = true; public string PropertyName { get; set; } internal bool IsBrowsable { get { return isBrowsable; } set { this.isBrowsable = value; } } internal abstract void Register(ViewStateAttachedPropertyFeature viewStateAttachedPropertyFeature); } public sealed class AttachedPropertyInfo: AttachedPropertyInfo { public T DefaultValue { get; set; } internal override void Register(ViewStateAttachedPropertyFeature viewStateAttachedPropertyFeature) { viewStateAttachedPropertyFeature.RegisterAttachedProperty (this.PropertyName, this.IsBrowsable, this.DefaultValue); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. //---------------------------------------------------------------- // Copyright (c) Microsoft Corporation. All rights reserved. //--------------------------------------------------------------- namespace System.Activities.Presentation.Model { using System.Activities.Presentation; public abstract class AttachedPropertyInfo { bool isBrowsable = true; public string PropertyName { get; set; } internal bool IsBrowsable { get { return isBrowsable; } set { this.isBrowsable = value; } } internal abstract void Register(ViewStateAttachedPropertyFeature viewStateAttachedPropertyFeature); } public sealed class AttachedPropertyInfo : AttachedPropertyInfo { public T DefaultValue { get; set; } internal override void Register(ViewStateAttachedPropertyFeature viewStateAttachedPropertyFeature) { viewStateAttachedPropertyFeature.RegisterAttachedProperty (this.PropertyName, this.IsBrowsable, this.DefaultValue); } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CodeBinaryOperatorExpression.cs
- RadioButton.cs
- PeerHelpers.cs
- BooleanToSelectiveScrollingOrientationConverter.cs
- DataGridCellAutomationPeer.cs
- Trustee.cs
- GroupLabel.cs
- SolidColorBrush.cs
- ComboBoxDesigner.cs
- GlyphCache.cs
- NameValuePermission.cs
- ClickablePoint.cs
- SoapAttributeOverrides.cs
- NameValuePair.cs
- SqlCommand.cs
- URLIdentityPermission.cs
- TextServicesCompartmentEventSink.cs
- EntityContainerEntitySetDefiningQuery.cs
- DocumentPage.cs
- PointKeyFrameCollection.cs
- odbcmetadatacolumnnames.cs
- ServicePrincipalNameElement.cs
- Style.cs
- AppDomainFactory.cs
- WebConfigurationFileMap.cs
- SchemaInfo.cs
- ContentPlaceHolderDesigner.cs
- BufferedStream2.cs
- WebPartMovingEventArgs.cs
- MatrixKeyFrameCollection.cs
- ContractMapping.cs
- X509Certificate2.cs
- ThreadAbortException.cs
- DataGridViewLinkCell.cs
- AutoCompleteStringCollection.cs
- _SingleItemRequestCache.cs
- TableProviderWrapper.cs
- PageAsyncTaskManager.cs
- PropertyInformation.cs
- SqlMetaData.cs
- CharacterShapingProperties.cs
- Propagator.JoinPropagator.JoinPredicateVisitor.cs
- HandleExceptionArgs.cs
- HebrewCalendar.cs
- StylusLogic.cs
- HtmlElement.cs
- ParallelTimeline.cs
- Pair.cs
- HtmlMobileTextWriter.cs
- CodeChecksumPragma.cs
- WebBrowser.cs
- D3DImage.cs
- WindowsPrincipal.cs
- PersonalizationProviderHelper.cs
- CultureTableRecord.cs
- ActivityMarkupSerializationProvider.cs
- GridViewCancelEditEventArgs.cs
- PropagatorResult.cs
- ExpressionLink.cs
- TextServicesLoader.cs
- ObjectQueryExecutionPlan.cs
- SecurityTokenInclusionMode.cs
- TableLayoutRowStyleCollection.cs
- PrintPreviewDialog.cs
- BaseTreeIterator.cs
- KoreanCalendar.cs
- LocationSectionRecord.cs
- HttpCookiesSection.cs
- GenericTextProperties.cs
- TemplateColumn.cs
- RequestCacheManager.cs
- ModelItemImpl.cs
- ScriptControlDescriptor.cs
- MetadataUtil.cs
- BrowserTree.cs
- ToolStripLabel.cs
- SecurityCriticalDataForSet.cs
- CellParaClient.cs
- ThrowHelper.cs
- LinqDataSourceDeleteEventArgs.cs
- ZeroOpNode.cs
- DisableDpiAwarenessAttribute.cs
- ScrollProperties.cs
- XmlDocumentSurrogate.cs
- XamlReaderHelper.cs
- CounterCreationData.cs
- SqlDataRecord.cs
- ValidationEventArgs.cs
- TextParagraph.cs
- CodeExpressionStatement.cs
- WriteTimeStream.cs
- SharedStream.cs
- StringReader.cs
- WrappedIUnknown.cs
- MultilineStringConverter.cs
- NGCSerializer.cs
- ButtonBase.cs
- VisualBasicReference.cs
- TreeNode.cs
- PropertyPathWorker.cs