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
- Environment.cs
- ContextMenu.cs
- RelationshipDetailsCollection.cs
- Polygon.cs
- TransferRequestHandler.cs
- LabelDesigner.cs
- ReliableDuplexSessionChannel.cs
- CustomCredentialPolicy.cs
- EndpointInstanceProvider.cs
- ValidatorUtils.cs
- DiagnosticStrings.cs
- ScriptResourceHandler.cs
- X500Name.cs
- TextCompositionEventArgs.cs
- PenContext.cs
- DataObjectPastingEventArgs.cs
- OverrideMode.cs
- AnimationClockResource.cs
- DataServices.cs
- SkipQueryOptionExpression.cs
- FamilyCollection.cs
- Icon.cs
- CodeSnippetExpression.cs
- FreezableCollection.cs
- SchemaImporter.cs
- ArgumentDirectionHelper.cs
- NameScopePropertyAttribute.cs
- DefaultMergeHelper.cs
- XmlExpressionDumper.cs
- RemoteWebConfigurationHost.cs
- RawStylusSystemGestureInputReport.cs
- RpcResponse.cs
- XPathNodeIterator.cs
- TemplateXamlParser.cs
- FontFaceLayoutInfo.cs
- AspNetHostingPermission.cs
- XmlSchemas.cs
- EntityTypeEmitter.cs
- DetailsViewModeEventArgs.cs
- COAUTHINFO.cs
- ArgIterator.cs
- MissingFieldException.cs
- LambdaCompiler.Logical.cs
- PropertyEmitterBase.cs
- EUCJPEncoding.cs
- TraceContextRecord.cs
- MarkupProperty.cs
- AffineTransform3D.cs
- StylusCaptureWithinProperty.cs
- BooleanAnimationBase.cs
- SQLInt32.cs
- SessionState.cs
- StatusBarAutomationPeer.cs
- EventWaitHandleSecurity.cs
- HttpHandlerAction.cs
- Point3D.cs
- Drawing.cs
- ScrollPatternIdentifiers.cs
- storepermissionattribute.cs
- Single.cs
- MutexSecurity.cs
- AppDomainCompilerProxy.cs
- TextTreeTextNode.cs
- InvokeHandlers.cs
- SharedConnectionInfo.cs
- QueryMath.cs
- BitmapEffectDrawing.cs
- StackBuilderSink.cs
- DependencyPropertyKind.cs
- KeyValueInternalCollection.cs
- StatusBarItem.cs
- CalendarDay.cs
- MergeFilterQuery.cs
- TableNameAttribute.cs
- QueryableDataSource.cs
- DbConnectionClosed.cs
- DocumentXmlWriter.cs
- SafeNativeMethods.cs
- Rotation3DKeyFrameCollection.cs
- DataKeyArray.cs
- input.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- DataGridCaption.cs
- VirtualDirectoryMapping.cs
- NavigationWindowAutomationPeer.cs
- WebPartPersonalization.cs
- TrackingMemoryStream.cs
- ColumnWidthChangedEvent.cs
- RSAOAEPKeyExchangeFormatter.cs
- DataFieldConverter.cs
- Transform.cs
- AttributeInfo.cs
- ConditionalDesigner.cs
- SerializationInfo.cs
- Permission.cs
- SchemaDeclBase.cs
- TraceHandlerErrorFormatter.cs
- ProgressChangedEventArgs.cs
- UserUseLicenseDictionaryLoader.cs
- DefinitionBase.cs