Code:
/ Dotnetfx_Vista_SP2 / Dotnetfx_Vista_SP2 / 8.0.50727.4016 / DEVDIV / depot / DevDiv / releases / Orcas / QFE / 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
- DataObjectFieldAttribute.cs
- QuerySafeNavigator.cs
- DependencyPropertyKey.cs
- ProfilePropertySettingsCollection.cs
- OverrideMode.cs
- TextAction.cs
- ComplexPropertyEntry.cs
- TransactionChannelListener.cs
- SoapIncludeAttribute.cs
- Int16Storage.cs
- StrokeNodeOperations2.cs
- SystemIPGlobalStatistics.cs
- SecUtil.cs
- LZCodec.cs
- PropertyTabAttribute.cs
- Atom10FormatterFactory.cs
- ServiceDocumentFormatter.cs
- NumberSubstitution.cs
- DescriptionAttribute.cs
- DataGridViewToolTip.cs
- TextEditorTyping.cs
- StylusPointPropertyInfoDefaults.cs
- DesignerDataConnection.cs
- PrintPreviewControl.cs
- WebPart.cs
- SystemFonts.cs
- SoapServerMessage.cs
- ObjectParameter.cs
- JavaScriptString.cs
- VarInfo.cs
- LinkedResourceCollection.cs
- XPathDescendantIterator.cs
- MultipartContentParser.cs
- WebBrowser.cs
- CounterCreationData.cs
- EmptyEnumerator.cs
- StickyNoteAnnotations.cs
- PixelShader.cs
- TdsParserSafeHandles.cs
- AnnotationMap.cs
- Schema.cs
- DiffuseMaterial.cs
- ReferencedCollectionType.cs
- RemoteDebugger.cs
- CompressedStack.cs
- MonitorWrapper.cs
- Bidi.cs
- AnonymousIdentificationSection.cs
- CharAnimationUsingKeyFrames.cs
- ScriptResourceAttribute.cs
- ListManagerBindingsCollection.cs
- GifBitmapDecoder.cs
- AdapterUtil.cs
- HostSecurityManager.cs
- ToolStripPanelRenderEventArgs.cs
- DBDataPermissionAttribute.cs
- ProcessHostConfigUtils.cs
- HashMembershipCondition.cs
- BufferedGraphicsManager.cs
- SafeNativeMethods.cs
- ToolStripProgressBar.cs
- RegionIterator.cs
- OperatorExpressions.cs
- EditingScope.cs
- FieldCollectionEditor.cs
- SqlGatherProducedAliases.cs
- TypedTableHandler.cs
- DocumentManager.cs
- SizeAnimationUsingKeyFrames.cs
- InstancePersistenceEvent.cs
- GridViewHeaderRowPresenter.cs
- ObjectFactoryCodeDomTreeGenerator.cs
- dsa.cs
- FindResponse.cs
- ReaderOutput.cs
- LinqDataSourceContextEventArgs.cs
- EnumerableRowCollectionExtensions.cs
- EncodedStreamFactory.cs
- Ref.cs
- SymLanguageVendor.cs
- Lease.cs
- RetrieveVirtualItemEventArgs.cs
- XhtmlBasicPageAdapter.cs
- ServerValidateEventArgs.cs
- LinkLabel.cs
- SystemWebExtensionsSectionGroup.cs
- LocatorManager.cs
- UnmanagedMemoryStreamWrapper.cs
- LinqDataSourceDisposeEventArgs.cs
- ScopeCompiler.cs
- WsiProfilesElement.cs
- ClientScriptManagerWrapper.cs
- CharEntityEncoderFallback.cs
- WindowProviderWrapper.cs
- TrackingParameters.cs
- CheckBox.cs
- TextModifierScope.cs
- XmlWrappingReader.cs
- HostedImpersonationContext.cs
- ExpressionConverter.cs