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
- DynamicMetaObject.cs
- SystemIPGlobalProperties.cs
- ProcessHost.cs
- wgx_exports.cs
- SafeCloseHandleCritical.cs
- SortExpressionBuilder.cs
- _SslState.cs
- StatusBar.cs
- IDReferencePropertyAttribute.cs
- WebPartConnectionsConfigureVerb.cs
- ScriptRegistrationManager.cs
- ViewValidator.cs
- HtmlLink.cs
- controlskin.cs
- TextBox.cs
- RtfNavigator.cs
- NewItemsContextMenuStrip.cs
- InvalidOperationException.cs
- XslAst.cs
- DriveNotFoundException.cs
- MaskDesignerDialog.cs
- WebPartDescriptionCollection.cs
- AssemblyCache.cs
- KerberosSecurityTokenParameters.cs
- AuthenticateEventArgs.cs
- ProfilePropertySettings.cs
- _NativeSSPI.cs
- MetadataPropertyAttribute.cs
- TextChange.cs
- InternalConfigConfigurationFactory.cs
- ClientTargetCollection.cs
- AssemblyResourceLoader.cs
- TrackBarRenderer.cs
- XmlWrappingWriter.cs
- DbProviderFactory.cs
- DirtyTextRange.cs
- Unit.cs
- XmlMapping.cs
- SQLByteStorage.cs
- DocumentViewer.cs
- DataGridSortCommandEventArgs.cs
- HtmlTableRowCollection.cs
- SqlParameter.cs
- CircleHotSpot.cs
- GCHandleCookieTable.cs
- PolyLineSegment.cs
- ButtonChrome.cs
- Matrix3D.cs
- ListViewEditEventArgs.cs
- StickyNoteHelper.cs
- XmlPropertyBag.cs
- DBDataPermission.cs
- odbcmetadatacollectionnames.cs
- HtmlElement.cs
- ZipIOCentralDirectoryBlock.cs
- EntityContainer.cs
- TemplateContent.cs
- SerialPort.cs
- StringInfo.cs
- DataGridViewRowPrePaintEventArgs.cs
- ResourcesGenerator.cs
- XmlSchemaObjectCollection.cs
- processwaithandle.cs
- QilLiteral.cs
- Types.cs
- Rotation3DAnimationUsingKeyFrames.cs
- PostBackTrigger.cs
- CallbackTimeoutsBehavior.cs
- ValidatorCollection.cs
- Logging.cs
- XmlAttributeOverrides.cs
- InputReportEventArgs.cs
- IdnElement.cs
- AssemblyNameUtility.cs
- RtfToXamlLexer.cs
- HwndTarget.cs
- NetworkCredential.cs
- CachedFontFace.cs
- QueryStringParameter.cs
- WebPartEditorOkVerb.cs
- UnknownBitmapDecoder.cs
- CmsInterop.cs
- HttpResponse.cs
- DispatcherSynchronizationContext.cs
- DataExchangeServiceBinder.cs
- CornerRadiusConverter.cs
- RawMouseInputReport.cs
- SecurityTokenValidationException.cs
- PtsContext.cs
- Lasso.cs
- FontStretches.cs
- XNameConverter.cs
- MapPathBasedVirtualPathProvider.cs
- OracleConnectionString.cs
- IIS7UserPrincipal.cs
- ScriptReferenceEventArgs.cs
- TemplateManager.cs
- XmlObjectSerializerReadContextComplexJson.cs
- Environment.cs
- BindingSourceDesigner.cs