Code:
/ Dotnetfx_Win7_3.5.1 / Dotnetfx_Win7_3.5.1 / 3.5.1 / DEVDIV / depot / DevDiv / releases / Orcas / NetFXw7 / wpf / src / 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.
//----------------------------------------------------------------------------
//
// 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
- _FtpDataStream.cs
- SamlAssertionDirectKeyIdentifierClause.cs
- GenericTransactionFlowAttribute.cs
- DesignerDataTable.cs
- VerificationException.cs
- TraceEventCache.cs
- PathStreamGeometryContext.cs
- SerializerDescriptor.cs
- MouseCaptureWithinProperty.cs
- ClientSponsor.cs
- _SslStream.cs
- RC2.cs
- PropertyGridEditorPart.cs
- SortedDictionary.cs
- SystemFonts.cs
- IgnoreFileBuildProvider.cs
- HttpWebRequestElement.cs
- SoundPlayer.cs
- PerformanceCounter.cs
- AnimationException.cs
- ProvidersHelper.cs
- SymmetricCryptoHandle.cs
- WebZone.cs
- CharAnimationBase.cs
- _HelperAsyncResults.cs
- OciHandle.cs
- LicenseException.cs
- LineProperties.cs
- EncoderReplacementFallback.cs
- FontFaceLayoutInfo.cs
- EncryptedHeader.cs
- ExpressionBuilderCollection.cs
- OutputCacheEntry.cs
- TextDecorationCollection.cs
- smtppermission.cs
- XmlAggregates.cs
- querybuilder.cs
- AuthenticationService.cs
- BufferedStream.cs
- RegisteredHiddenField.cs
- AnnotationComponentChooser.cs
- EncoderBestFitFallback.cs
- SByte.cs
- ItemAutomationPeer.cs
- EntityDataSourceDataSelectionPanel.cs
- ClientScriptManager.cs
- DBAsyncResult.cs
- CodeCompileUnit.cs
- SpecularMaterial.cs
- VectorAnimationUsingKeyFrames.cs
- ToolBarButton.cs
- UnauthorizedWebPart.cs
- InstanceData.cs
- UnsafeNativeMethods.cs
- VisualBrush.cs
- SqlWebEventProvider.cs
- ChildTable.cs
- XNodeNavigator.cs
- ColorContextHelper.cs
- DbException.cs
- RtfToXamlLexer.cs
- HashCodeCombiner.cs
- OptionalColumn.cs
- HttpResponseHeader.cs
- DebugTraceHelper.cs
- StylusPointProperty.cs
- ListViewAutomationPeer.cs
- ErrorLog.cs
- SchemaSetCompiler.cs
- KnownColorTable.cs
- TextChangedEventArgs.cs
- StyleCollectionEditor.cs
- CTreeGenerator.cs
- ComponentRenameEvent.cs
- AppDomainCompilerProxy.cs
- RemotingConfiguration.cs
- FilterQuery.cs
- Track.cs
- UseManagedPresentationBindingElement.cs
- BitStream.cs
- MULTI_QI.cs
- CroppedBitmap.cs
- PreviewPageInfo.cs
- DataContractSerializer.cs
- ObjectDataSource.cs
- RecipientServiceModelSecurityTokenRequirement.cs
- ZipIOCentralDirectoryDigitalSignature.cs
- DataGridViewCellStyleChangedEventArgs.cs
- XmlSchemaDocumentation.cs
- SignatureResourcePool.cs
- SimpleHandlerFactory.cs
- EditorPartCollection.cs
- ProcessThread.cs
- MenuItem.cs
- PeerName.cs
- FixedPageAutomationPeer.cs
- AnnotationResource.cs
- PerformanceCounterPermission.cs
- GridViewSelectEventArgs.cs
- BitmapCodecInfoInternal.cs