Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu

This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- CultureTable.cs
- _SecureChannel.cs
- MasterPageParser.cs
- PrePrepareMethodAttribute.cs
- ComponentEvent.cs
- _AutoWebProxyScriptWrapper.cs
- ByeOperationCD1AsyncResult.cs
- SqlDataSourceQueryEditorForm.cs
- CrossSiteScriptingValidation.cs
- NumberFormatInfo.cs
- CodeBinaryOperatorExpression.cs
- CodeExporter.cs
- EdmSchemaError.cs
- XmlLanguageConverter.cs
- COM2Enum.cs
- Activator.cs
- MembershipPasswordException.cs
- QilXmlReader.cs
- PropertyGridView.cs
- BrowserDefinitionCollection.cs
- WebDescriptionAttribute.cs
- OrthographicCamera.cs
- SurrogateEncoder.cs
- SizeAnimationUsingKeyFrames.cs
- TabPage.cs
- TypeInitializationException.cs
- FontConverter.cs
- SqlRetyper.cs
- RIPEMD160.cs
- UnicodeEncoding.cs
- XamlTemplateSerializer.cs
- WebEventTraceProvider.cs
- RequestBringIntoViewEventArgs.cs
- CodeValidator.cs
- PropertyValueUIItem.cs
- UriTemplateTableMatchCandidate.cs
- DbgCompiler.cs
- SqlFunctions.cs
- DESCryptoServiceProvider.cs
- PathSegment.cs
- WindowsListView.cs
- RoutedEventHandlerInfo.cs
- TreeChangeInfo.cs
- ErrorTableItemStyle.cs
- SimpleApplicationHost.cs
- ConfigXmlElement.cs
- DetailsViewModeEventArgs.cs
- ValueProviderWrapper.cs
- basemetadatamappingvisitor.cs
- WebPartRestoreVerb.cs
- EmissiveMaterial.cs
- TrustLevelCollection.cs
- ActiveXHost.cs
- GenericArgumentsUpdater.cs
- MobileControlsSectionHelper.cs
- FontDialog.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- BitmapPalettes.cs
- TextWriterTraceListener.cs
- GetLedgerRequest.cs
- Fonts.cs
- DecoderFallbackWithFailureFlag.cs
- Int32CollectionValueSerializer.cs
- StorageTypeMapping.cs
- BinaryParser.cs
- SpellerError.cs
- DynamicActivityProperty.cs
- XmlDownloadManager.cs
- PeerToPeerException.cs
- Logging.cs
- ResumeStoryboard.cs
- ListViewContainer.cs
- DocumentViewerBase.cs
- WebPermission.cs
- SplashScreen.cs
- StreamAsIStream.cs
- ExpressionBuilder.cs
- PropertyMetadata.cs
- ClickablePoint.cs
- XmlUrlResolver.cs
- IntegerValidator.cs
- Rotation3DAnimation.cs
- FlowNode.cs
- SByteStorage.cs
- AttachedProperty.cs
- RoutedEventHandlerInfo.cs
- ContentHostHelper.cs
- OleDbErrorCollection.cs
- ContentDisposition.cs
- SpecialTypeDataContract.cs
- DCSafeHandle.cs
- DiagnosticsConfiguration.cs
- Debug.cs
- TimeSpanParse.cs
- Ray3DHitTestResult.cs
- SamlEvidence.cs
- KeyPressEvent.cs
- UnsafeNativeMethods.cs
- BaseCodeDomTreeGenerator.cs
- Tokenizer.cs