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
- WebServiceMethodData.cs
- XmlSortKey.cs
- UnaryNode.cs
- ContainerVisual.cs
- OverlappedContext.cs
- EntityDescriptor.cs
- NullableConverter.cs
- GenericFlowSwitchHelper.cs
- Expr.cs
- MergeFilterQuery.cs
- CodeStatementCollection.cs
- Transform3DGroup.cs
- XPathSelectionIterator.cs
- TypedElement.cs
- WebEventCodes.cs
- DragAssistanceManager.cs
- CrossAppDomainChannel.cs
- Graph.cs
- SkewTransform.cs
- BitmapEffectInputData.cs
- ResourceDescriptionAttribute.cs
- CacheMemory.cs
- ChameleonKey.cs
- StrokeNodeOperations.cs
- BuilderInfo.cs
- NonVisualControlAttribute.cs
- PixelFormat.cs
- SecurityState.cs
- HttpsChannelFactory.cs
- Tablet.cs
- ValidationResult.cs
- Range.cs
- UpnEndpointIdentity.cs
- SelectionRange.cs
- BaseProcessProtocolHandler.cs
- XmlEntity.cs
- ObjectDataSourceMethodEditor.cs
- KeyedCollection.cs
- XpsPartBase.cs
- ListViewDeletedEventArgs.cs
- TCPListener.cs
- RestClientProxyHandler.cs
- AnimationLayer.cs
- SiteMapNodeItemEventArgs.cs
- PropertyEmitterBase.cs
- QueryExpr.cs
- RegexCode.cs
- AndCondition.cs
- MemberBinding.cs
- StringUtil.cs
- Menu.cs
- unsafenativemethodstextservices.cs
- AppModelKnownContentFactory.cs
- SafeReversePInvokeHandle.cs
- Expressions.cs
- GradientBrush.cs
- CryptoSession.cs
- MissingManifestResourceException.cs
- FindCriteria.cs
- MissingManifestResourceException.cs
- PermissionListSet.cs
- DataRowView.cs
- WebHttpSecurityElement.cs
- HtmlTableCellCollection.cs
- AuthorizationRuleCollection.cs
- PageCache.cs
- MappingMetadataHelper.cs
- HebrewCalendar.cs
- DashStyles.cs
- EventProvider.cs
- WebMessageBodyStyleHelper.cs
- SqlProviderServices.cs
- EnumDataContract.cs
- Dispatcher.cs
- TagPrefixInfo.cs
- SchemaMerger.cs
- DLinqColumnProvider.cs
- DataSourceSerializationException.cs
- ResXDataNode.cs
- StateInitialization.cs
- RowVisual.cs
- ServiceDurableInstanceContextProvider.cs
- DataSourceControl.cs
- GroupBox.cs
- BezierSegment.cs
- MobileUserControlDesigner.cs
- SamlAuthorityBinding.cs
- Enlistment.cs
- InvalidPrinterException.cs
- EndEvent.cs
- KeyEvent.cs
- SystemInformation.cs
- ClipboardData.cs
- PropertyMap.cs
- BitmapImage.cs
- SQLStringStorage.cs
- Inflater.cs
- ApplyImportsAction.cs
- ImageField.cs
- MessageBox.cs