Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / 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
- DataListCommandEventArgs.cs
- AlphabetConverter.cs
- MarkupExtensionSerializer.cs
- OutputScopeManager.cs
- DetailsViewDeletedEventArgs.cs
- QuaternionAnimationUsingKeyFrames.cs
- WsdlBuildProvider.cs
- Material.cs
- EncoderNLS.cs
- DtdParser.cs
- AdPostCacheSubstitution.cs
- NativeCppClassAttribute.cs
- PropertyMappingExceptionEventArgs.cs
- SliderAutomationPeer.cs
- EntityAdapter.cs
- MembershipSection.cs
- ReferenceSchema.cs
- SerializationInfoEnumerator.cs
- ValidationPropertyAttribute.cs
- ScriptingJsonSerializationSection.cs
- GridViewSortEventArgs.cs
- Dynamic.cs
- IsolatedStoragePermission.cs
- ProtocolElementCollection.cs
- BamlTreeNode.cs
- ReadOnlyAttribute.cs
- EventSourceCreationData.cs
- SQLBytes.cs
- PropertyIDSet.cs
- Validator.cs
- ScalarConstant.cs
- WebPartAuthorizationEventArgs.cs
- CustomPopupPlacement.cs
- CodeTypeReference.cs
- Attributes.cs
- HWStack.cs
- ProfileService.cs
- DirectoryObjectSecurity.cs
- EventLogTraceListener.cs
- WindowsUserNameCachingSecurityTokenAuthenticator.cs
- BitmapEffectDrawing.cs
- WebPartTracker.cs
- QilDataSource.cs
- IpcChannelHelper.cs
- VoiceObjectToken.cs
- DataGridViewTextBoxColumn.cs
- Metafile.cs
- basemetadatamappingvisitor.cs
- SqlParameter.cs
- FtpWebRequest.cs
- DataTableNewRowEvent.cs
- SEHException.cs
- SQLInt32.cs
- SecuritySessionSecurityTokenAuthenticator.cs
- TextTreeTextElementNode.cs
- WorkflowTraceTransfer.cs
- RunInstallerAttribute.cs
- MessageQueueInstaller.cs
- DBSchemaTable.cs
- X509SecurityToken.cs
- Int32.cs
- AbandonedMutexException.cs
- EmptyStringExpandableObjectConverter.cs
- ScriptMethodAttribute.cs
- HWStack.cs
- GridViewDeletedEventArgs.cs
- InvalidProgramException.cs
- HostVisual.cs
- ConstructorBuilder.cs
- VBCodeProvider.cs
- TextDecorations.cs
- SendSecurityHeader.cs
- ListBindingHelper.cs
- Authorization.cs
- ConnectionPointGlyph.cs
- RepeaterCommandEventArgs.cs
- DigitShape.cs
- PointCollection.cs
- ObjectRef.cs
- BaseHashHelper.cs
- ResourceProviderFactory.cs
- WorkflowOperationBehavior.cs
- TextDecoration.cs
- PathTooLongException.cs
- Renderer.cs
- ProfileInfo.cs
- TextFormatterContext.cs
- ZipIORawDataFileBlock.cs
- CngUIPolicy.cs
- SqlUDTStorage.cs
- TextEditorSpelling.cs
- ActivityLocationReferenceEnvironment.cs
- Package.cs
- FileFormatException.cs
- OpenFileDialog.cs
- XmlNamedNodeMap.cs
- CombinedGeometry.cs
- CultureInfo.cs
- CompilerScope.Storage.cs
- WindowsListViewItemStartMenu.cs