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
- XamlValidatingReader.cs
- SQLBytes.cs
- HtmlPageAdapter.cs
- ClientTargetSection.cs
- DebugView.cs
- Byte.cs
- SchemaElementDecl.cs
- GetPageNumberCompletedEventArgs.cs
- Int16AnimationUsingKeyFrames.cs
- BindingOperations.cs
- Menu.cs
- FixedSOMPageConstructor.cs
- EntityObject.cs
- PageVisual.cs
- ThousandthOfEmRealDoubles.cs
- ScriptComponentDescriptor.cs
- AppDomainCompilerProxy.cs
- RewritingValidator.cs
- DirectoryInfo.cs
- ExpiredSecurityTokenException.cs
- PropertyEntry.cs
- PixelFormatConverter.cs
- Parser.cs
- VisualStyleElement.cs
- KeyedByTypeCollection.cs
- OuterGlowBitmapEffect.cs
- EventMappingSettings.cs
- SelectQueryOperator.cs
- MemoryRecordBuffer.cs
- PartialCachingControl.cs
- WebPartZoneBase.cs
- EmptyEnumerator.cs
- UserControl.cs
- RootProfilePropertySettingsCollection.cs
- XmlElementCollection.cs
- OleDbWrapper.cs
- DataGridViewCellCancelEventArgs.cs
- LoginView.cs
- DisplayMemberTemplateSelector.cs
- ImageSource.cs
- DataGrid.cs
- Int32CollectionConverter.cs
- ComponentManagerBroker.cs
- ExtensionSurface.cs
- WebPartVerb.cs
- linebase.cs
- CompositeActivityDesigner.cs
- CommandHelpers.cs
- ColorAnimation.cs
- AccessedThroughPropertyAttribute.cs
- CacheOutputQuery.cs
- AutomationProperty.cs
- MediaCommands.cs
- ImageIndexConverter.cs
- LiteralControl.cs
- SrgsGrammarCompiler.cs
- SamlDoNotCacheCondition.cs
- Set.cs
- EnlistmentTraceIdentifier.cs
- StorageTypeMapping.cs
- CodeBinaryOperatorExpression.cs
- GridViewSortEventArgs.cs
- CSharpCodeProvider.cs
- RepeaterItemCollection.cs
- x509store.cs
- WebPartMenuStyle.cs
- DataRecordInfo.cs
- DataGridDesigner.cs
- DEREncoding.cs
- DataExpression.cs
- PieceNameHelper.cs
- GridViewDesigner.cs
- SyndicationDeserializer.cs
- Button.cs
- UnknownWrapper.cs
- SystemColors.cs
- HttpCookiesSection.cs
- FlowPosition.cs
- ProfileBuildProvider.cs
- ApplicationProxyInternal.cs
- FormClosedEvent.cs
- TreeNodeStyleCollection.cs
- TextTrailingCharacterEllipsis.cs
- WinInetCache.cs
- AssemblyCache.cs
- PermissionSetTriple.cs
- DataGridParentRows.cs
- DesignerTransaction.cs
- KeyGestureValueSerializer.cs
- AbsoluteQuery.cs
- PtsCache.cs
- StyleModeStack.cs
- DefaultTypeArgumentAttribute.cs
- LineBreakRecord.cs
- TimelineGroup.cs
- ISFTagAndGuidCache.cs
- NativeActivityTransactionContext.cs
- TreeNodeCollection.cs
- WebConfigurationManager.cs
- WriteFileContext.cs