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
- Mutex.cs
- DataGridColumn.cs
- SqlSelectClauseBuilder.cs
- CodeCastExpression.cs
- BinHexEncoding.cs
- DataMisalignedException.cs
- WebPartHelpVerb.cs
- TextProperties.cs
- Rijndael.cs
- InstancePersistenceException.cs
- MessagePartSpecification.cs
- ProviderUtil.cs
- HtmlHead.cs
- ListViewInsertionMark.cs
- RequestCacheEntry.cs
- DataGridSortCommandEventArgs.cs
- ForceCopyBuildProvider.cs
- AuthenticationModulesSection.cs
- HtmlInputImage.cs
- SerializerDescriptor.cs
- FormattedTextSymbols.cs
- FileStream.cs
- __Error.cs
- IsolatedStorageFile.cs
- CaseStatementSlot.cs
- ContainerUtilities.cs
- DoubleLink.cs
- TextTreeTextElementNode.cs
- Hash.cs
- DrawingCollection.cs
- ResizeBehavior.cs
- SelectManyQueryOperator.cs
- SessionStateModule.cs
- safelink.cs
- ComplexPropertyEntry.cs
- SkewTransform.cs
- LocatorGroup.cs
- JoinTreeNode.cs
- NotifyInputEventArgs.cs
- PeerNameRegistration.cs
- StylusOverProperty.cs
- XamlGridLengthSerializer.cs
- Inline.cs
- InternalBufferOverflowException.cs
- RegexBoyerMoore.cs
- SequenceFullException.cs
- DebugView.cs
- TreeNodeStyle.cs
- Metafile.cs
- ImageSourceConverter.cs
- ThemeInfoAttribute.cs
- DbDataRecord.cs
- ActivityExecutorDelegateInfo.cs
- TimeSpanMinutesConverter.cs
- XPathSelfQuery.cs
- ApplicationInfo.cs
- KeyGestureConverter.cs
- FileReservationCollection.cs
- SplashScreenNativeMethods.cs
- DataTableTypeConverter.cs
- Rule.cs
- CodeLinePragma.cs
- GridViewColumnCollectionChangedEventArgs.cs
- SqlVisitor.cs
- CodeCatchClause.cs
- UnionCodeGroup.cs
- TrackingRecordPreFilter.cs
- SHA384.cs
- FileIOPermission.cs
- ResourceLoader.cs
- SHA512.cs
- XomlCompilerHelpers.cs
- base64Transforms.cs
- ContextMarshalException.cs
- TableRowCollection.cs
- PersonalizationProvider.cs
- HttpRuntimeSection.cs
- CompiledRegexRunner.cs
- LongAverageAggregationOperator.cs
- ReachVisualSerializer.cs
- DataViewListener.cs
- ServicePointManager.cs
- DeviceContexts.cs
- Security.cs
- SchemaCollectionCompiler.cs
- TriggerActionCollection.cs
- Completion.cs
- ModelVisual3D.cs
- Color.cs
- ModelToObjectValueConverter.cs
- DataTemplateSelector.cs
- NullableDoubleSumAggregationOperator.cs
- ProcessHostServerConfig.cs
- SystemColors.cs
- OptionalRstParameters.cs
- SqlTrackingService.cs
- MenuItemStyle.cs
- RegistryKey.cs
- _SingleItemRequestCache.cs
- UpnEndpointIdentity.cs