Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / Framework / System / Windows / ThemeInfoAttribute.cs / 1 / ThemeInfoAttribute.cs
//----------------------------------------------------------------------------
//
// Copyright (C) Microsoft Corporation. All rights reserved.
//
//---------------------------------------------------------------------------
using System;
using System.Windows;
using System.Reflection;
namespace System.Windows
{
///
/// Specifies where theme dictionaries are stored for types in an assembly.
///
[AttributeUsage(AttributeTargets.Assembly)]
public sealed class ThemeInfoAttribute : Attribute
{
///
/// Creates an attribute that defines theme dictionary locations for types in an assembly.
///
/// The location of theme specific resources.
/// The location of generic, not theme specific, resources.
public ThemeInfoAttribute(ResourceDictionaryLocation themeDictionaryLocation, ResourceDictionaryLocation genericDictionaryLocation)
{
_themeDictionaryLocation = themeDictionaryLocation;
_genericDictionaryLocation = genericDictionaryLocation;
}
///
/// The location of theme specific resources.
///
public ResourceDictionaryLocation ThemeDictionaryLocation
{
get
{
return _themeDictionaryLocation;
}
}
///
/// The location of generic, not theme specific, resources.
///
public ResourceDictionaryLocation GenericDictionaryLocation
{
get
{
return _genericDictionaryLocation;
}
}
internal static ThemeInfoAttribute FromAssembly(Assembly assembly)
{
return Attribute.GetCustomAttribute(assembly, typeof(ThemeInfoAttribute)) as ThemeInfoAttribute;
}
private ResourceDictionaryLocation _themeDictionaryLocation;
private ResourceDictionaryLocation _genericDictionaryLocation;
}
}
// 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
- UnsafeNativeMethodsCLR.cs
- SQLChars.cs
- Compiler.cs
- ListControl.cs
- EventRoute.cs
- DiscoveryRequestHandler.cs
- WebPartMenu.cs
- RichTextBox.cs
- NamespaceMapping.cs
- WindowsStatic.cs
- EntityDataSourceSelectingEventArgs.cs
- ParsedRoute.cs
- XmlSchemaCollection.cs
- TypeToken.cs
- SystemKeyConverter.cs
- RtfToXamlLexer.cs
- TextTrailingCharacterEllipsis.cs
- ButtonRenderer.cs
- ClientUrlResolverWrapper.cs
- ValueQuery.cs
- DefaultMemberAttribute.cs
- UniqueIdentifierService.cs
- DataGridCaption.cs
- PriorityQueue.cs
- SerializationInfoEnumerator.cs
- ListChangedEventArgs.cs
- Message.cs
- ToolStripButton.cs
- UndirectedGraph.cs
- StringDictionary.cs
- CompiledAction.cs
- StringUtil.cs
- WebBrowserNavigatedEventHandler.cs
- EdmConstants.cs
- ExtensibleClassFactory.cs
- TiffBitmapEncoder.cs
- PaperSource.cs
- XmlDataLoader.cs
- ToolStripPanelRenderEventArgs.cs
- BufferModesCollection.cs
- PolyQuadraticBezierSegment.cs
- ListViewHitTestInfo.cs
- XmlWhitespace.cs
- SystemResourceHost.cs
- OdbcEnvironmentHandle.cs
- ProcessInfo.cs
- XmlParserContext.cs
- TableCellAutomationPeer.cs
- HybridDictionary.cs
- GlyphRunDrawing.cs
- HotSpotCollection.cs
- WebPartUtil.cs
- Size.cs
- ResourceSetExpression.cs
- SchemaTypeEmitter.cs
- LayoutManager.cs
- ClonableStack.cs
- RelatedPropertyManager.cs
- FormViewPageEventArgs.cs
- VersionedStreamOwner.cs
- AdCreatedEventArgs.cs
- HttpConfigurationSystem.cs
- WindowsNonControl.cs
- MultiSelector.cs
- ToolStripContentPanelDesigner.cs
- QuaternionAnimation.cs
- XmlComment.cs
- InfoCardRSAPKCS1SignatureFormatter.cs
- GcHandle.cs
- ConstantExpression.cs
- HandleCollector.cs
- MissingMemberException.cs
- BrowserTree.cs
- PreviewPageInfo.cs
- SoapParser.cs
- BuiltInExpr.cs
- DesignerAttribute.cs
- Timer.cs
- SessionPageStatePersister.cs
- Renderer.cs
- TabRenderer.cs
- TransactionTraceIdentifier.cs
- DrawingGroup.cs
- AncillaryOps.cs
- CollectionChangeEventArgs.cs
- Win32Native.cs
- BridgeDataRecord.cs
- ColumnProvider.cs
- DbConnectionPoolIdentity.cs
- TableCell.cs
- XpsFixedPageReaderWriter.cs
- OdbcConnectionFactory.cs
- CodeEntryPointMethod.cs
- Matrix3D.cs
- TextEffectCollection.cs
- SqlMethods.cs
- RoleGroupCollection.cs
- RoleService.cs
- PropertyInfoSet.cs
- DeviceContext2.cs