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
- AddInStore.cs
- JsonFormatGeneratorStatics.cs
- TextOnlyOutput.cs
- NameValueCollection.cs
- HostingPreferredMapPath.cs
- _IPv6Address.cs
- ConnectionsZone.cs
- BindingManagerDataErrorEventArgs.cs
- DatagridviewDisplayedBandsData.cs
- DESCryptoServiceProvider.cs
- QueueTransferProtocol.cs
- SetStoryboardSpeedRatio.cs
- PropertySet.cs
- ValidatingPropertiesEventArgs.cs
- PrinterUnitConvert.cs
- AdornerHitTestResult.cs
- shaperfactory.cs
- ClientBuildManagerCallback.cs
- dtdvalidator.cs
- TemplateBaseAction.cs
- DateTimeEditor.cs
- ScanQueryOperator.cs
- BevelBitmapEffect.cs
- CacheOutputQuery.cs
- Compiler.cs
- Utils.cs
- SqlEnums.cs
- TypedDataSetSchemaImporterExtension.cs
- entitydatasourceentitysetnameconverter.cs
- CreationContext.cs
- ElementUtil.cs
- GroupDescription.cs
- CustomErrorCollection.cs
- LockedBorderGlyph.cs
- xmlglyphRunInfo.cs
- SafeEventLogWriteHandle.cs
- FormClosedEvent.cs
- SecurityTokenSerializer.cs
- QilValidationVisitor.cs
- MethodAccessException.cs
- PagePropertiesChangingEventArgs.cs
- validationstate.cs
- DetailsViewPagerRow.cs
- SqlServices.cs
- MemberRelationshipService.cs
- Walker.cs
- TemplateBindingExpression.cs
- sqlpipe.cs
- DateTimeConverter2.cs
- AssociationSetMetadata.cs
- ParseElementCollection.cs
- ReceiveContext.cs
- SamlAction.cs
- ConnectionManagementElementCollection.cs
- StateManagedCollection.cs
- CustomErrorsSection.cs
- WinOEToolBoxItem.cs
- InputLanguageProfileNotifySink.cs
- SwitchElementsCollection.cs
- WindowsFont.cs
- CustomValidator.cs
- OleDbMetaDataFactory.cs
- Typeface.cs
- GridViewSortEventArgs.cs
- IndividualDeviceConfig.cs
- ScrollChrome.cs
- SqlWebEventProvider.cs
- TdsParserHelperClasses.cs
- IdentityElement.cs
- InputLangChangeEvent.cs
- ColorMap.cs
- WorkflowPrinting.cs
- Util.cs
- LayoutSettings.cs
- FunctionMappingTranslator.cs
- ListViewItemMouseHoverEvent.cs
- JournalEntry.cs
- ToolStripDropDownClosedEventArgs.cs
- InstanceKeyCompleteException.cs
- SchemaElement.cs
- PackageDigitalSignatureManager.cs
- XamlTypeMapper.cs
- AsyncPostBackErrorEventArgs.cs
- xmlformatgeneratorstatics.cs
- TextTreeRootNode.cs
- ProfileSettings.cs
- COM2ComponentEditor.cs
- XPathLexer.cs
- SafeNativeMethods.cs
- TriggerBase.cs
- NameScopePropertyAttribute.cs
- SystemColors.cs
- CalendarDesigner.cs
- RijndaelManagedTransform.cs
- FixedSOMTableCell.cs
- OSFeature.cs
- InvokeProviderWrapper.cs
- WebRequestModuleElement.cs
- SubMenuStyleCollection.cs
- ArrangedElement.cs