Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- RequestCacheManager.cs
- FontWeight.cs
- ButtonAutomationPeer.cs
- DataGridViewDataErrorEventArgs.cs
- EntityViewGenerationAttribute.cs
- XmlILIndex.cs
- PeerObject.cs
- EntryPointNotFoundException.cs
- HttpFormatExtensions.cs
- ServiceHttpModule.cs
- TimeManager.cs
- CommandDesigner.cs
- XmlKeywords.cs
- ToolStripGripRenderEventArgs.cs
- OrderedDictionary.cs
- ActivityCodeDomSerializer.cs
- DataGridViewCell.cs
- StoreItemCollection.Loader.cs
- HttpFileCollection.cs
- TabItem.cs
- WebDisplayNameAttribute.cs
- EntityViewGenerationConstants.cs
- AutoResizedEvent.cs
- InfoCardMasterKey.cs
- PageThemeBuildProvider.cs
- ExceptionCollection.cs
- HttpResponseInternalWrapper.cs
- BamlBinaryReader.cs
- ClientSponsor.cs
- EDesignUtil.cs
- Message.cs
- DetailsViewPagerRow.cs
- ResourceWriter.cs
- CompoundFileStorageReference.cs
- XmlSchemaAnyAttribute.cs
- RegexCaptureCollection.cs
- Int32AnimationBase.cs
- PassportIdentity.cs
- XmlSchemaType.cs
- ThreadStaticAttribute.cs
- SortedList.cs
- HtmlEncodedRawTextWriter.cs
- ReadWriteSpinLock.cs
- CalendarTable.cs
- XmlSchemaDatatype.cs
- CqlParser.cs
- UTF8Encoding.cs
- ValueTable.cs
- FormViewInsertEventArgs.cs
- SizeValueSerializer.cs
- XamlParser.cs
- CommonDialog.cs
- DataGridViewButtonCell.cs
- FlowPosition.cs
- SynchronizationHandlesCodeDomSerializer.cs
- Configuration.cs
- InheritanceRules.cs
- QuaternionRotation3D.cs
- UrlMappingCollection.cs
- EntityViewGenerationConstants.cs
- CalendarDay.cs
- WebException.cs
- RemoteWebConfigurationHost.cs
- XmlSchemaAnyAttribute.cs
- ActivityStateQuery.cs
- Vector3DCollectionValueSerializer.cs
- LinkLabel.cs
- _ListenerResponseStream.cs
- SchemaManager.cs
- PathFigureCollectionConverter.cs
- BaseHashHelper.cs
- QilGenerator.cs
- ExitEventArgs.cs
- ADMembershipProvider.cs
- SqlMultiplexer.cs
- Convert.cs
- LongValidator.cs
- FunctionCommandText.cs
- WebPartZone.cs
- returneventsaver.cs
- loginstatus.cs
- Utils.cs
- _Events.cs
- EntryWrittenEventArgs.cs
- MasterPage.cs
- OrderPreservingMergeHelper.cs
- BamlLocalizerErrorNotifyEventArgs.cs
- PipeException.cs
- IERequestCache.cs
- BaseParser.cs
- JoinElimination.cs
- CreateUserErrorEventArgs.cs
- ListViewTableCell.cs
- WorkflowShape.cs
- RecognizerBase.cs
- SmtpCommands.cs
- ElementUtil.cs
- PolicyVersion.cs
- Animatable.cs
- MediaCommands.cs