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
- TextFindEngine.cs
- ActivityExecutorOperation.cs
- TableLayoutPanelCellPosition.cs
- CallTemplateAction.cs
- FontSourceCollection.cs
- CheckBoxStandardAdapter.cs
- ThicknessAnimation.cs
- StrongNameKeyPair.cs
- RegisteredDisposeScript.cs
- PropertyOverridesTypeEditor.cs
- SchemaInfo.cs
- ChannelPoolSettingsElement.cs
- FixedTextPointer.cs
- MeasurementDCInfo.cs
- OleDbInfoMessageEvent.cs
- ServerValidateEventArgs.cs
- RegistryPermission.cs
- EditorPart.cs
- URLString.cs
- CaseStatement.cs
- BasePropertyDescriptor.cs
- SourceChangedEventArgs.cs
- HtmlTableRow.cs
- ProxyHelper.cs
- OneOfScalarConst.cs
- HexParser.cs
- RepeatInfo.cs
- basevalidator.cs
- UnsafeNativeMethods.cs
- SystemException.cs
- ListView.cs
- AutomationTextAttribute.cs
- ItemCheckedEvent.cs
- XmlNodeReader.cs
- PipelineComponent.cs
- SqlParameterCollection.cs
- HtmlDocument.cs
- CommandField.cs
- WindowsScroll.cs
- XmlException.cs
- IBuiltInEvidence.cs
- ButtonAutomationPeer.cs
- StringFreezingAttribute.cs
- TreeNodeBinding.cs
- ImpersonateTokenRef.cs
- DtrList.cs
- DataTemplateKey.cs
- DefaultAsyncDataDispatcher.cs
- TcpSocketManager.cs
- TransformValueSerializer.cs
- CustomValidator.cs
- KeyGestureConverter.cs
- ComponentResourceKeyConverter.cs
- ConfigurationValidatorAttribute.cs
- DES.cs
- ReferencedAssembly.cs
- SecurityException.cs
- CustomAttributeBuilder.cs
- RootProjectionNode.cs
- SafeMemoryMappedViewHandle.cs
- ListControlConvertEventArgs.cs
- FormViewRow.cs
- ToolStripSplitStackLayout.cs
- ColumnClickEvent.cs
- SessionStateUtil.cs
- PreservationFileWriter.cs
- SqlTriggerAttribute.cs
- DataObjectMethodAttribute.cs
- SchemaImporter.cs
- UnauthorizedAccessException.cs
- _Events.cs
- HMACRIPEMD160.cs
- DynamicControlParameter.cs
- ReadingWritingEntityEventArgs.cs
- ScopedMessagePartSpecification.cs
- EventListener.cs
- IntPtr.cs
- WorkflowIdleElement.cs
- sqlstateclientmanager.cs
- _NegoStream.cs
- MsmqReceiveParameters.cs
- MemberMaps.cs
- TrustSection.cs
- Util.cs
- MouseGesture.cs
- BlockExpression.cs
- EntitySqlQueryCacheKey.cs
- MouseCaptureWithinProperty.cs
- Transform.cs
- BaseTemplateParser.cs
- XmlSchemaExporter.cs
- MiniCustomAttributeInfo.cs
- _LazyAsyncResult.cs
- XmlMembersMapping.cs
- UIEndRequest.cs
- ChangeTracker.cs
- InvalidPrinterException.cs
- CompiledIdentityConstraint.cs
- FacetValues.cs
- OutgoingWebRequestContext.cs