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
- Queue.cs
- RectAnimationUsingKeyFrames.cs
- DATA_BLOB.cs
- IncrementalCompileAnalyzer.cs
- AppearanceEditorPart.cs
- LookupBindingPropertiesAttribute.cs
- OpCodes.cs
- InkCanvasAutomationPeer.cs
- EventPrivateKey.cs
- xmlglyphRunInfo.cs
- MemberDescriptor.cs
- UrlUtility.cs
- FormViewUpdatedEventArgs.cs
- TimeoutConverter.cs
- PageOrientation.cs
- NonBatchDirectoryCompiler.cs
- RequestTimeoutManager.cs
- AsymmetricAlgorithm.cs
- ResourceExpressionBuilder.cs
- EventLogEntry.cs
- recordstatescratchpad.cs
- AdornerPresentationContext.cs
- CodeValidator.cs
- DtdParser.cs
- ToolStripItemGlyph.cs
- BuiltInExpr.cs
- StoryFragments.cs
- ExtendedProtectionPolicyElement.cs
- BamlBinaryWriter.cs
- Int16Converter.cs
- InternalConfigSettingsFactory.cs
- Substitution.cs
- StringArrayConverter.cs
- PagesSection.cs
- DetailsViewRow.cs
- COM2PictureConverter.cs
- SettingsPropertyWrongTypeException.cs
- BaseDataList.cs
- IdnElement.cs
- TemplatePropertyEntry.cs
- SizeAnimationUsingKeyFrames.cs
- MergeFailedEvent.cs
- DbProviderFactory.cs
- WeakHashtable.cs
- CheckBoxField.cs
- ListBase.cs
- PartialCachingControl.cs
- MessageDirection.cs
- WebBrowserBase.cs
- TimelineGroup.cs
- StorageRoot.cs
- ImportOptions.cs
- ParameterBuilder.cs
- PrintPageEvent.cs
- Int32Converter.cs
- WebBrowserPermission.cs
- CodeNamespaceCollection.cs
- InfoCardAsymmetricCrypto.cs
- XhtmlMobileTextWriter.cs
- CreateUserErrorEventArgs.cs
- StylusLogic.cs
- SchemaImporterExtensionsSection.cs
- PolyBezierSegment.cs
- Pen.cs
- DynamicActionMessageFilter.cs
- DesignDataSource.cs
- ItemCheckedEvent.cs
- LinqDataSourceUpdateEventArgs.cs
- TextRunProperties.cs
- PropertyItemInternal.cs
- HttpStaticObjectsCollectionBase.cs
- HttpCookiesSection.cs
- HwndAppCommandInputProvider.cs
- ViewGenResults.cs
- cryptoapiTransform.cs
- TriggerCollection.cs
- Constraint.cs
- XmlAttributes.cs
- TextOnlyOutput.cs
- AsyncResult.cs
- StructuredTypeEmitter.cs
- FocusManager.cs
- FixUp.cs
- IPEndPoint.cs
- SHA512Managed.cs
- TextFormatter.cs
- regiisutil.cs
- TableRow.cs
- Selector.cs
- AutomationTextAttribute.cs
- ToolStripContentPanelRenderEventArgs.cs
- TickBar.cs
- InputBinder.cs
- TitleStyle.cs
- Int32Rect.cs
- Table.cs
- KeyEvent.cs
- ColumnMapVisitor.cs
- TextChangedEventArgs.cs
- _ProxyRegBlob.cs