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
- SelectedGridItemChangedEvent.cs
- DocumentViewer.cs
- RectKeyFrameCollection.cs
- TextServicesHost.cs
- OleDbTransaction.cs
- BufferedConnection.cs
- WsatStrings.cs
- PeerContact.cs
- TextRenderingModeValidation.cs
- WsdlBuildProvider.cs
- JsonEncodingStreamWrapper.cs
- AppLevelCompilationSectionCache.cs
- WpfPayload.cs
- EnumValAlphaComparer.cs
- Form.cs
- ProcessRequestArgs.cs
- RequiredFieldValidator.cs
- XamlPathDataSerializer.cs
- ScaleTransform.cs
- QueryableDataSourceEditData.cs
- DateTimeValueSerializerContext.cs
- NodeFunctions.cs
- Accessible.cs
- RegisteredExpandoAttribute.cs
- ParserHooks.cs
- ByteStreamGeometryContext.cs
- CodeDelegateCreateExpression.cs
- DecimalConverter.cs
- InputEventArgs.cs
- DataServiceRequest.cs
- QueryAccessibilityHelpEvent.cs
- ResourceDescriptionAttribute.cs
- AttributeCollection.cs
- Blend.cs
- UIPropertyMetadata.cs
- HostedElements.cs
- DataGridHeaderBorder.cs
- XmlHierarchicalEnumerable.cs
- SrgsNameValueTag.cs
- Cursors.cs
- EntityCommand.cs
- ToolStripItemEventArgs.cs
- ContextMenuAutomationPeer.cs
- AmbientLight.cs
- StringUtil.cs
- AnnotationDocumentPaginator.cs
- Container.cs
- ItemList.cs
- PersonalizationStateInfo.cs
- TemplateColumn.cs
- WpfKnownTypeInvoker.cs
- Byte.cs
- EncoderExceptionFallback.cs
- TypeLoadException.cs
- controlskin.cs
- ToolboxItemAttribute.cs
- XmlWrappingReader.cs
- InvalidChannelBindingException.cs
- WebPartCollection.cs
- TrackingDataItem.cs
- IDispatchConstantAttribute.cs
- QueryTask.cs
- SessionStateContainer.cs
- XmlSchemaSimpleContent.cs
- AppSettingsExpressionBuilder.cs
- FastEncoder.cs
- DBCSCodePageEncoding.cs
- XmlTypeMapping.cs
- Object.cs
- EmptyControlCollection.cs
- Win32KeyboardDevice.cs
- WindowsListViewScroll.cs
- ConsumerConnectionPoint.cs
- ControlsConfig.cs
- QueueException.cs
- HttpAsyncResult.cs
- CollectionContainer.cs
- WebResourceAttribute.cs
- ConfigXmlDocument.cs
- WMIGenerator.cs
- RMPermissions.cs
- MLangCodePageEncoding.cs
- baseshape.cs
- ReferentialConstraint.cs
- AssemblyNameProxy.cs
- InvalidAsynchronousStateException.cs
- RecognizeCompletedEventArgs.cs
- EntityViewContainer.cs
- ScrollBar.cs
- UnicastIPAddressInformationCollection.cs
- RegularExpressionValidator.cs
- SelectorItemAutomationPeer.cs
- ConstraintCollection.cs
- SortedDictionary.cs
- MarkerProperties.cs
- IDataContractSurrogate.cs
- CodeConstructor.cs
- CharAnimationBase.cs
- ConnectionInterfaceCollection.cs
- DatePickerTextBox.cs