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
- AbstractExpressions.cs
- SortFieldComparer.cs
- Normalization.cs
- PolicyException.cs
- RadioButtonStandardAdapter.cs
- ExpandableObjectConverter.cs
- ListItemCollection.cs
- AccessDataSourceDesigner.cs
- LicenseProviderAttribute.cs
- UseLicense.cs
- DataGridViewRowConverter.cs
- DataRelation.cs
- MappingException.cs
- AsymmetricSecurityProtocolFactory.cs
- HitTestResult.cs
- MemberDomainMap.cs
- EventRoute.cs
- BrowserCapabilitiesFactory.cs
- XmlDataProvider.cs
- GridViewCancelEditEventArgs.cs
- InputLanguageManager.cs
- TextEffect.cs
- AutomationElementCollection.cs
- SessionParameter.cs
- BufferedGraphicsManager.cs
- Model3D.cs
- SqlUserDefinedAggregateAttribute.cs
- JsonGlobals.cs
- HtmlControlPersistable.cs
- StringSorter.cs
- SerialStream.cs
- SqlFacetAttribute.cs
- IImplicitResourceProvider.cs
- HtmlElementErrorEventArgs.cs
- MessageSmuggler.cs
- BrowserTree.cs
- GridViewSelectEventArgs.cs
- ProcessMessagesAsyncResult.cs
- _OSSOCK.cs
- ToolStripDropTargetManager.cs
- IImplicitResourceProvider.cs
- Empty.cs
- EventEntry.cs
- XmlSchemaAnnotated.cs
- DocumentEventArgs.cs
- FileInfo.cs
- _NtlmClient.cs
- ProxyWebPartManager.cs
- DataGridViewColumnStateChangedEventArgs.cs
- FileChangesMonitor.cs
- PreDigestedSignedInfo.cs
- ClientRuntimeConfig.cs
- FactoryId.cs
- AddInController.cs
- HttpFileCollectionWrapper.cs
- DecoderFallback.cs
- BufferModesCollection.cs
- EncoderExceptionFallback.cs
- XamlFilter.cs
- WCFModelStrings.Designer.cs
- TimeoutConverter.cs
- basemetadatamappingvisitor.cs
- SQLConvert.cs
- Renderer.cs
- CustomUserNameSecurityTokenAuthenticator.cs
- CustomAttribute.cs
- XmlBinaryReader.cs
- CheckPair.cs
- SqlErrorCollection.cs
- DescendantOverDescendantQuery.cs
- PropertyEmitter.cs
- XmlText.cs
- ClientSession.cs
- GenericIdentity.cs
- StateChangeEvent.cs
- ProbeDuplex11AsyncResult.cs
- SupportingTokenParameters.cs
- Section.cs
- ResourcePool.cs
- RightsManagementEncryptionTransform.cs
- AccessDataSource.cs
- WinFormsComponentEditor.cs
- ClientTarget.cs
- ArrayList.cs
- Stacktrace.cs
- ToolStripComboBox.cs
- WebPartDisplayModeEventArgs.cs
- GatewayIPAddressInformationCollection.cs
- User.cs
- RowCache.cs
- Roles.cs
- MultiDataTrigger.cs
- WindowAutomationPeer.cs
- DefaultTraceListener.cs
- ExtentKey.cs
- VariableQuery.cs
- SqlProvider.cs
- EpmHelper.cs
- BreadCrumbTextConverter.cs
- ReadOnlyTernaryTree.cs