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
- Query.cs
- BasicKeyConstraint.cs
- GeneralTransform3DTo2D.cs
- M3DUtil.cs
- Binding.cs
- ClientSponsor.cs
- AnnouncementDispatcherAsyncResult.cs
- SqlParameter.cs
- mactripleDES.cs
- ExceptionRoutedEventArgs.cs
- SignerInfo.cs
- SamlConditions.cs
- ViewgenGatekeeper.cs
- SourceFileBuildProvider.cs
- WebSysDescriptionAttribute.cs
- DragDropManager.cs
- RawStylusActions.cs
- PropertyItemInternal.cs
- MissingFieldException.cs
- ErrorFormatter.cs
- OdbcEnvironmentHandle.cs
- ExportOptions.cs
- BaseParagraph.cs
- EventTrigger.cs
- Parameter.cs
- CodeExpressionCollection.cs
- SafeLocalMemHandle.cs
- SerializableAttribute.cs
- DtdParser.cs
- ModelChangedEventArgsImpl.cs
- CallSiteBinder.cs
- XamlDesignerSerializationManager.cs
- XmlSortKey.cs
- HttpClientCertificate.cs
- ReverseComparer.cs
- EditingMode.cs
- CodeSnippetCompileUnit.cs
- SessionParameter.cs
- ActivityDesigner.cs
- PropertyDescriptorCollection.cs
- HMACSHA1.cs
- VisemeEventArgs.cs
- PolyQuadraticBezierSegment.cs
- ResolveMatches11.cs
- SiteMapProvider.cs
- DataSetUtil.cs
- HighContrastHelper.cs
- XmlDataSource.cs
- entityreference_tresulttype.cs
- MergeExecutor.cs
- CustomErrorsSection.cs
- Hex.cs
- TextEditorSpelling.cs
- DataViewListener.cs
- AsyncContentLoadedEventArgs.cs
- ClrProviderManifest.cs
- HttpCachePolicy.cs
- SafeProcessHandle.cs
- ComponentGlyph.cs
- ConfigurationElementCollection.cs
- NetSectionGroup.cs
- PassportAuthenticationEventArgs.cs
- QilXmlWriter.cs
- WebBaseEventKeyComparer.cs
- BufferedReadStream.cs
- ExtensionsSection.cs
- GetResponse.cs
- XomlCompiler.cs
- DataGridViewAdvancedBorderStyle.cs
- TimeSpanConverter.cs
- SkewTransform.cs
- VarRemapper.cs
- VectorCollectionConverter.cs
- GradientBrush.cs
- ItemChangedEventArgs.cs
- SBCSCodePageEncoding.cs
- PropertyToken.cs
- XmlBoundElement.cs
- NamespaceCollection.cs
- DNS.cs
- PasswordPropertyTextAttribute.cs
- GPPOINTF.cs
- ChangeDirector.cs
- SystemIcmpV4Statistics.cs
- HttpResponseInternalWrapper.cs
- XmlProcessingInstruction.cs
- TextRange.cs
- CellCreator.cs
- DataGridViewRowHeightInfoPushedEventArgs.cs
- SemanticResolver.cs
- RawStylusInput.cs
- ListViewItem.cs
- WorkflowDurableInstance.cs
- ReaderWriterLockSlim.cs
- SqlDeflator.cs
- DecoderNLS.cs
- SafeRightsManagementPubHandle.cs
- AutoCompleteStringCollection.cs
- JsonWriter.cs
- DataGridTextBox.cs