Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / wpf / src / Framework / System / Windows / ResourceKey.cs / 1 / 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
- EventManager.cs
- RouteParameter.cs
- XAMLParseException.cs
- MimeParameterWriter.cs
- SettingsProviderCollection.cs
- GuidTagList.cs
- DataRow.cs
- Bidi.cs
- BitmapCacheBrush.cs
- DefaultWorkflowTransactionService.cs
- AnnotationStore.cs
- SqlException.cs
- ExpressionValueEditor.cs
- TextEditorCharacters.cs
- TypeUnloadedException.cs
- MetadataCache.cs
- Renderer.cs
- ProcessHostMapPath.cs
- DataGridViewImageColumn.cs
- DoWorkEventArgs.cs
- PlatformCulture.cs
- BamlRecordHelper.cs
- Cursors.cs
- Selector.cs
- CustomErrorCollection.cs
- TypedRowGenerator.cs
- InputQueueChannelAcceptor.cs
- ReadContentAsBinaryHelper.cs
- GeneralTransform3DGroup.cs
- PrintDialogException.cs
- SafeRightsManagementPubHandle.cs
- NameValuePermission.cs
- HandleCollector.cs
- ClientUtils.cs
- SerialPort.cs
- TransactionState.cs
- Component.cs
- Helper.cs
- FieldCollectionEditor.cs
- SHA512.cs
- WpfKnownType.cs
- ConfigurationLocation.cs
- JsonQueryStringConverter.cs
- String.cs
- XsdSchemaFileEditor.cs
- ScrollViewer.cs
- BitmapImage.cs
- BitHelper.cs
- SecureUICommand.cs
- ContentType.cs
- ButtonBase.cs
- TypedAsyncResult.cs
- EntityTypeBase.cs
- InfoCardConstants.cs
- CustomTypeDescriptor.cs
- TextViewSelectionProcessor.cs
- CultureTableRecord.cs
- LedgerEntry.cs
- Int16KeyFrameCollection.cs
- Model3D.cs
- TemplatePropertyEntry.cs
- WmlCommandAdapter.cs
- Membership.cs
- ListDictionaryInternal.cs
- StateChangeEvent.cs
- ClosableStream.cs
- HttpValueCollection.cs
- Inflater.cs
- SecurityContext.cs
- HybridDictionary.cs
- ApplicationException.cs
- XmlEncoding.cs
- Bitmap.cs
- xml.cs
- CryptoHelper.cs
- PropertyTabChangedEvent.cs
- TagPrefixAttribute.cs
- PaginationProgressEventArgs.cs
- NestedContainer.cs
- Geometry.cs
- JapaneseCalendar.cs
- ContextStaticAttribute.cs
- Executor.cs
- ObjectPersistData.cs
- HttpStreamXmlDictionaryWriter.cs
- CounterCreationDataCollection.cs
- ConnectivityStatus.cs
- _ServiceNameStore.cs
- PngBitmapDecoder.cs
- CategoryGridEntry.cs
- PrintPreviewControl.cs
- StringFreezingAttribute.cs
- ControllableStoryboardAction.cs
- IndividualDeviceConfig.cs
- KeyInfo.cs
- DbModificationCommandTree.cs
- GatewayIPAddressInformationCollection.cs
- SystemNetHelpers.cs
- XsltQilFactory.cs
- PersonalizationEntry.cs