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
- EventBuilder.cs
- propertytag.cs
- Rect.cs
- HttpRequest.cs
- IODescriptionAttribute.cs
- TypeHelpers.cs
- ResourceManager.cs
- DecoderFallback.cs
- WmlSelectionListAdapter.cs
- RSAOAEPKeyExchangeFormatter.cs
- UIntPtr.cs
- AppDomainFactory.cs
- MenuItemBindingCollection.cs
- Vector3DCollection.cs
- TypeExtension.cs
- HtmlInputRadioButton.cs
- RepeatInfo.cs
- ScriptingJsonSerializationSection.cs
- util.cs
- DesignerAttributeInfo.cs
- ToolboxComponentsCreatingEventArgs.cs
- SimpleHandlerBuildProvider.cs
- ListViewDesigner.cs
- WebWorkflowRole.cs
- DataPagerFieldCommandEventArgs.cs
- ZipIOCentralDirectoryFileHeader.cs
- CommonProperties.cs
- EncoderFallback.cs
- CollectionEditor.cs
- ValueTypeFixupInfo.cs
- DataGridColumnHeaderAutomationPeer.cs
- CodePrimitiveExpression.cs
- ScaleTransform.cs
- PropertyDescriptorComparer.cs
- Inline.cs
- TransformProviderWrapper.cs
- cache.cs
- Int16AnimationUsingKeyFrames.cs
- ManagedWndProcTracker.cs
- ScrollProperties.cs
- Animatable.cs
- ArrowControl.xaml.cs
- XmlSchemaSimpleTypeUnion.cs
- ProviderMetadata.cs
- Context.cs
- SocketSettings.cs
- VisualTreeHelper.cs
- PropertyGeneratedEventArgs.cs
- RtfControlWordInfo.cs
- ShaderRenderModeValidation.cs
- SmiRecordBuffer.cs
- _ReceiveMessageOverlappedAsyncResult.cs
- DesignerGenericWebPart.cs
- IDispatchConstantAttribute.cs
- MexHttpsBindingElement.cs
- Switch.cs
- HtmlInputText.cs
- InstanceData.cs
- ComboBoxItem.cs
- BitHelper.cs
- XamlParser.cs
- BamlReader.cs
- Util.cs
- OracleInternalConnection.cs
- Simplifier.cs
- EllipseGeometry.cs
- PlanCompilerUtil.cs
- ProcessHostServerConfig.cs
- PhoneCall.cs
- CharKeyFrameCollection.cs
- CanonicalFontFamilyReference.cs
- XmlQueryRuntime.cs
- SyndicationSerializer.cs
- ComponentEvent.cs
- DeclarativeConditionsCollection.cs
- DomNameTable.cs
- ProcessMonitor.cs
- WebPartEditVerb.cs
- Form.cs
- HybridWebProxyFinder.cs
- PropertyDescriptorComparer.cs
- oledbmetadatacolumnnames.cs
- RoutingUtilities.cs
- XmlBindingWorker.cs
- TreeViewHitTestInfo.cs
- DecoderBestFitFallback.cs
- XsltQilFactory.cs
- InkPresenter.cs
- FileEnumerator.cs
- UIElementParagraph.cs
- XslCompiledTransform.cs
- InputMethod.cs
- RootProjectionNode.cs
- BaseCodeDomTreeGenerator.cs
- DataGridViewDataConnection.cs
- ExecutionContext.cs
- Native.cs
- SQLDecimalStorage.cs
- PageRequestManager.cs
- PolicyException.cs