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
- SqlPersonalizationProvider.cs
- DataGridViewCellConverter.cs
- ButtonChrome.cs
- TableParagraph.cs
- BufferBuilder.cs
- RulePatternOps.cs
- NavigationExpr.cs
- StatusBarPanel.cs
- SecurityDocument.cs
- InputBinding.cs
- DataGridToolTip.cs
- QueryOutputWriter.cs
- WindowsServiceElement.cs
- ContainerParaClient.cs
- Stacktrace.cs
- ListSourceHelper.cs
- EnumMemberAttribute.cs
- TransactionCache.cs
- CollectionChangedEventManager.cs
- XmlTextWriter.cs
- AssemblyBuilder.cs
- IdentifierService.cs
- CompositeControl.cs
- SymLanguageType.cs
- UserControlParser.cs
- _Win32.cs
- FormCollection.cs
- ProfileGroupSettingsCollection.cs
- StringWriter.cs
- SQLRoleProvider.cs
- CacheHelper.cs
- TraceContextRecord.cs
- PrintPreviewDialog.cs
- Axis.cs
- Error.cs
- ImageFormatConverter.cs
- HttpPostedFile.cs
- DesignerEventService.cs
- MissingManifestResourceException.cs
- ObjectTokenCategory.cs
- AutomationIdentifier.cs
- BinaryObjectWriter.cs
- TypeExtensionConverter.cs
- ManifestSignatureInformation.cs
- WebException.cs
- ImageListUtils.cs
- ErrorCodes.cs
- FunctionMappingTranslator.cs
- WinFormsSpinner.cs
- WebConfigurationHostFileChange.cs
- SystemBrushes.cs
- LongTypeConverter.cs
- Listbox.cs
- JpegBitmapDecoder.cs
- CircleHotSpot.cs
- GACIdentityPermission.cs
- BorderGapMaskConverter.cs
- FontDialog.cs
- SelectionItemProviderWrapper.cs
- RotationValidation.cs
- PriorityQueue.cs
- GZipStream.cs
- ScaleTransform3D.cs
- ProfilePropertyMetadata.cs
- RequestQueue.cs
- Nullable.cs
- SiteMapNodeItemEventArgs.cs
- FactorySettingsElement.cs
- AnnotationObservableCollection.cs
- RegexMatchCollection.cs
- mediaclock.cs
- Schema.cs
- BamlResourceContent.cs
- OdbcUtils.cs
- EasingQuaternionKeyFrame.cs
- TableAutomationPeer.cs
- CompilerLocalReference.cs
- Calendar.cs
- SystemIPAddressInformation.cs
- PlainXmlWriter.cs
- StorageMappingFragment.cs
- PropertyExpression.cs
- WindowsPrincipal.cs
- ChtmlCommandAdapter.cs
- ToolStripGrip.cs
- XsdValidatingReader.cs
- SqlNotificationEventArgs.cs
- EnumConverter.cs
- RequestTimeoutManager.cs
- precedingquery.cs
- FilteredReadOnlyMetadataCollection.cs
- TextServicesContext.cs
- RuntimeHandles.cs
- FormatSettings.cs
- CodeSnippetCompileUnit.cs
- ConfigurationErrorsException.cs
- SecurityProtocolFactory.cs
- SchemaImporterExtension.cs
- UriExt.cs
- EventInfo.cs