Code:
/ DotNET / DotNET / 8.0 / untmp / WIN_WINDOWS / lh_tools_devdiv_wpf / Windows / wcp / 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.
Link Menu
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- ConnectionPointCookie.cs
- Substitution.cs
- TextViewBase.cs
- IntSecurity.cs
- KeyPressEvent.cs
- OleDbWrapper.cs
- Padding.cs
- ThreadInterruptedException.cs
- WrapperEqualityComparer.cs
- InkCanvasSelection.cs
- ListViewItem.cs
- ParentQuery.cs
- ISAPIRuntime.cs
- CodeTypeMemberCollection.cs
- DynamicQueryableWrapper.cs
- InputScopeNameConverter.cs
- ThicknessAnimationUsingKeyFrames.cs
- ConstraintStruct.cs
- WsdlBuildProvider.cs
- ZipIOCentralDirectoryBlock.cs
- ScriptHandlerFactory.cs
- PasswordBox.cs
- NextPreviousPagerField.cs
- ManipulationPivot.cs
- SqlDataSourceQueryConverter.cs
- DataTransferEventArgs.cs
- WebPartConnectionsConfigureVerb.cs
- EventBuilder.cs
- PLINQETWProvider.cs
- UndoManager.cs
- ImportOptions.cs
- ASCIIEncoding.cs
- SiteMapDataSourceDesigner.cs
- SelectionItemProviderWrapper.cs
- ConnectionsZone.cs
- SqlConnectionHelper.cs
- ChtmlSelectionListAdapter.cs
- WebPartDeleteVerb.cs
- DataGridViewUtilities.cs
- MenuAutomationPeer.cs
- GraphicsPath.cs
- ReflectionHelper.cs
- AstNode.cs
- FixedSOMElement.cs
- DataRelationPropertyDescriptor.cs
- SessionStateUtil.cs
- PermissionListSet.cs
- WebPartEditorCancelVerb.cs
- TraceListener.cs
- SmtpSection.cs
- PrintingPermission.cs
- XmlnsCache.cs
- ImageInfo.cs
- HtmlControlPersistable.cs
- PropertyItem.cs
- TraceContextEventArgs.cs
- SimplePropertyEntry.cs
- validationstate.cs
- XmlSchemaExporter.cs
- WMIGenerator.cs
- RefreshResponseInfo.cs
- HttpRequestCacheValidator.cs
- ISAPIApplicationHost.cs
- MemoryMappedView.cs
- EmbossBitmapEffect.cs
- SynchronizedDisposablePool.cs
- x509store.cs
- PeerObject.cs
- SettingsPropertyNotFoundException.cs
- BitmapData.cs
- TrackingServices.cs
- UnsafeNativeMethodsMilCoreApi.cs
- GroupBox.cs
- RC2.cs
- SoapMessage.cs
- WebPartAddingEventArgs.cs
- SkipQueryOptionExpression.cs
- DataGridViewLinkColumn.cs
- UdpDiscoveryEndpoint.cs
- DataViewSetting.cs
- DataServiceException.cs
- VirtualPath.cs
- DesignerVerb.cs
- WinInetCache.cs
- _RequestLifetimeSetter.cs
- ChangeConflicts.cs
- TreeNode.cs
- RepeatButton.cs
- DBSchemaRow.cs
- FormatVersion.cs
- MenuItemCollection.cs
- RelatedPropertyManager.cs
- SelectionListDesigner.cs
- HttpRuntimeSection.cs
- BaseHashHelper.cs
- MouseOverProperty.cs
- FixedSOMLineCollection.cs
- XmlFormatWriterGenerator.cs
- RestHandlerFactory.cs
- TypeExtension.cs