Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- XMLDiffLoader.cs
- StreamGeometry.cs
- ToolStripItemCollection.cs
- SQLInt32Storage.cs
- EventItfInfo.cs
- GuidelineSet.cs
- ISessionStateStore.cs
- QueryContinueDragEvent.cs
- RequestQueue.cs
- ConnectionStringsExpressionBuilder.cs
- WindowsFormsHelpers.cs
- DBSchemaTable.cs
- NetDataContractSerializer.cs
- PromptBuilder.cs
- EdmComplexTypeAttribute.cs
- AssemblyNameEqualityComparer.cs
- precedingsibling.cs
- QuaternionConverter.cs
- ThemeableAttribute.cs
- Brush.cs
- TracingConnectionListener.cs
- MyContact.cs
- ChannelManager.cs
- IImplicitResourceProvider.cs
- Constraint.cs
- CompilerError.cs
- PixelShader.cs
- AndCondition.cs
- DocumentAutomationPeer.cs
- X509CertificateTrustedIssuerElement.cs
- GeneralTransform.cs
- SystemIcons.cs
- DataGridLengthConverter.cs
- XmlNodeChangedEventArgs.cs
- PrintControllerWithStatusDialog.cs
- _ScatterGatherBuffers.cs
- SplineKeyFrames.cs
- ControllableStoryboardAction.cs
- MessageProperties.cs
- TreeViewEvent.cs
- ScriptComponentDescriptor.cs
- ToolboxDataAttribute.cs
- X509UI.cs
- InstanceHandle.cs
- AdapterUtil.cs
- Visual.cs
- DrawingCollection.cs
- EventRecordWrittenEventArgs.cs
- ProcessManager.cs
- SiteMapNodeItem.cs
- TTSEngineTypes.cs
- DependencyObjectValidator.cs
- DesignTable.cs
- ExternalDataExchangeClient.cs
- CryptoApi.cs
- SerializationHelper.cs
- ExtendedTransformFactory.cs
- PointLightBase.cs
- Wildcard.cs
- FormsIdentity.cs
- TemplateControl.cs
- ViewGenerator.cs
- BaseCollection.cs
- SafeLocalAllocation.cs
- AppSettingsExpressionBuilder.cs
- VoiceChangeEventArgs.cs
- TreeViewTemplateSelector.cs
- NoResizeSelectionBorderGlyph.cs
- TableAdapterManagerGenerator.cs
- SelectionListComponentEditor.cs
- baseshape.cs
- BitmapEffect.cs
- Lasso.cs
- TimeSpanStorage.cs
- ButtonField.cs
- HostingEnvironmentException.cs
- documentsequencetextview.cs
- PartialCachingControl.cs
- RuntimeConfigLKG.cs
- sqlnorm.cs
- RegexFCD.cs
- ApplicationBuildProvider.cs
- SoapMessage.cs
- ViewPort3D.cs
- ScriptDescriptor.cs
- COM2ExtendedTypeConverter.cs
- NetworkCredential.cs
- ClientBuildManagerCallback.cs
- ToolStripItemTextRenderEventArgs.cs
- OneOfScalarConst.cs
- IPEndPoint.cs
- InlineUIContainer.cs
- SetStoryboardSpeedRatio.cs
- HttpValueCollection.cs
- BuilderPropertyEntry.cs
- StateMachineSubscription.cs
- FlowLayout.cs
- SerializationHelper.cs
- OracleCommand.cs
- InternalConfigSettingsFactory.cs