Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ThemeInfoAttribute.cs / 1305600 / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- Opcode.cs
- RuleSettingsCollection.cs
- Light.cs
- BitArray.cs
- DataContractSerializerOperationBehavior.cs
- EntityCollection.cs
- ResourceDefaultValueAttribute.cs
- coordinator.cs
- Int32EqualityComparer.cs
- SqlCommandAsyncResult.cs
- ComponentCommands.cs
- Win32.cs
- TransformedBitmap.cs
- CompilerCollection.cs
- SmtpFailedRecipientException.cs
- BinaryCommonClasses.cs
- FontWeightConverter.cs
- TransactionScope.cs
- WinHttpWebProxyFinder.cs
- GetPageCompletedEventArgs.cs
- FixedSOMTableCell.cs
- LogLogRecord.cs
- BindingCollection.cs
- ElementUtil.cs
- DataGridHeaderBorder.cs
- GenericNameHandler.cs
- AssemblyNameProxy.cs
- SystemColors.cs
- ByteFacetDescriptionElement.cs
- AmbientProperties.cs
- FormsAuthenticationTicket.cs
- SortExpressionBuilder.cs
- WebPartTransformerAttribute.cs
- CubicEase.cs
- ColumnClickEvent.cs
- SuppressIldasmAttribute.cs
- GridViewCommandEventArgs.cs
- DbConnectionPoolGroup.cs
- Stack.cs
- SafeArchiveContext.cs
- MachineKeySection.cs
- GiveFeedbackEventArgs.cs
- ObjectRef.cs
- HttpConfigurationContext.cs
- DataSourceExpression.cs
- UnsafeNativeMethods.cs
- RestHandlerFactory.cs
- DataViewSettingCollection.cs
- WmlFormAdapter.cs
- Listbox.cs
- XmlHierarchicalDataSourceView.cs
- autovalidator.cs
- HandlerBase.cs
- RulePatternOps.cs
- Knowncolors.cs
- TemplateControl.cs
- IntegerValidatorAttribute.cs
- DefaultPrintController.cs
- EmissiveMaterial.cs
- QilReplaceVisitor.cs
- ToolStripContainerActionList.cs
- WebPartConnectionCollection.cs
- AudioStateChangedEventArgs.cs
- webclient.cs
- ImmutableCollection.cs
- Int16Animation.cs
- HostSecurityManager.cs
- TokenizerHelper.cs
- PositiveTimeSpanValidator.cs
- InvalidDataException.cs
- Pkcs7Signer.cs
- CategoryNameCollection.cs
- ProjectedSlot.cs
- SqlMethodCallConverter.cs
- SqlPersonalizationProvider.cs
- PrintPageEvent.cs
- SplitterEvent.cs
- DetailsViewModeEventArgs.cs
- SrgsItemList.cs
- PropertyEmitterBase.cs
- Sentence.cs
- FirstQueryOperator.cs
- FormatConvertedBitmap.cs
- ToolStripProgressBar.cs
- ArithmeticLiteral.cs
- IDQuery.cs
- DbConnectionHelper.cs
- DeflateStream.cs
- CapabilitiesSection.cs
- HtmlPhoneCallAdapter.cs
- XmlReflectionMember.cs
- ExpandSegmentCollection.cs
- BooleanStorage.cs
- Perspective.cs
- ValidatingCollection.cs
- LicenseProviderAttribute.cs
- DataGridViewButtonColumn.cs
- Rectangle.cs
- ExtensionSimplifierMarkupObject.cs
- CapabilitiesAssignment.cs