Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ResourceKey.cs / 1305600 / ResourceKey.cs
/****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. /****************************************************************************\ * * File: ResourceKey.cs * * Base class for various types of key objects to use in resource dictionaries. * * Copyright (C) 2005 by Microsoft Corporation. All rights reserved. * \***************************************************************************/ using System; using System.Reflection; using System.Windows.Markup; namespace System.Windows { ////// Abstract base class for various resource keys. /// Provides a common base for simple key detection in resource components. /// [MarkupExtensionReturnType(typeof(ResourceKey))] public abstract class ResourceKey : MarkupExtension { ////// Used to determine where to look for the resource dictionary that holds this resource. /// public abstract Assembly Assembly { get; } ////// Return this object. ResourceKeys are typically used as a key in a dictionary. /// public override object ProvideValue(IServiceProvider serviceProvider) { return this; } } } // 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
- HttpCapabilitiesSectionHandler.cs
- ConstraintCollection.cs
- MouseGesture.cs
- KeyValueConfigurationCollection.cs
- ToolZoneDesigner.cs
- ToolStripOverflow.cs
- PopupEventArgs.cs
- FontUnitConverter.cs
- ExtendedPropertyDescriptor.cs
- SocketElement.cs
- ThreadStaticAttribute.cs
- TextContainer.cs
- NotFiniteNumberException.cs
- RenderingBiasValidation.cs
- TraceHandler.cs
- OuterProxyWrapper.cs
- ConfigurationManagerHelperFactory.cs
- DateTimeOffset.cs
- Boolean.cs
- UIElementAutomationPeer.cs
- Visual3D.cs
- CodeConstructor.cs
- Line.cs
- RuleCache.cs
- CommandConverter.cs
- UIElement.cs
- ViewLoader.cs
- ShaperBuffers.cs
- DataGridColumnHeader.cs
- EntityTemplateUserControl.cs
- OutputScopeManager.cs
- StatusCommandUI.cs
- KeyBinding.cs
- UITypeEditors.cs
- DiscriminatorMap.cs
- SafeViewOfFileHandle.cs
- _ConnectOverlappedAsyncResult.cs
- MemberAssignmentAnalysis.cs
- BuilderPropertyEntry.cs
- LogEntry.cs
- CompilerTypeWithParams.cs
- HTMLTextWriter.cs
- PackagingUtilities.cs
- DuplicateWaitObjectException.cs
- NullRuntimeConfig.cs
- Container.cs
- XPathScanner.cs
- MimeXmlImporter.cs
- DataGridRelationshipRow.cs
- BlobPersonalizationState.cs
- TransformCollection.cs
- FormsAuthenticationEventArgs.cs
- AuthenticationException.cs
- DbConnectionStringBuilder.cs
- BitmapCodecInfo.cs
- NGCSerializer.cs
- HttpListenerResponse.cs
- TdsParserSessionPool.cs
- DatasetMethodGenerator.cs
- GraphicsPathIterator.cs
- EdmScalarPropertyAttribute.cs
- AuthenticationService.cs
- RegexTree.cs
- MetadataUtilsSmi.cs
- TouchesOverProperty.cs
- GroupBox.cs
- UnsafeNativeMethods.cs
- counter.cs
- ChtmlTextBoxAdapter.cs
- ImageBrush.cs
- DatagridviewDisplayedBandsData.cs
- _ListenerAsyncResult.cs
- AsymmetricSecurityProtocolFactory.cs
- ServiceTimeoutsElement.cs
- SerializableReadOnlyDictionary.cs
- DataGridViewImageColumn.cs
- SQLCharsStorage.cs
- SetStoryboardSpeedRatio.cs
- ThreadSafeList.cs
- ProgressBarAutomationPeer.cs
- Stacktrace.cs
- TreeViewCancelEvent.cs
- SizeChangedEventArgs.cs
- ListParaClient.cs
- SystemIPInterfaceProperties.cs
- BaseValidator.cs
- PageSetupDialog.cs
- StrongNamePublicKeyBlob.cs
- UInt64.cs
- Cursors.cs
- COM2EnumConverter.cs
- MessageHeaderT.cs
- SpeechUI.cs
- DSACryptoServiceProvider.cs
- DefaultPrintController.cs
- X509CertificateStore.cs
- CursorConverter.cs
- Message.cs
- CreateUserErrorEventArgs.cs
- TemplateKey.cs