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
- ViewGenerator.cs
- ControlCachePolicy.cs
- MemoryRecordBuffer.cs
- TextBlockAutomationPeer.cs
- EncoderBestFitFallback.cs
- DesignerResources.cs
- DocumentScope.cs
- XPathDescendantIterator.cs
- SimpleMailWebEventProvider.cs
- HttpResponseHeader.cs
- DesignTimeParseData.cs
- DelegatingTypeDescriptionProvider.cs
- RouteItem.cs
- SurrogateSelector.cs
- NumericExpr.cs
- BCryptHashAlgorithm.cs
- SqlConnectionPoolProviderInfo.cs
- CodeDomConfigurationHandler.cs
- RightsManagementInformation.cs
- CodeGotoStatement.cs
- SettingsBindableAttribute.cs
- ObjectParameterCollection.cs
- ControlBindingsCollection.cs
- PipelineDeploymentState.cs
- Freezable.cs
- EntityDataSourceMemberPath.cs
- SoapIgnoreAttribute.cs
- ComplexLine.cs
- SystemSounds.cs
- DynamicResourceExtensionConverter.cs
- ExceptionUtil.cs
- LoginAutoFormat.cs
- QueryConverter.cs
- AuthenticationManager.cs
- GeneralEndpointIdentity.cs
- ColorAnimationUsingKeyFrames.cs
- WebBrowserContainer.cs
- EntityTypeBase.cs
- ReachDocumentReferenceCollectionSerializerAsync.cs
- MsmqIntegrationAppDomainProtocolHandler.cs
- DataBindingExpressionBuilder.cs
- ThreadAttributes.cs
- IPPacketInformation.cs
- SequenceNumber.cs
- PolyLineSegment.cs
- RemoteDebugger.cs
- OutputCacheProfile.cs
- Rights.cs
- arclist.cs
- RayHitTestParameters.cs
- WebPartZoneCollection.cs
- QueryCacheKey.cs
- TimeIntervalCollection.cs
- StrokeNodeEnumerator.cs
- StateItem.cs
- MLangCodePageEncoding.cs
- OleDbMetaDataFactory.cs
- SessionIDManager.cs
- QueryRelOp.cs
- KnownColorTable.cs
- unsafenativemethodstextservices.cs
- WaitHandle.cs
- DataGridViewSortCompareEventArgs.cs
- AsyncPostBackTrigger.cs
- Size3D.cs
- FormsAuthenticationConfiguration.cs
- IndexOutOfRangeException.cs
- ConfigurationPermission.cs
- TextBoxLine.cs
- GlobalizationAssembly.cs
- RelatedEnd.cs
- ConstantCheck.cs
- BadImageFormatException.cs
- MimeFormImporter.cs
- CodeAttributeArgument.cs
- Certificate.cs
- ContextMenu.cs
- _SslSessionsCache.cs
- StrongTypingException.cs
- MsmqHostedTransportManager.cs
- DragEventArgs.cs
- XmlChildEnumerator.cs
- DocumentViewerBaseAutomationPeer.cs
- RoutedEventArgs.cs
- ExtensionSimplifierMarkupObject.cs
- SafeHandles.cs
- HMACSHA256.cs
- FormsIdentity.cs
- ContextDataSourceView.cs
- MemberMemberBinding.cs
- XmlSignatureManifest.cs
- Subtree.cs
- ConfigurationStrings.cs
- TypeUnloadedException.cs
- GridViewColumnCollection.cs
- __TransparentProxy.cs
- TransformProviderWrapper.cs
- TypeSystem.cs
- RawKeyboardInputReport.cs
- AppDomainFactory.cs