Code:
/ 4.0 / 4.0 / DEVDIV_TFS / Dev10 / Releases / RTMRel / wpf / src / Base / System / Windows / Media / DisableDpiAwarenessAttribute.cs / 1305600 / DisableDpiAwarenessAttribute.cs
//------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2006 // // File: DisableDpiAwarenessAttribute.cs // // By default, WPF application is Dpi-Aware when the UI layout is calculated. // But if in any case, an application wants to host WPF control and doesn't // want to support Dpi aware, the way to achieve it is to add below attribute // value in its application assembly. // // [assembly:System.Windows.Media.DisableDpiAwareness] // // Created: 06/01/2006 WeibZ // //----------------------------------------------------------------------- using System; namespace System.Windows.Media { ////// DisableDpiAwarenessAttribute tells to disable DpiAwareness in this /// application for WPF UI elements. /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=false)] public sealed class DisableDpiAwarenessAttribute: Attribute { ////// Ctor of DisableDpiAwareness /// public DisableDpiAwarenessAttribute( ) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved. //------------------------------------------------------------------------ // // Microsoft Windows Client Platform // Copyright (C) Microsoft Corporation, 2006 // // File: DisableDpiAwarenessAttribute.cs // // By default, WPF application is Dpi-Aware when the UI layout is calculated. // But if in any case, an application wants to host WPF control and doesn't // want to support Dpi aware, the way to achieve it is to add below attribute // value in its application assembly. // // [assembly:System.Windows.Media.DisableDpiAwareness] // // Created: 06/01/2006 WeibZ // //----------------------------------------------------------------------- using System; namespace System.Windows.Media { ////// DisableDpiAwarenessAttribute tells to disable DpiAwareness in this /// application for WPF UI elements. /// [AttributeUsage(AttributeTargets.Assembly, AllowMultiple=false)] public sealed class DisableDpiAwarenessAttribute: Attribute { ////// Ctor of DisableDpiAwareness /// public DisableDpiAwarenessAttribute( ) { } } } // File provided for Reference Use Only by Microsoft Corporation (c) 2007. // Copyright (c) Microsoft Corporation. All rights reserved.
Link Menu
![Network programming in C#, Network Programming in VB.NET, Network Programming in .NET](/images/book.jpg)
This book is available now!
Buy at Amazon US or
Buy at Amazon UK
- LinkedResourceCollection.cs
- ColumnClickEvent.cs
- CodeExpressionStatement.cs
- SqlProviderManifest.cs
- QueryRelOp.cs
- TextContainerChangedEventArgs.cs
- MetadataArtifactLoader.cs
- TypeInformation.cs
- ScrollBarAutomationPeer.cs
- DbReferenceCollection.cs
- ListBindableAttribute.cs
- MD5HashHelper.cs
- StrokeCollectionConverter.cs
- IdentityHolder.cs
- TriggerAction.cs
- LineBreakRecord.cs
- StandardOleMarshalObject.cs
- SubMenuStyleCollection.cs
- InstanceStoreQueryResult.cs
- ConfigXmlElement.cs
- WindowsListViewGroup.cs
- TranslateTransform3D.cs
- XmlValidatingReader.cs
- XmlSchemas.cs
- UIElementAutomationPeer.cs
- BaseCodePageEncoding.cs
- ExtenderProvidedPropertyAttribute.cs
- NetDataContractSerializer.cs
- CustomTrackingQuery.cs
- AssemblyInfo.cs
- WebPartConnectionsConfigureVerb.cs
- EventLogPermissionEntryCollection.cs
- BackgroundFormatInfo.cs
- ModelUIElement3D.cs
- TemplateKey.cs
- FixedSOMPageConstructor.cs
- SystemIPAddressInformation.cs
- RowsCopiedEventArgs.cs
- StrongNameKeyPair.cs
- SrgsNameValueTag.cs
- WebBaseEventKeyComparer.cs
- DocumentPageViewAutomationPeer.cs
- InstanceOwner.cs
- RuleSetCollection.cs
- DesignerSerializerAttribute.cs
- SqlInternalConnectionSmi.cs
- CodeObject.cs
- ClientConfigurationHost.cs
- DropShadowEffect.cs
- TypeUtil.cs
- PersistChildrenAttribute.cs
- EntityTypeEmitter.cs
- SamlAssertion.cs
- OleAutBinder.cs
- HiddenField.cs
- ListCommandEventArgs.cs
- FormViewInsertEventArgs.cs
- AssociationSetEnd.cs
- ConnectionProviderAttribute.cs
- RegionIterator.cs
- IERequestCache.cs
- CachedTypeface.cs
- PropertyMapper.cs
- BadImageFormatException.cs
- Color.cs
- DBDataPermission.cs
- QilReplaceVisitor.cs
- CommandExpr.cs
- SelectionItemProviderWrapper.cs
- ResourceKey.cs
- RemotingServices.cs
- ButtonFieldBase.cs
- OpenFileDialog.cs
- CompositeFontInfo.cs
- SymmetricAlgorithm.cs
- XPathItem.cs
- XPathExpr.cs
- securitycriticaldataformultiplegetandset.cs
- ThemeableAttribute.cs
- ServerIdentity.cs
- DialogResultConverter.cs
- OutputCacheProfile.cs
- SystemWebExtensionsSectionGroup.cs
- ComponentGuaranteesAttribute.cs
- LineServicesRun.cs
- IPGlobalProperties.cs
- ServicePoint.cs
- CodeCommentStatementCollection.cs
- ProtocolsSection.cs
- DbSetClause.cs
- VirtualizingPanel.cs
- SimpleWorkerRequest.cs
- AuthenticationModulesSection.cs
- EDesignUtil.cs
- WebException.cs
- ISO2022Encoding.cs
- DropShadowBitmapEffect.cs
- TranslateTransform.cs
- MulticastNotSupportedException.cs
- xmlglyphRunInfo.cs