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
- TableSectionStyle.cs
- AtomMaterializerLog.cs
- RotationValidation.cs
- UpdateDelegates.Generated.cs
- StretchValidation.cs
- DataTableClearEvent.cs
- StateFinalizationActivity.cs
- OleDbConnectionPoolGroupProviderInfo.cs
- Faults.cs
- DesignerDataView.cs
- ServiceHostFactory.cs
- ToolStripSplitButton.cs
- WindowsFormsLinkLabel.cs
- ObjectStateEntryBaseUpdatableDataRecord.cs
- _NegoState.cs
- MenuAutomationPeer.cs
- AnnotationDocumentPaginator.cs
- FileIOPermission.cs
- AssertSection.cs
- TdsParserSafeHandles.cs
- TabItemAutomationPeer.cs
- CreateParams.cs
- AnonymousIdentificationModule.cs
- CategoryGridEntry.cs
- TypeConvertions.cs
- BaseTreeIterator.cs
- TextEditorCharacters.cs
- ContextMenu.cs
- DefaultBindingPropertyAttribute.cs
- LicFileLicenseProvider.cs
- Serializer.cs
- CroppedBitmap.cs
- ListControl.cs
- BrushMappingModeValidation.cs
- XamlStream.cs
- HandlerWithFactory.cs
- MsmqBindingBase.cs
- PropertyKey.cs
- ExpressionBuilder.cs
- UpdateManifestForBrowserApplication.cs
- AutomationFocusChangedEventArgs.cs
- CallContext.cs
- SettingsPropertyCollection.cs
- ToolTipService.cs
- EnumerableRowCollectionExtensions.cs
- MenuBindingsEditor.cs
- MultipartContentParser.cs
- RectAnimation.cs
- ThreadPool.cs
- LocalizableResourceBuilder.cs
- WeakKeyDictionary.cs
- Serializer.cs
- SafeHandle.cs
- DiscoveryClientBindingElement.cs
- MenuScrollingVisibilityConverter.cs
- SapiRecoContext.cs
- linebase.cs
- HuffModule.cs
- PolyQuadraticBezierSegment.cs
- MetadataPropertyvalue.cs
- JsonFormatWriterGenerator.cs
- ElementMarkupObject.cs
- JobInputBins.cs
- WebPartCloseVerb.cs
- ZipIOCentralDirectoryBlock.cs
- RoleService.cs
- ObjectDataSourceSelectingEventArgs.cs
- NativeMethods.cs
- OdbcConnectionStringbuilder.cs
- AbsoluteQuery.cs
- StreamWithDictionary.cs
- RequiredAttributeAttribute.cs
- StateItem.cs
- ResourceWriter.cs
- TypeDescriptionProviderAttribute.cs
- HtmlCalendarAdapter.cs
- URLMembershipCondition.cs
- IRCollection.cs
- ParameterRetriever.cs
- EncryptedPackageFilter.cs
- FileNotFoundException.cs
- ServiceEndpointElement.cs
- OSFeature.cs
- HtmlLiteralTextAdapter.cs
- BindingExpressionUncommonField.cs
- ConfigDefinitionUpdates.cs
- UrlAuthFailedErrorFormatter.cs
- ScriptControlDescriptor.cs
- IgnoreDataMemberAttribute.cs
- SoapFaultCodes.cs
- OracleBFile.cs
- VoiceObjectToken.cs
- TypeElement.cs
- FocusWithinProperty.cs
- dsa.cs
- FunctionImportMapping.cs
- RegionData.cs
- ItemCheckEvent.cs
- SecuritySessionFilter.cs
- ScriptRef.cs