Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / Framework / System / Windows / Markup / NullExtension.cs / 1 / NullExtension.cs
/****************************************************************************\ * * File: NullExtension.cs * * Class for Xaml markup extension {Null} * * Copyright (C) 2004 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Windows; namespace System.Windows.Markup { ////// Class for Xaml markup extension for Null. /// [MarkupExtensionReturnType(typeof(object))] public class NullExtension : MarkupExtension { ////// Default constructor /// public NullExtension() { } ////// Return an object that should be set on the targetObject's targetProperty /// for this markup extension. In this case it is simply null. /// /// Object that can provide services for the markup extension. ////// The object to set on this property. /// public override object ProvideValue(IServiceProvider serviceProvider) { return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: NullExtension.cs * * Class for Xaml markup extension {Null} * * Copyright (C) 2004 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Windows; namespace System.Windows.Markup { ////// Class for Xaml markup extension for Null. /// [MarkupExtensionReturnType(typeof(object))] public class NullExtension : MarkupExtension { ////// Default constructor /// public NullExtension() { } ////// Return an object that should be set on the targetObject's targetProperty /// for this markup extension. In this case it is simply null. /// /// Object that can provide services for the markup extension. ////// The object to set on this property. /// public override object ProvideValue(IServiceProvider serviceProvider) { return null; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- SpStreamWrapper.cs
- Metafile.cs
- Assembly.cs
- WorkItem.cs
- PipeStream.cs
- RepeaterItemEventArgs.cs
- WorkflowServiceOperationListItem.cs
- ExtentCqlBlock.cs
- ProtocolsConfigurationEntry.cs
- OletxVolatileEnlistment.cs
- OpenFileDialog.cs
- DoubleCollectionConverter.cs
- HttpListenerException.cs
- DataGridViewHitTestInfo.cs
- TextBoxBase.cs
- DefaultValueTypeConverter.cs
- HttpCookieCollection.cs
- MetaTable.cs
- ExclusiveTcpListener.cs
- DynamicFilterExpression.cs
- TreeViewCancelEvent.cs
- TextSchema.cs
- ProxyManager.cs
- QueryReaderSettings.cs
- KeyValueConfigurationElement.cs
- IdentitySection.cs
- UpdateCommand.cs
- EntityDataSourceDesigner.cs
- TextEndOfLine.cs
- MessageLoggingFilterTraceRecord.cs
- ConfigXmlComment.cs
- ObjectView.cs
- TextAction.cs
- ProjectionCamera.cs
- IISUnsafeMethods.cs
- JavaScriptSerializer.cs
- StringAnimationUsingKeyFrames.cs
- TextSegment.cs
- CallSiteBinder.cs
- XPathParser.cs
- XmlReflectionMember.cs
- LicenseManager.cs
- safePerfProviderHandle.cs
- Int16Converter.cs
- KeyManager.cs
- OutputCacheSettings.cs
- IDataContractSurrogate.cs
- PageCatalogPart.cs
- FrameworkContentElementAutomationPeer.cs
- ControlParameter.cs
- SiteMapNodeItem.cs
- State.cs
- Or.cs
- DataSvcMapFileSerializer.cs
- BufferedStream.cs
- RefreshPropertiesAttribute.cs
- TextAdaptor.cs
- AggregateNode.cs
- SlotInfo.cs
- CompiledELinqQueryState.cs
- FontCollection.cs
- SchemaTypeEmitter.cs
- CalendarDay.cs
- FlatButtonAppearance.cs
- TcpHostedTransportConfiguration.cs
- HttpRuntime.cs
- ZipIOModeEnforcingStream.cs
- PointCollection.cs
- XsdBuildProvider.cs
- DataMemberConverter.cs
- DuplicateWaitObjectException.cs
- MethodImplAttribute.cs
- PKCS1MaskGenerationMethod.cs
- ProfileEventArgs.cs
- WebPartZone.cs
- ConfigurationStrings.cs
- InvalidateEvent.cs
- OpenFileDialog.cs
- StructuredProperty.cs
- CheckBoxList.cs
- EncoderFallback.cs
- ConfigurationManagerHelper.cs
- ContainerAction.cs
- StringOutput.cs
- PeerNode.cs
- EntityCommandDefinition.cs
- CodeValidator.cs
- LinkButton.cs
- UnionCodeGroup.cs
- ContentFilePart.cs
- TextSchema.cs
- ZoneIdentityPermission.cs
- DataGridViewHeaderCell.cs
- BaseResourcesBuildProvider.cs
- ConfigurationStrings.cs
- JoinTreeNode.cs
- InstalledFontCollection.cs
- TypedElement.cs
- WorkflowApplicationEventArgs.cs
- RequiredAttributeAttribute.cs