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
- RequestCachePolicyConverter.cs
- UshortList2.cs
- validationstate.cs
- HttpServerUtilityWrapper.cs
- CodeTypeDeclaration.cs
- ErrorTableItemStyle.cs
- ThemeDictionaryExtension.cs
- PixelShader.cs
- TextSelectionHighlightLayer.cs
- DataPointer.cs
- SqlDataSource.cs
- xml.cs
- HtmlDocument.cs
- ExternalException.cs
- CacheVirtualItemsEvent.cs
- ExceptionUtil.cs
- CompiledXpathExpr.cs
- SetterTriggerConditionValueConverter.cs
- IisTraceWebEventProvider.cs
- ToolStripContainerDesigner.cs
- VisualStyleTypesAndProperties.cs
- ToolStripDropDownMenu.cs
- StickyNoteHelper.cs
- dbenumerator.cs
- CssTextWriter.cs
- TextEffectCollection.cs
- SpeakCompletedEventArgs.cs
- FunctionImportElement.cs
- CommandID.cs
- DeclarativeCatalogPart.cs
- ExpandSegmentCollection.cs
- UpdateRecord.cs
- DataGridViewRowsAddedEventArgs.cs
- LogEntryDeserializer.cs
- MetadataArtifactLoaderComposite.cs
- BamlVersionHeader.cs
- DataRowChangeEvent.cs
- MissingManifestResourceException.cs
- LicenseManager.cs
- ImageSourceValueSerializer.cs
- IPGlobalProperties.cs
- BasicExpandProvider.cs
- RelOps.cs
- RawUIStateInputReport.cs
- SqlGenericUtil.cs
- LambdaCompiler.ControlFlow.cs
- PresentationAppDomainManager.cs
- OdbcConnectionFactory.cs
- NodeFunctions.cs
- TransportListener.cs
- BeginEvent.cs
- Publisher.cs
- _NetRes.cs
- Grant.cs
- TakeOrSkipWhileQueryOperator.cs
- ScrollBar.cs
- WindowsSlider.cs
- Bind.cs
- Types.cs
- FontInfo.cs
- UnauthorizedWebPart.cs
- Point.cs
- Expr.cs
- Polyline.cs
- DuplicateWaitObjectException.cs
- BitmapEffectDrawing.cs
- DelegatingHeader.cs
- ParameterModifier.cs
- SystemEvents.cs
- WebPartVerbsEventArgs.cs
- WorkflowLayouts.cs
- shaperfactory.cs
- XmlIncludeAttribute.cs
- ListParaClient.cs
- SelectionRange.cs
- ModuleBuilderData.cs
- _SafeNetHandles.cs
- XmlTextEncoder.cs
- KeyPressEvent.cs
- LocalizationComments.cs
- DataGridLinkButton.cs
- TextClipboardData.cs
- DataError.cs
- PopupRoot.cs
- DataGridViewControlCollection.cs
- TraceContext.cs
- SerializerProvider.cs
- CodePrimitiveExpression.cs
- ContextInformation.cs
- DataGridHeaderBorder.cs
- CommandEventArgs.cs
- CroppedBitmap.cs
- _SSPIWrapper.cs
- TextCharacters.cs
- GridViewRow.cs
- DependsOnAttribute.cs
- StatementContext.cs
- DataTableReaderListener.cs
- TableAdapterManagerHelper.cs
- PerformanceCounterManager.cs