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
- ListItemParagraph.cs
- MetadataItemEmitter.cs
- FlowchartDesignerCommands.cs
- BoundField.cs
- TraceEventCache.cs
- NativeMethodsOther.cs
- TimeSpanConverter.cs
- ModuleElement.cs
- RegionData.cs
- XmlNodeList.cs
- ProcessDesigner.cs
- TableSectionStyle.cs
- WebPartVerb.cs
- PolyLineSegment.cs
- DirectoryNotFoundException.cs
- OuterGlowBitmapEffect.cs
- ResourceManager.cs
- CheckBoxFlatAdapter.cs
- ScrollBar.cs
- BooleanKeyFrameCollection.cs
- CreateInstanceBinder.cs
- VirtualizingPanel.cs
- DataObjectFieldAttribute.cs
- UnmanagedMemoryStream.cs
- counter.cs
- UserMapPath.cs
- Set.cs
- DataServiceClientException.cs
- ToolStripMenuItem.cs
- MatrixTransform.cs
- PackagingUtilities.cs
- DetailsViewModeEventArgs.cs
- PropertyToken.cs
- TypeBuilderInstantiation.cs
- DataSourceBooleanViewSchemaConverter.cs
- XdrBuilder.cs
- OracleTimeSpan.cs
- AlternateView.cs
- backend.cs
- ArraySet.cs
- ComponentCodeDomSerializer.cs
- SmiEventSink.cs
- SmiRecordBuffer.cs
- WSFederationHttpBindingElement.cs
- ResXBuildProvider.cs
- UnsafeNativeMethods.cs
- Formatter.cs
- FontFamilyIdentifier.cs
- ImageDrawing.cs
- XmlFormatReaderGenerator.cs
- ComContractElementCollection.cs
- Odbc32.cs
- SerialPort.cs
- ExpressionNormalizer.cs
- ActivityXRefConverter.cs
- ColorAnimation.cs
- LOSFormatter.cs
- ToolZone.cs
- AutoGeneratedFieldProperties.cs
- ConfigurationValues.cs
- ContractReference.cs
- TaskFactory.cs
- SystemIPv4InterfaceProperties.cs
- TraceUtils.cs
- AmbientLight.cs
- MarginCollapsingState.cs
- ErrorInfoXmlDocument.cs
- StringFunctions.cs
- MemberHolder.cs
- MonthChangedEventArgs.cs
- UIHelper.cs
- CheckBoxStandardAdapter.cs
- AutoResizedEvent.cs
- DataGridViewSelectedColumnCollection.cs
- NgenServicingAttributes.cs
- FormView.cs
- HttpWebResponse.cs
- securitycriticaldataClass.cs
- String.cs
- RequestCacheManager.cs
- NonSerializedAttribute.cs
- PtsHost.cs
- XmlSchemaFacet.cs
- FillErrorEventArgs.cs
- ClickablePoint.cs
- Documentation.cs
- XmlIncludeAttribute.cs
- FormattedText.cs
- BitmapEffectOutputConnector.cs
- ForceCopyBuildProvider.cs
- Axis.cs
- BindToObject.cs
- EnumMember.cs
- AuthenticationException.cs
- SizeF.cs
- SelectionProviderWrapper.cs
- DataGridViewTextBoxColumn.cs
- XsdDateTime.cs
- DataStreams.cs
- OperationAbortedException.cs