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
- ConfigXmlSignificantWhitespace.cs
- Path.cs
- XNodeValidator.cs
- MatrixTransform3D.cs
- FormsAuthenticationModule.cs
- Vertex.cs
- PagesSection.cs
- DesignerDeviceConfig.cs
- Types.cs
- WebPartConnectionsCancelEventArgs.cs
- XmlSortKeyAccumulator.cs
- SqlTypeConverter.cs
- FilteredXmlReader.cs
- CheckBox.cs
- FormsAuthenticationConfiguration.cs
- WebPart.cs
- nulltextcontainer.cs
- UnionExpr.cs
- MarkupCompiler.cs
- WebResourceUtil.cs
- RegexWorker.cs
- Int16Animation.cs
- PauseStoryboard.cs
- Encoder.cs
- ToolboxItemLoader.cs
- OleDbConnectionFactory.cs
- EFAssociationProvider.cs
- PointAnimationUsingKeyFrames.cs
- ExtenderProviderService.cs
- WebPartMinimizeVerb.cs
- OleDbSchemaGuid.cs
- HMACSHA256.cs
- TemplateGroupCollection.cs
- ParamArrayAttribute.cs
- Compiler.cs
- MetafileHeaderEmf.cs
- _PooledStream.cs
- MetadataProperty.cs
- SelectionList.cs
- EntityContainerRelationshipSet.cs
- TimeSpanStorage.cs
- TextEncodedRawTextWriter.cs
- SimpleBitVector32.cs
- LayoutUtils.cs
- RsaSecurityTokenParameters.cs
- WebZone.cs
- RadioButton.cs
- TimeSpanSecondsOrInfiniteConverter.cs
- Table.cs
- Lease.cs
- PagerSettings.cs
- CheckBox.cs
- panel.cs
- DBDataPermissionAttribute.cs
- SqlDependencyListener.cs
- ExceptionHandlers.cs
- TabItemAutomationPeer.cs
- GridViewRowCollection.cs
- PipelineModuleStepContainer.cs
- WsdlWriter.cs
- NameValueCollection.cs
- DSASignatureDeformatter.cs
- Variant.cs
- Rect.cs
- FlowLayoutPanel.cs
- BaseTemplateParser.cs
- Operand.cs
- SymDocumentType.cs
- ProfileService.cs
- WhiteSpaceTrimStringConverter.cs
- Image.cs
- LogStore.cs
- LinqDataSourceSelectEventArgs.cs
- UnsafeNativeMethods.cs
- MethodImplAttribute.cs
- FixedHyperLink.cs
- App.cs
- WinEventTracker.cs
- CollectionViewGroupInternal.cs
- PrePrepareMethodAttribute.cs
- Visual.cs
- AnnotationResourceChangedEventArgs.cs
- InvalidPipelineStoreException.cs
- ParameterModifier.cs
- AdCreatedEventArgs.cs
- CompatibleIComparer.cs
- QueryIntervalOp.cs
- WindowsFormsHelpers.cs
- Model3DGroup.cs
- SymbolType.cs
- PassportAuthenticationModule.cs
- XmlSchemaRedefine.cs
- InkCanvasAutomationPeer.cs
- IgnoreDataMemberAttribute.cs
- DeploymentSection.cs
- SvcMapFile.cs
- ProcessModelInfo.cs
- Serializer.cs
- ContentType.cs
- Error.cs