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
- QilTargetType.cs
- RecordBuilder.cs
- Brushes.cs
- CryptoApi.cs
- GregorianCalendarHelper.cs
- ConnectionString.cs
- Char.cs
- CacheSection.cs
- ManagementClass.cs
- BaseValidator.cs
- SQLDateTime.cs
- ValueType.cs
- TransactionChannel.cs
- PersonalizationProviderCollection.cs
- BindingValueChangedEventArgs.cs
- MimeParameters.cs
- LinearKeyFrames.cs
- TrackPointCollection.cs
- TypePropertyEditor.cs
- IsolatedStoragePermission.cs
- URLString.cs
- LifetimeServices.cs
- Random.cs
- EntityUtil.cs
- EntityException.cs
- ChangesetResponse.cs
- DataContractSerializerSection.cs
- ContractNamespaceAttribute.cs
- parserscommon.cs
- SoapAttributeOverrides.cs
- XmlSchemaAttribute.cs
- ProcessRequestArgs.cs
- GZipUtils.cs
- SqlBulkCopy.cs
- EntityViewGenerationAttribute.cs
- CompositeDispatchFormatter.cs
- Typography.cs
- TdsParserStaticMethods.cs
- PassportPrincipal.cs
- SQLDouble.cs
- SQLDouble.cs
- EntryPointNotFoundException.cs
- EntityCommand.cs
- IndependentAnimationStorage.cs
- _ConnectionGroup.cs
- DefaultShape.cs
- Documentation.cs
- MouseButton.cs
- SafeSecurityHandles.cs
- ActivityInterfaces.cs
- WeakReferenceEnumerator.cs
- HwndHost.cs
- CodeGenHelper.cs
- LoginCancelEventArgs.cs
- Calendar.cs
- LoginStatusDesigner.cs
- MenuAdapter.cs
- EntryIndex.cs
- SafeFileMappingHandle.cs
- DurationConverter.cs
- SafeHandles.cs
- TextSchema.cs
- PropertyTabAttribute.cs
- PrivateFontCollection.cs
- ellipse.cs
- UIElement3DAutomationPeer.cs
- HierarchicalDataTemplate.cs
- FunctionQuery.cs
- CommandField.cs
- AnnotationComponentManager.cs
- EditCommandColumn.cs
- CompilerTypeWithParams.cs
- PageStatePersister.cs
- ImageInfo.cs
- CacheRequest.cs
- MethodCallTranslator.cs
- NetworkInterface.cs
- StrongTypingException.cs
- DataIdProcessor.cs
- SchemaHelper.cs
- Separator.cs
- ZoneMembershipCondition.cs
- Brush.cs
- ImageIndexConverter.cs
- RawKeyboardInputReport.cs
- DynamicPropertyHolder.cs
- SqlHelper.cs
- X509CertificateCollection.cs
- Vector3DAnimationBase.cs
- ValidationHelper.cs
- ReflectTypeDescriptionProvider.cs
- MatrixAnimationUsingKeyFrames.cs
- HtmlMeta.cs
- SmtpFailedRecipientsException.cs
- DBSqlParserColumnCollection.cs
- VBIdentifierTrimConverter.cs
- ClientBuildManager.cs
- FastPropertyAccessor.cs
- EntityDataSourceSelectingEventArgs.cs
- smtpconnection.cs