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
- PersonalizationState.cs
- GenericWebPart.cs
- ToolStripGrip.cs
- FormatterConverter.cs
- COSERVERINFO.cs
- SHA256.cs
- SspiHelper.cs
- BasicViewGenerator.cs
- ScriptManager.cs
- XmlHierarchicalDataSourceView.cs
- SizeFConverter.cs
- LoginDesignerUtil.cs
- BidPrivateBase.cs
- ToolStripMenuItem.cs
- LicFileLicenseProvider.cs
- Helpers.cs
- ConvertersCollection.cs
- WebControlAdapter.cs
- DependencyPropertyKind.cs
- GenericTextProperties.cs
- GAC.cs
- ToolStripSeparatorRenderEventArgs.cs
- TypeInfo.cs
- StorageInfo.cs
- SoapReflectionImporter.cs
- WebPartDisplayModeEventArgs.cs
- TabletDeviceInfo.cs
- TextInfo.cs
- SchemaType.cs
- MailSettingsSection.cs
- CodeNamespaceImport.cs
- ConnectionManager.cs
- StdValidatorsAndConverters.cs
- CompModSwitches.cs
- DateTimeSerializationSection.cs
- DSASignatureFormatter.cs
- BindingElementCollection.cs
- CalloutQueueItem.cs
- RuntimeWrappedException.cs
- ThrowOnMultipleAssignment.cs
- CompilerErrorCollection.cs
- MenuItem.cs
- SimpleWorkerRequest.cs
- TextRunCache.cs
- WebBrowserHelper.cs
- CultureTableRecord.cs
- TextTabProperties.cs
- ProcessModuleCollection.cs
- FixUp.cs
- ValidationError.cs
- ErrorProvider.cs
- RtfControlWordInfo.cs
- CodeArrayCreateExpression.cs
- MessageHeaders.cs
- NativeMethods.cs
- DocumentViewerHelper.cs
- OpCodes.cs
- DesignTimeParseData.cs
- EventHandlerService.cs
- LowerCaseStringConverter.cs
- WaitHandle.cs
- TextEvent.cs
- WebContentFormatHelper.cs
- RayHitTestParameters.cs
- EastAsianLunisolarCalendar.cs
- BitmapPalettes.cs
- DrawTreeNodeEventArgs.cs
- AllMembershipCondition.cs
- PersistenceTypeAttribute.cs
- JoinTreeNode.cs
- HttpCachePolicy.cs
- XamlReaderHelper.cs
- XmlCountingReader.cs
- Visual.cs
- BehaviorEditorPart.cs
- PrintDocument.cs
- Pair.cs
- ToolStripItemEventArgs.cs
- OdbcConnectionHandle.cs
- FlowDocumentReaderAutomationPeer.cs
- ZipIOEndOfCentralDirectoryBlock.cs
- BulletedListEventArgs.cs
- XmlLanguageConverter.cs
- ScriptManagerProxy.cs
- StylusSystemGestureEventArgs.cs
- DecryptedHeader.cs
- StreamWithDictionary.cs
- HelpInfo.cs
- DescendentsWalker.cs
- TextElementCollectionHelper.cs
- PartialTrustVisibleAssemblyCollection.cs
- Transform.cs
- TextSpanModifier.cs
- basenumberconverter.cs
- RegisteredDisposeScript.cs
- SqlClientWrapperSmiStream.cs
- GridViewSortEventArgs.cs
- WebEventCodes.cs
- ViewStateModeByIdAttribute.cs
- DataViewSetting.cs