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
- ManualResetEventSlim.cs
- DocumentPageViewAutomationPeer.cs
- Verify.cs
- ListArgumentProvider.cs
- SortFieldComparer.cs
- basemetadatamappingvisitor.cs
- PeerOutputChannel.cs
- CompilerTypeWithParams.cs
- ResXFileRef.cs
- DbConnectionOptions.cs
- EventLogPermission.cs
- ExtendedPropertyCollection.cs
- ToolStripRenderEventArgs.cs
- DynamicRendererThreadManager.cs
- NativeMethods.cs
- TailPinnedEventArgs.cs
- CommonObjectSecurity.cs
- DataGridViewLinkColumn.cs
- _TLSstream.cs
- AbsoluteQuery.cs
- NegotiationTokenAuthenticatorState.cs
- TryExpression.cs
- DbConnectionHelper.cs
- HttpCachePolicy.cs
- ChildrenQuery.cs
- PingReply.cs
- StandardBindingReliableSessionElement.cs
- ThemeDictionaryExtension.cs
- RowUpdatedEventArgs.cs
- HttpModuleActionCollection.cs
- ExpressionWriter.cs
- TraceListeners.cs
- DataViewManager.cs
- StringDictionary.cs
- PropertyGeneratedEventArgs.cs
- WindowPattern.cs
- WebPartZoneCollection.cs
- EasingKeyFrames.cs
- ButtonBaseDesigner.cs
- TabPanel.cs
- TabControlEvent.cs
- baseaxisquery.cs
- BindToObject.cs
- DbProviderSpecificTypePropertyAttribute.cs
- SelectionListComponentEditor.cs
- XmlKeywords.cs
- EntityViewGenerationAttribute.cs
- InvokeWebService.cs
- ListViewItem.cs
- SchemaImporterExtension.cs
- SubqueryRules.cs
- PhysicalFontFamily.cs
- odbcmetadatacolumnnames.cs
- StateRuntime.cs
- WebZone.cs
- HttpConfigurationContext.cs
- ParameterReplacerVisitor.cs
- GeometryValueSerializer.cs
- TextMarkerSource.cs
- CodeDefaultValueExpression.cs
- MemberDescriptor.cs
- ExpressionEvaluator.cs
- ListBoxItem.cs
- ModuleBuilder.cs
- UInt16.cs
- CustomCredentialPolicy.cs
- DataServiceRequest.cs
- EncryptedKeyHashIdentifierClause.cs
- DesignerSerializerAttribute.cs
- DoubleConverter.cs
- CancelEventArgs.cs
- HostSecurityManager.cs
- PixelFormat.cs
- EntityDataSourceWrapperPropertyDescriptor.cs
- IPAddressCollection.cs
- SqlBulkCopy.cs
- DataExpression.cs
- TreeChangeInfo.cs
- RectangleConverter.cs
- mediapermission.cs
- MdbDataFileEditor.cs
- PaintEvent.cs
- LinqDataSourceInsertEventArgs.cs
- OnOperation.cs
- ItemCollection.cs
- SqlConnectionHelper.cs
- LineSegment.cs
- CommonGetThemePartSize.cs
- QilName.cs
- CompositeFontParser.cs
- RenderData.cs
- LineServicesCallbacks.cs
- LinqToSqlWrapper.cs
- LineServices.cs
- DebugController.cs
- CompiledRegexRunnerFactory.cs
- Single.cs
- SiteMapSection.cs
- ObservableCollection.cs
- TypeLoadException.cs