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
- SoapDocumentServiceAttribute.cs
- ByteStreamMessageEncodingElement.cs
- MachinePropertyVariants.cs
- ObjectStateFormatter.cs
- PersonalizationProviderCollection.cs
- ToolBarPanel.cs
- Model3DGroup.cs
- MemberRelationshipService.cs
- Util.cs
- LocalizeDesigner.cs
- ControlCollection.cs
- Missing.cs
- AdjustableArrowCap.cs
- BufferedGraphicsContext.cs
- UriTemplateLiteralPathSegment.cs
- DataGridHelper.cs
- CleanUpVirtualizedItemEventArgs.cs
- DataSourceXmlTextReader.cs
- Bold.cs
- SiteMapProvider.cs
- RijndaelManagedTransform.cs
- ExceptionUtil.cs
- BindingExpressionUncommonField.cs
- ConversionContext.cs
- ActiveXContainer.cs
- CallSiteOps.cs
- ReaderContextStackData.cs
- CompiledRegexRunnerFactory.cs
- RegistrationServices.cs
- controlskin.cs
- DbModificationClause.cs
- ProfileEventArgs.cs
- DependencyPropertyHelper.cs
- Geometry3D.cs
- TransformerConfigurationWizardBase.cs
- Vector3DCollectionConverter.cs
- ConnectionManagementElement.cs
- DbExpressionBuilder.cs
- RuntimeHelpers.cs
- BridgeDataRecord.cs
- CommonDialog.cs
- DatatypeImplementation.cs
- WSTrust.cs
- HttpApplicationFactory.cs
- PositiveTimeSpanValidatorAttribute.cs
- PackWebResponse.cs
- AddInSegmentDirectoryNotFoundException.cs
- TypeReference.cs
- FieldAccessException.cs
- EventItfInfo.cs
- BuildResultCache.cs
- HierarchicalDataTemplate.cs
- TransactionFlowElement.cs
- ProviderCollection.cs
- brushes.cs
- MetricEntry.cs
- TcpTransportSecurity.cs
- TabPageDesigner.cs
- ColumnHeaderConverter.cs
- DataTemplateSelector.cs
- DataGridRowAutomationPeer.cs
- TaskExceptionHolder.cs
- XmlEntityReference.cs
- EditingMode.cs
- Serializer.cs
- BrowserCapabilitiesFactory.cs
- MouseButtonEventArgs.cs
- Utils.cs
- PerformanceCounterManager.cs
- Accessors.cs
- Process.cs
- DesignTimeValidationFeature.cs
- log.cs
- ReflectionHelper.cs
- DataGridDesigner.cs
- PersonalizationStateQuery.cs
- SerializerDescriptor.cs
- Event.cs
- NonVisualControlAttribute.cs
- DbParameterCollection.cs
- PassportAuthentication.cs
- DbModificationClause.cs
- Transform.cs
- RadioButtonAutomationPeer.cs
- BoolLiteral.cs
- SqlMetaData.cs
- TimeStampChecker.cs
- CalendarAutoFormatDialog.cs
- InvalidFilterCriteriaException.cs
- SqlDataSourceCache.cs
- FormsIdentity.cs
- DataGridRowDetailsEventArgs.cs
- PreparingEnlistment.cs
- CompilerGlobalScopeAttribute.cs
- HttpContextBase.cs
- EventItfInfo.cs
- Material.cs
- EventHandlersStore.cs
- UnsafeNativeMethods.cs
- EntityCommandCompilationException.cs