Code:
/ Net / Net / 3.5.50727.3053 / DEVDIV / depot / DevDiv / releases / Orcas / SP / 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
- SoapIgnoreAttribute.cs
- Deserializer.cs
- IISMapPath.cs
- TerminatorSinks.cs
- MouseGestureValueSerializer.cs
- GridViewRowEventArgs.cs
- TileModeValidation.cs
- TabRenderer.cs
- XomlDesignerLoader.cs
- HttpSocketManager.cs
- Identity.cs
- StackBuilderSink.cs
- Expressions.cs
- DateTimeSerializationSection.cs
- BrowserCapabilitiesFactoryBase.cs
- SelectionItemPattern.cs
- XmlSerializerVersionAttribute.cs
- BordersPage.cs
- NullableIntMinMaxAggregationOperator.cs
- addressfiltermode.cs
- TextTabProperties.cs
- CollectionContainer.cs
- TextServicesCompartment.cs
- StrokeDescriptor.cs
- HostExecutionContextManager.cs
- SecurityChannelListener.cs
- DesignerAutoFormat.cs
- updatecommandorderer.cs
- PersonalizationStateQuery.cs
- SequentialOutput.cs
- StylusOverProperty.cs
- UserControl.cs
- SynchronizingStream.cs
- ObjectTag.cs
- QueryPageSettingsEventArgs.cs
- TextTreeExtractElementUndoUnit.cs
- StringToken.cs
- InheritanceUI.cs
- ActivityTrace.cs
- ComponentSerializationService.cs
- hresults.cs
- QuaternionConverter.cs
- KnownBoxes.cs
- ViewLoader.cs
- DataProtectionSecurityStateEncoder.cs
- SafeCryptHandles.cs
- CustomAssemblyResolver.cs
- SqlDataSourceCache.cs
- TextElementEnumerator.cs
- DataRowExtensions.cs
- DataGridViewSelectedCellCollection.cs
- SchemaHelper.cs
- FontCacheUtil.cs
- NewExpression.cs
- BindToObject.cs
- Type.cs
- CodeSubDirectory.cs
- ZipIORawDataFileBlock.cs
- CheckBoxFlatAdapter.cs
- CheckBoxList.cs
- FixedSOMSemanticBox.cs
- WmlCommandAdapter.cs
- ApplicationTrust.cs
- XmlSchemaGroupRef.cs
- NameValuePermission.cs
- Solver.cs
- FileInfo.cs
- InternalTypeHelper.cs
- XmlIlVisitor.cs
- EncodingNLS.cs
- MetadataUtilsSmi.cs
- SmtpSpecifiedPickupDirectoryElement.cs
- NativeMethods.cs
- AppendHelper.cs
- Line.cs
- Serializer.cs
- HttpApplication.cs
- EndpointAddressAugust2004.cs
- WebPartManager.cs
- CharAnimationUsingKeyFrames.cs
- ViewGenResults.cs
- Cursors.cs
- MouseBinding.cs
- WriteTimeStream.cs
- MsmqInputChannel.cs
- SessionParameter.cs
- Regex.cs
- ObjectIDGenerator.cs
- DeploymentSection.cs
- EntityTypeBase.cs
- RelationshipSet.cs
- DataColumnPropertyDescriptor.cs
- HttpGetProtocolReflector.cs
- GuidConverter.cs
- SessionStateUtil.cs
- ProcessThread.cs
- ComplexObject.cs
- ArgumentElement.cs
- RegexNode.cs
- PromptStyle.cs