Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- BulletDecorator.cs
- QuadraticBezierSegment.cs
- TypeLibConverter.cs
- DataGridParentRows.cs
- XmlAggregates.cs
- Single.cs
- AsyncPostBackErrorEventArgs.cs
- ListBindableAttribute.cs
- LocatorPartList.cs
- JsonCollectionDataContract.cs
- WebBrowserNavigatingEventHandler.cs
- ClonableStack.cs
- ByteAnimationUsingKeyFrames.cs
- MetadataArtifactLoaderResource.cs
- CultureTableRecord.cs
- TextSegment.cs
- XPathCompiler.cs
- InvalidBodyAccessException.cs
- OpenFileDialog.cs
- ContractNamespaceAttribute.cs
- Deflater.cs
- SecurityCriticalDataForSet.cs
- ShapingEngine.cs
- Stackframe.cs
- DBCSCodePageEncoding.cs
- OracleBinary.cs
- _SafeNetHandles.cs
- ClassData.cs
- DiscoveryEndpoint.cs
- Vertex.cs
- MdImport.cs
- StoreItemCollection.cs
- GridSplitter.cs
- SqlPersonalizationProvider.cs
- CompilationLock.cs
- ShapingWorkspace.cs
- DatatypeImplementation.cs
- FormatSettings.cs
- CommonGetThemePartSize.cs
- DbConnectionHelper.cs
- DirectionalLight.cs
- SafeNativeMethods.cs
- CodeIdentifiers.cs
- XPathMultyIterator.cs
- MarkedHighlightComponent.cs
- CodeMethodInvokeExpression.cs
- CodeAttachEventStatement.cs
- FixedPage.cs
- StylusDownEventArgs.cs
- XNodeNavigator.cs
- WpfGeneratedKnownTypes.cs
- FrameworkContentElement.cs
- DrawingImage.cs
- GetImportFileNameRequest.cs
- SafeHGlobalHandleCritical.cs
- AlternateViewCollection.cs
- DataObjectAttribute.cs
- UnsupportedPolicyOptionsException.cs
- SubstitutionResponseElement.cs
- SQLGuid.cs
- DataRowComparer.cs
- DataShape.cs
- ValueTable.cs
- TextServicesLoader.cs
- MaterialCollection.cs
- UrlMappingsModule.cs
- FormViewModeEventArgs.cs
- SuppressMergeCheckAttribute.cs
- EntityDataSourceSelectingEventArgs.cs
- ObjectDataProvider.cs
- RadioButton.cs
- RtfToken.cs
- EntitySqlException.cs
- RequestReplyCorrelator.cs
- OpCodes.cs
- NamespaceList.cs
- TripleDESCryptoServiceProvider.cs
- ActivityValidationServices.cs
- WebZone.cs
- ExpressionBuilder.cs
- XmlDeclaration.cs
- FontFamilyConverter.cs
- XPathScanner.cs
- TimeSpan.cs
- StringDictionary.cs
- CodeTypeDeclaration.cs
- RepeaterCommandEventArgs.cs
- IFlowDocumentViewer.cs
- UrlMappingCollection.cs
- ResourceDescriptionAttribute.cs
- ClientScriptManagerWrapper.cs
- X509Certificate.cs
- ErrorBehavior.cs
- GifBitmapDecoder.cs
- PreservationFileWriter.cs
- TextElementCollection.cs
- SymbolEqualComparer.cs
- NavigationPropertyEmitter.cs
- PasswordRecovery.cs
- HttpRequestTraceRecord.cs