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
- PersianCalendar.cs
- NGCSerializer.cs
- StrokeCollectionDefaultValueFactory.cs
- TogglePattern.cs
- ObjectStateEntryDbUpdatableDataRecord.cs
- KeyboardDevice.cs
- SqlUtil.cs
- Peer.cs
- WebReferencesBuildProvider.cs
- SqlReferenceCollection.cs
- EndpointDiscoveryElement.cs
- EmbeddedObject.cs
- Debug.cs
- SvcMapFileLoader.cs
- SyndicationSerializer.cs
- TabControlAutomationPeer.cs
- TemplateBaseAction.cs
- WpfXamlType.cs
- DeclaredTypeValidatorAttribute.cs
- MetadataItemEmitter.cs
- HttpSysSettings.cs
- Lasso.cs
- DictionaryBase.cs
- InvocationExpression.cs
- PublisherMembershipCondition.cs
- OdbcConnectionOpen.cs
- ScaleTransform.cs
- MultipleViewPattern.cs
- HostVisual.cs
- HandledEventArgs.cs
- Int16AnimationBase.cs
- PackagePart.cs
- BrowserInteropHelper.cs
- StringSource.cs
- HierarchicalDataSourceIDConverter.cs
- SecurityKeyEntropyMode.cs
- ThreadSafeList.cs
- ParallelTimeline.cs
- StylusTip.cs
- GetPageNumberCompletedEventArgs.cs
- TextEffect.cs
- FocusWithinProperty.cs
- ParsedAttributeCollection.cs
- EntityObject.cs
- SimpleHandlerFactory.cs
- CodeDomDecompiler.cs
- EventSinkHelperWriter.cs
- SequenceDesigner.cs
- AccessDataSource.cs
- HandleInitializationContext.cs
- TaskFormBase.cs
- CompilerCollection.cs
- NetStream.cs
- formatstringdialog.cs
- TableSectionStyle.cs
- SafeNativeMethods.cs
- ProcessInputEventArgs.cs
- ChtmlImageAdapter.cs
- NativeMethods.cs
- ListItemCollection.cs
- InstanceDataCollectionCollection.cs
- ServiceModelSecurityTokenTypes.cs
- CompiledQuery.cs
- SspiHelper.cs
- DefaultObjectMappingItemCollection.cs
- DetailsViewRowCollection.cs
- GeometryHitTestParameters.cs
- SafeViewOfFileHandle.cs
- BitmapEffectGroup.cs
- XsltException.cs
- ListMarkerLine.cs
- IntegerValidatorAttribute.cs
- ReceiveSecurityHeaderElementManager.cs
- MobileControlBuilder.cs
- ControlTemplate.cs
- RuntimeArgumentHandle.cs
- VerificationAttribute.cs
- ModuleElement.cs
- OdbcErrorCollection.cs
- OracleLob.cs
- PathHelper.cs
- UICuesEvent.cs
- DataGridToolTip.cs
- ParameterCollection.cs
- NopReturnReader.cs
- WaitForChangedResult.cs
- Privilege.cs
- ConfigXmlAttribute.cs
- basevalidator.cs
- itemelement.cs
- Adorner.cs
- Component.cs
- PackagePartCollection.cs
- PartialCachingAttribute.cs
- ReadOnlyTernaryTree.cs
- PerfCounters.cs
- DataRowChangeEvent.cs
- TeredoHelper.cs
- UriTemplateTable.cs
- DataGridViewComboBoxCell.cs