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
- TransformGroup.cs
- _IPv4Address.cs
- MissingManifestResourceException.cs
- HandleCollector.cs
- DoubleAnimationClockResource.cs
- BufferedStream.cs
- DataSourceXmlClassAttribute.cs
- LayoutInformation.cs
- ObjectViewEntityCollectionData.cs
- PerfCounters.cs
- QueryReaderSettings.cs
- VariableBinder.cs
- ValidatorCompatibilityHelper.cs
- DataKeyArray.cs
- AttachedPropertyMethodSelector.cs
- FrameworkObject.cs
- BrowserCapabilitiesCodeGenerator.cs
- ProcessHostConfigUtils.cs
- DataSet.cs
- ProcessHostServerConfig.cs
- NonBatchDirectoryCompiler.cs
- EncodingStreamWrapper.cs
- MonitoringDescriptionAttribute.cs
- BufferedConnection.cs
- RegistryExceptionHelper.cs
- DbProviderFactory.cs
- PathFigure.cs
- RunClient.cs
- BitmapEffectInputData.cs
- ping.cs
- StreamUpdate.cs
- DateTimeFormat.cs
- EntityDataSourceDataSelectionPanel.cs
- EndOfStreamException.cs
- sqlcontext.cs
- OdbcUtils.cs
- SchemaManager.cs
- Formatter.cs
- PatternMatcher.cs
- RegistrationContext.cs
- PropertyGridEditorPart.cs
- DataGridViewTextBoxEditingControl.cs
- AnnotationDocumentPaginator.cs
- WhileDesigner.cs
- DeploymentSection.cs
- TextRunProperties.cs
- ServiceParser.cs
- AdornerLayer.cs
- Oid.cs
- DataGridTextBoxColumn.cs
- TextSchema.cs
- DefaultHttpHandler.cs
- Win32SafeHandles.cs
- ProjectionCamera.cs
- EventlogProvider.cs
- XmlValidatingReader.cs
- XpsStructure.cs
- wgx_exports.cs
- TypeDescriptionProviderAttribute.cs
- Point.cs
- Brush.cs
- DummyDataSource.cs
- CircleHotSpot.cs
- CleanUpVirtualizedItemEventArgs.cs
- ToolZone.cs
- TextRangeAdaptor.cs
- SiteMapPath.cs
- BezierSegment.cs
- HashStream.cs
- TrackingStringDictionary.cs
- ItemCollection.cs
- IODescriptionAttribute.cs
- ComponentResourceManager.cs
- SchemaLookupTable.cs
- EntityClientCacheKey.cs
- WSHttpSecurityElement.cs
- Pool.cs
- PrintEvent.cs
- WindowsListViewScroll.cs
- TemplateControlParser.cs
- NamedPermissionSet.cs
- FormViewCommandEventArgs.cs
- DoubleLinkListEnumerator.cs
- DetailsViewRowCollection.cs
- IERequestCache.cs
- UriScheme.cs
- HierarchicalDataBoundControl.cs
- NamespaceList.cs
- EntityDataSourceUtil.cs
- PrivateUnsafeNativeCompoundFileMethods.cs
- ProjectionCamera.cs
- ReachFixedPageSerializer.cs
- XslException.cs
- GeometryHitTestParameters.cs
- XmlCharType.cs
- SQLCharsStorage.cs
- AppDomainUnloadedException.cs
- OdbcError.cs
- RenderOptions.cs
- SQLInt32Storage.cs