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
- AsymmetricKeyExchangeDeformatter.cs
- SafeFileMappingHandle.cs
- CompiledQuery.cs
- BamlLocalizationDictionary.cs
- Utils.cs
- DNS.cs
- UIElementParaClient.cs
- DataServiceQueryContinuation.cs
- WebScriptServiceHostFactory.cs
- HttpContext.cs
- AppDomainCompilerProxy.cs
- RectangleGeometry.cs
- NullableConverter.cs
- LayoutTable.cs
- XmlSchemaNotation.cs
- LifetimeServices.cs
- Queue.cs
- RegexRunnerFactory.cs
- TextEffectCollection.cs
- ImplicitInputBrush.cs
- ChtmlMobileTextWriter.cs
- InternalControlCollection.cs
- PreservationFileReader.cs
- DesignerInterfaces.cs
- HttpCachePolicy.cs
- RepeatButtonAutomationPeer.cs
- EncryptedPackageFilter.cs
- SelectionChangedEventArgs.cs
- DesignerLabelAdapter.cs
- HijriCalendar.cs
- DataRecordInternal.cs
- SerialStream.cs
- SafeViewOfFileHandle.cs
- FileIOPermission.cs
- GenericEnumConverter.cs
- TdsValueSetter.cs
- Table.cs
- DataGridCheckBoxColumn.cs
- Thumb.cs
- WindowsSolidBrush.cs
- TypeToArgumentTypeConverter.cs
- HttpProfileGroupBase.cs
- WinFormsComponentEditor.cs
- FrameworkElement.cs
- BufferedGraphicsManager.cs
- validation.cs
- PathGeometry.cs
- OleDbCommand.cs
- DeviceContext2.cs
- QueryableFilterRepeater.cs
- LedgerEntry.cs
- Switch.cs
- XPathDocumentNavigator.cs
- WsrmFault.cs
- XmlNodeComparer.cs
- NamedPipeActivation.cs
- PanelStyle.cs
- ColorAnimation.cs
- ScheduleChanges.cs
- XmlFormatMapping.cs
- NamedPipeProcessProtocolHandler.cs
- HitTestParameters.cs
- BrowserTree.cs
- RuleSettingsCollection.cs
- RijndaelManagedTransform.cs
- ArcSegment.cs
- EntityCommandDefinition.cs
- cryptoapiTransform.cs
- SafeReadContext.cs
- ExpressionNode.cs
- securestring.cs
- SHA1Managed.cs
- ComboBoxItem.cs
- SafeRightsManagementHandle.cs
- Stylesheet.cs
- PropertyGridEditorPart.cs
- RSAOAEPKeyExchangeFormatter.cs
- XsltFunctions.cs
- SqlNodeAnnotation.cs
- StylusShape.cs
- Italic.cs
- WebPartZoneCollection.cs
- ActivitiesCollection.cs
- BindingContext.cs
- WebPartCloseVerb.cs
- XmlAnyAttributeAttribute.cs
- OleDbTransaction.cs
- ItemsPanelTemplate.cs
- TimeSpanMinutesOrInfiniteConverter.cs
- CollectionContainer.cs
- PriorityQueue.cs
- WebPartHelpVerb.cs
- ConstNode.cs
- _ConnectStream.cs
- MultiPageTextView.cs
- EventMappingSettingsCollection.cs
- ServiceModelSectionGroup.cs
- XamlVector3DCollectionSerializer.cs
- BamlLocalizationDictionary.cs
- CanonicalizationDriver.cs