Code:
/ 4.0 / 4.0 / untmp / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Framework / System / Windows / ThemeInfoAttribute.cs / 1305600 / 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
- DateTimeConverter.cs
- BrowserCapabilitiesFactory.cs
- RepeaterItem.cs
- Trace.cs
- MdiWindowListItemConverter.cs
- NodeLabelEditEvent.cs
- SafeHandles.cs
- HttpFileCollectionBase.cs
- SqlDataSourceCommandEventArgs.cs
- JsonDataContract.cs
- DataTablePropertyDescriptor.cs
- TabControl.cs
- ImageListImageEditor.cs
- MailAddress.cs
- ZoneIdentityPermission.cs
- TextChangedEventArgs.cs
- VisualStateManager.cs
- SqlDependencyListener.cs
- DataService.cs
- SimpleFileLog.cs
- ExternalCalls.cs
- OutKeywords.cs
- DESCryptoServiceProvider.cs
- XmlSchemaAnyAttribute.cs
- Transform.cs
- ItemDragEvent.cs
- Config.cs
- AutomationAttributeInfo.cs
- DispatcherProcessingDisabled.cs
- BehaviorDragDropEventArgs.cs
- AutoSizeToolBoxItem.cs
- SafeNativeMethods.cs
- DiscoveryDocument.cs
- ComboBoxItem.cs
- MenuItemStyle.cs
- HtmlTernaryTree.cs
- HwndProxyElementProvider.cs
- ParserExtension.cs
- RepeatBehaviorConverter.cs
- InfoCardTraceRecord.cs
- DebugView.cs
- RtfToXamlLexer.cs
- DateTime.cs
- ColorDialog.cs
- EventBindingService.cs
- PeerPresenceInfo.cs
- DynamicFilter.cs
- TypeReference.cs
- GenericRootAutomationPeer.cs
- ListViewCommandEventArgs.cs
- ChangesetResponse.cs
- DataGridViewColumnEventArgs.cs
- DeflateEmulationStream.cs
- SchemaImporter.cs
- WorkflowMessageEventHandler.cs
- MiniLockedBorderGlyph.cs
- AlgoModule.cs
- HostTimeoutsElement.cs
- SecurityTokenProvider.cs
- MemberPathMap.cs
- DataGridRowDetailsEventArgs.cs
- SecurityStandardsManager.cs
- XamlPathDataSerializer.cs
- SqlUDTStorage.cs
- DiscoveryInnerClientAdhoc11.cs
- PointLight.cs
- Win32Native.cs
- Timer.cs
- OleDbInfoMessageEvent.cs
- XmlILOptimizerVisitor.cs
- InkCanvasFeedbackAdorner.cs
- UTF32Encoding.cs
- BaseTemplateBuildProvider.cs
- PolyBezierSegment.cs
- DBDataPermissionAttribute.cs
- BaseValidatorDesigner.cs
- DataGridViewColumnHeaderCell.cs
- UriExt.cs
- EditorPartCollection.cs
- WebPartRestoreVerb.cs
- AssemblyAssociatedContentFileAttribute.cs
- ContextQuery.cs
- Image.cs
- BulletedList.cs
- FunctionCommandText.cs
- BamlStream.cs
- SafeBitVector32.cs
- TemplateBaseAction.cs
- ScriptingJsonSerializationSection.cs
- DataErrorValidationRule.cs
- PersonalizableTypeEntry.cs
- SoapReflectionImporter.cs
- ErrorProvider.cs
- dataobject.cs
- categoryentry.cs
- AcceleratedTokenProvider.cs
- COAUTHINFO.cs
- ComboBoxRenderer.cs
- IfElseDesigner.xaml.cs
- SplitContainer.cs