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
- HostProtectionException.cs
- SynchronizedMessageSource.cs
- WpfPayload.cs
- DocumentPageViewAutomationPeer.cs
- AxHost.cs
- RuntimeConfigurationRecord.cs
- FileDialogCustomPlace.cs
- DataBindingExpressionBuilder.cs
- DataRowCollection.cs
- Int32EqualityComparer.cs
- PopupControlService.cs
- BasicKeyConstraint.cs
- SecurityTokenProvider.cs
- CompositionTarget.cs
- EventListener.cs
- OutputCacheProfile.cs
- Vector3DAnimation.cs
- XamlSerializer.cs
- CookieProtection.cs
- DivideByZeroException.cs
- Message.cs
- ClickablePoint.cs
- ClassHandlersStore.cs
- FreeFormDesigner.cs
- RectangleGeometry.cs
- BindUriHelper.cs
- HttpCapabilitiesSectionHandler.cs
- XPathNavigatorKeyComparer.cs
- SafeNativeMethods.cs
- StringAnimationBase.cs
- MimeObjectFactory.cs
- XmlWellformedWriter.cs
- ProfileEventArgs.cs
- EventNotify.cs
- MouseOverProperty.cs
- VariableValue.cs
- ConfigurationFileMap.cs
- PropertyValueChangedEvent.cs
- SingleSelectRootGridEntry.cs
- RangeValidator.cs
- XamlReader.cs
- CatalogPart.cs
- EasingKeyFrames.cs
- SecurityContext.cs
- TreeViewEvent.cs
- ListSourceHelper.cs
- DirtyTextRange.cs
- Attributes.cs
- XPathNode.cs
- DEREncoding.cs
- DiscreteKeyFrames.cs
- ExeConfigurationFileMap.cs
- DSASignatureDeformatter.cs
- CaseInsensitiveHashCodeProvider.cs
- SemanticResolver.cs
- GroupBoxAutomationPeer.cs
- ScrollViewer.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- HelpKeywordAttribute.cs
- InstanceData.cs
- CellNormalizer.cs
- CollectionViewGroupInternal.cs
- QueryStringConverter.cs
- SchemaCompiler.cs
- SiteMapProvider.cs
- DataServiceException.cs
- FamilyTypeface.cs
- BaseCAMarshaler.cs
- UserControl.cs
- DropShadowBitmapEffect.cs
- XmlSchemaSimpleContentRestriction.cs
- PhonemeEventArgs.cs
- CodeCastExpression.cs
- OdbcError.cs
- FormsAuthentication.cs
- PerformanceCounterLib.cs
- ValidationException.cs
- VisualTreeUtils.cs
- TransformerInfoCollection.cs
- EntityContainerRelationshipSetEnd.cs
- UriTemplateClientFormatter.cs
- ScrollBarRenderer.cs
- DataRow.cs
- ListDictionaryInternal.cs
- ContentTypeSettingClientMessageFormatter.cs
- ConnectionManagementElement.cs
- DefaultConfirmation.cs
- CorrelationService.cs
- ArithmeticLiteral.cs
- Int64Animation.cs
- BezierSegment.cs
- NoClickablePointException.cs
- InvokerUtil.cs
- SerialErrors.cs
- HTMLTextWriter.cs
- BinHexEncoder.cs
- MaskDesignerDialog.cs
- WebPartMovingEventArgs.cs
- HwndSubclass.cs
- TextEditorLists.cs