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
- UserControlParser.cs
- FormViewPageEventArgs.cs
- safesecurityhelperavalon.cs
- FileUtil.cs
- CompoundFileStreamReference.cs
- SqlParameterizer.cs
- ReaderWriterLockSlim.cs
- WebPartZoneAutoFormat.cs
- Viewport3DVisual.cs
- NamespaceInfo.cs
- DataGridCommandEventArgs.cs
- DataListComponentEditor.cs
- WebPartEventArgs.cs
- XmlDictionaryWriter.cs
- PathFigureCollectionValueSerializer.cs
- TemplatePropertyEntry.cs
- XmlAttribute.cs
- HttpApplication.cs
- PermissionSetEnumerator.cs
- DirectoryLocalQuery.cs
- WinInetCache.cs
- RenderingBiasValidation.cs
- DocumentViewer.cs
- HijriCalendar.cs
- MachineKeyConverter.cs
- TableLayout.cs
- MergeFailedEvent.cs
- VirtualDirectoryMapping.cs
- ServiceNameElement.cs
- StringResourceManager.cs
- SmiEventSink_DeferedProcessing.cs
- DesignerUtils.cs
- MailWriter.cs
- DefaultSerializationProviderAttribute.cs
- WorkflowLayouts.cs
- CaseInsensitiveHashCodeProvider.cs
- ExtensionSurface.cs
- ISCIIEncoding.cs
- WindowPatternIdentifiers.cs
- HtmlGenericControl.cs
- DocumentXmlWriter.cs
- DataSet.cs
- PackageFilter.cs
- ScrollProperties.cs
- Double.cs
- EventPropertyMap.cs
- baseaxisquery.cs
- ICspAsymmetricAlgorithm.cs
- FontCacheUtil.cs
- CollectionViewGroup.cs
- Renderer.cs
- CacheRequest.cs
- RectangleF.cs
- DesignerToolboxInfo.cs
- Calendar.cs
- CodeMemberEvent.cs
- NegatedConstant.cs
- Annotation.cs
- WebPartCloseVerb.cs
- DiscoveryMessageSequence.cs
- ElementHostPropertyMap.cs
- IntPtr.cs
- NamedElement.cs
- BasicBrowserDialog.cs
- ProfileManager.cs
- StructuralCache.cs
- CodeObjectCreateExpression.cs
- OleDbConnectionInternal.cs
- DataControlCommands.cs
- TraceSection.cs
- SplashScreen.cs
- DataTablePropertyDescriptor.cs
- DataServiceClientException.cs
- Point4D.cs
- MessageAction.cs
- MenuItemStyleCollection.cs
- HtmlImage.cs
- UITypeEditor.cs
- ConstantSlot.cs
- SmtpDigestAuthenticationModule.cs
- ReachSerializer.cs
- TextParentUndoUnit.cs
- ImageSourceTypeConverter.cs
- TextEditorSpelling.cs
- JavascriptXmlWriterWrapper.cs
- HuffModule.cs
- Point3DValueSerializer.cs
- FileLoadException.cs
- BooleanConverter.cs
- XmlNamespaceDeclarationsAttribute.cs
- TypeSystem.cs
- IBuiltInEvidence.cs
- ExceptionHandlerDesigner.cs
- Mutex.cs
- mediapermission.cs
- RequestedSignatureDialog.cs
- OdbcReferenceCollection.cs
- NumberFormatter.cs
- HttpRequestCacheValidator.cs
- MulticastDelegate.cs